
/* --- RESET E BASE --- */
@import url('fonts/fonts.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    padding-top: 80px;
}

/* --- TITOLI E FONT --- */
h1, h2, h3, .nome-sito, .box-overlay h3, .modal-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700;
}

h1 { font-size: 3rem; font-weight: 300; color: #222; }
.divider { width: 60px; height: 3px; background-color: #d4a373; margin-bottom: 20px; border: none; opacity: 1; }

/* --- NAVBAR --- */
.nav-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.nome-sito {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 10px;
    color: #555 !important;
    transition: color 0.3s;
}

.nav-link.active {
    color: #000 !important;
    font-weight: bold;
    border-bottom: 2px solid #d4a373;
}

.nav-link:hover {
    color: #000 !important;
}

.contatti-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.numero-tel {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-right: 5px;
}

.icona-social {
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    transition: transform 0.2s;
}

.whatsapp { color: #25D366; }
.email { color: #333; }
.icona-social:hover { transform: scale(1.2); }

/* --- PULSANTE WHATSAPP FLOTTANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 1030;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { animation: none; }
}

/* --- HEADER IMMAGINI --- */
.hero-fissa {
    display: flex;
    width: 100%;
}

.immagine-statica {
    height: 40vh;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.img-desktop {
    display: none; 
}

@media (min-width: 768px) {
    .immagine-statica {
        width: 50%;
    }
    .img-desktop {
        display: block;
    }
}

#contenitorenome {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: -75px;
    z-index: 10; 
    margin-bottom: 40px;
}

#logoimg {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-color: #fff;
    object-fit: contain;
}

/* --- BOX CLICCABILI (3 COLONNE) --- */
.box-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    height: 250px;
}

.box-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.box-overlay h3 {
    color: #fff;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.box-link:hover img {
    transform: scale(1.08);
}

.box-link:hover .box-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .box-link {
        height: 200px;
    }
}

/* --- GROSSETO GALLERY --- */
.grosseto-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- PAGINA CAMERE --- */
.sezione-camera {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    gap: 50px;
    border-bottom: 1px solid #eee;
}

.sezione-camera:last-of-type { border-bottom: none; }

.sezione-camera img {
    width: 50%;
    max-width: 600px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.descrizione-camera { width: 40%; }
.descrizione-camera h3 { font-size: 1.8rem; margin-bottom: 15px; color: #2c3e50; }

.layout-sx { flex-direction: row; }
.layout-dx { flex-direction: row-reverse; }

.lista-servizi {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.servizio-item {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
}

.servizio-item i {
    color: #d4a373;
    font-size: 1.1rem;
    margin-right: 6px;
}

/* --- MENU COLAZIONE --- */
.menu-colazione {
    background-color: #fff;
    border: 1px solid #e8d5b0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
}

.menu-item {
    padding: 5px 0;
    border-bottom: 1px solid rgba(212, 163, 115, 0.3);
    line-height: 1.5;
}

.menu-item:first-child { padding-top: 0; }
.menu-item:last-child { border-bottom: none; padding-bottom: 0; }

.menu-nome {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.83rem;
    color: #3a2a1a;
}

.menu-nome::before {
    content: '◆ ';
    color: #d4a373;
    font-size: 0.5rem;
    vertical-align: middle;
}

.menu-desc {
    font-size: 0.78rem;
    color: #333;
    font-style: italic;
}

.menu-desc::before {
    content: ' — ';
    color: #d4a373;
    font-style: normal;
}

/* --- MODAL --- */
.modal-content {
    border-radius: 15px;
    border: none;
}
.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}
.modal-footer {
    border-top: none;
}
/* Stile per selettore lingua */
.lang-switcher {
    font-size: 0.8rem;
    text-decoration: none;
    color: #555;
    margin-left: 8px;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: 0.3s;
}
.lang-switcher:hover, .lang-switcher.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* --- MAPPA: PLACEHOLDER CONSENSO (consent-first) --- */
.map-consent {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    padding: 20px;
    background-color: #f9f6f0;
    background-image: linear-gradient(135deg, #f9f6f0 0%, #f1ead9 100%);
    transition: background-color 0.3s ease;
}

.map-consent:hover {
    background-color: #f1ead9;
}

.map-consent:focus {
    outline: 2px solid #d4a373;
    outline-offset: -2px;
}

.map-consent-content {
    max-width: 440px;
}

.map-consent-icon {
    font-size: 2.5rem;
    color: #d4a373;
    display: block;
    margin-bottom: 12px;
}

.map-consent-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.map-consent-note {
    font-size: 0.78rem;
    color: #777;
    margin-top: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

.map-consent-note a {
    color: #b07d4a;
}

/* --- MOBILE (< 768px) --- */
/* NB: questo blocco deve restare in fondo al file, dopo le regole base,
   altrimenti le regole desktop (definite più sotto) vincono per ordine di cascata. */
@media (max-width: 767px) {
    body { padding-top: 70px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    /* Logo centrato più piccolo su mobile */
    #logoimg {
        height: 110px;
        width: 110px;
    }
    #contenitorenome {
        margin-top: -55px;
        margin-bottom: 25px;
    }

    /* Contatti nella navbar a menu aperto: centrati con separatore */
    .contatti-box {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eee;
        justify-content: center;
    }

    /* Gallery Grosseto */
    .gallery-item { height: 150px; }

    /* Mappa più alta su mobile */
    .ratio-21x9 { --bs-aspect-ratio: 66.67%; }

    /* Camere: immagine sopra, testo sotto, entrambi a tutta larghezza */
    .sezione-camera {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 30px 15px;
    }
    .sezione-camera img {
        width: 100%;
        max-width: 100%;
        height: 220px;
    }
    .descrizione-camera {
        width: 100%;
        text-align: center;
    }
    .descrizione-camera h3 { font-size: 1.4rem; }
    .lista-servizi { justify-content: center; }

    /* Selettore lingua un filo più compatto */
    .lang-switcher { margin-left: 5px; padding: 2px 6px; }

    /* Testo introduttivo */
    .lead { font-size: 1.05rem; }

    /* Pagine legali (privacy policy): tabelle e titoli leggibili su schermo stretto */
    .legal-page h1 { font-size: 1.8rem; }
    .legal-page h2 { font-size: 1.2rem; }
    .legal-table th, .legal-table td { padding: 6px 8px; font-size: 0.82rem; }

    /* Placeholder mappa più compatto su mobile */
    .map-consent { padding: 14px; }
    .map-consent-icon { font-size: 2rem; margin-bottom: 8px; }
    .map-consent-text { font-size: 0.95rem; margin-bottom: 12px; }
    .map-consent-note { font-size: 0.72rem; }
}