/* style.css */


/*pop up tmp*/
.popup-box {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background-color: white;
    border: 2px solid #0073e6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 25px 30px;
    z-index: 9999;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    font-family: Arial, sans-serif;
    color: #0073e6;
}

.popup-box h2 {
    margin: 0 0 10px;
    color: #0073e6;
}

.popup-box button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-box button:hover {
    background-color: #005bb5;
}

/* Impostazioni generali */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    text-align: center;
}

/* Header 
header {
    background: #0073e6;
    color: white;
    padding: 20px;
}*/

header {
    background-color: #0073e6;
    /* elimina il logo come background-image */
    background-image: none;
    padding-top: 20px;           /* riduci il padding now che il logo è altrove */
    padding-bottom: 20px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Logo Module */
.logo-module {
    text-align: center;
    padding: 20px 0;             /* spazio sopra e sotto il logo */
    background-color: #fedd02;      /* colore di sfondo a piacere */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.logo-img {
    max-width: 400px;            /* regola la misura che preferisci */
    height: auto;
    display: inline-block;
}

header .logo {
    max-width: 600px;  
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Sezioni */
section {
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-img {
    max-width: 10%;
    height: auto;
    margin-top: 15px;
    border-radius: 8px;
}

/* Link mail e telefono in giallo */
.contatti-header a {
    color: yellow;   /* oppure usa un codice esadecimale: #FFD700 */
    text-decoration: none; /* facoltativo: rimuove la sottolineatura */
}
.contatti-header a:hover {
    text-decoration: underline; /* facoltativo: effetti al passaggio del mouse */
}

/* Mappa */
iframe {
    margin-top: 10px;
    border-radius: 8px;
}

/* Container carte */
.carte-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.carte-container img {
    width: 60px;
    height: auto;
}

/* Selettore lingue */
.language-selector {
    margin: 10px;
}

.language-selector button {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    background: white;
    color: #0073e6;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.language-selector button:hover {
    background: #e6e6e6;
}

/* Sezione Pagamenti */
.payment-methods {
    text-align: center;
    padding: 2rem;
}

.payment-methods h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.payment-methods p {
    margin-bottom: 1.5rem;
    color: #444;
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.payment-logos img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s;
}

.payment-logos img:hover {
    transform: scale(1.05);
}

/* Bottone prenotazione */
.prenota-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.prenota-button:hover {
    background-color: #005bb5;
}

/* Footer */
footer {
    background: #0073e6;
    color: white;
    padding: 15px;
    width: 100%;
    margin-top: 30px;
    position: relative;
}

/* MEDIA QUERY: Responsività */
@media (max-width: 600px) {
    section {
        margin: 10px;
        padding: 15px;
    }

    .language-selector button {
        display: block;
        margin: 6px auto;
        width: 90%;
    }

    .payment-logos img {
        width: 45px;
        height: 30px;
    }

    .prenota-button {
        width: 90%;
        font-size: 1rem;
    }
}

/* Tabella dimensioni vani */
.vani-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.vani-table th, .vani-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.vani-table thead {
    background-color: #0073e6;
    color: white;
}

.vani-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
/* Container a griglia per immagini */
.vani-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1000px; /* limita la larghezza massima del blocco */
  padding: 0 1rem;
}

/* Figura: centro verticale/orizzontale se aggiungi figcaption */
.vani-figure {
  margin: 0;
  text-align: center;
}

/* Immagini: dimensione piena del cell grid, proporzioni mantenute */
.vani-image {
  width: 100%;
  height: auto;
  display: block;       /* elimina eventuali spazi bianchi sotto */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
  transition: transform .3s ease;
}

/* Hover leggero per un tocco di interattività */
.vani-figure:hover .vani-image {
  transform: scale(1.03);
}

.vani-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* ... resto invariato ... */
}