/* ==========================================================================
   1. CARICAMENTO FONT LOCALI (Zero Cookie - Iubenda Free Approved)
   ========================================================================== */
@font-face {
    font-family: 'FontTitolo';
    src: url('../fonts/font-titolo.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FontTesto';
    src: url('../fonts/font-testo.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. VARIABILI CSS (Palette Colori)
   ========================================================================== */
:root {
    --bg-warm: #FDFBF9;
    --text-dark: #1E293B;
    --lake-blue: #0F2042;
    --sand-gold: #C5A880;
    --sand-light: #F4EFEA;
}

/* ==========================================================================
   3. RESET DI BASE E IMPOSTAZIONI STRUTTURALI
   ========================================================================== */
html {
    scroll-behavior: smooth; /* Scorrimento fluido per le ancore */
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    font-family: 'FontTesto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typo generica */
h1, h2, h3, h4 {
    font-family: 'FontTitolo', 'Times New Roman', serif;
    color: var(--lake-blue);
    margin-top: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Link */
a {
    color: var(--lake-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sand-gold);
}

/* Container responsive base per Dreamweaver senza Bootstrap */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ==========================================================================
   HERO SECTION (Immagine Drone + Testo)
   ========================================================================== */
#hero {
    height: 580px; 
    background-image: url('../immagini/hero-spiaggia-lido-lake-como.webp'); 
    background-size: cover; 
    background-position: center 40%; 
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
}

/* Modifiche specifiche per Smartphone/Mobile */
@media (max-width: 767px) {
    #hero {
        height: 380px; /* Riduciamo l'altezza su mobile così non occupa tutto lo schermo del telefono */
        
        /* Centra perfettamente l'immagine in orizzontale e regola la percentuale verticale (es. 50% o 30%) 
           per decidere se mostrare più cielo o più spiaggia. Puoi fare delle prove modificando questo valore: */
        background-position: center 50%; 
    }
}
/* Sfumatura scura leggera per far leggere il testo bianco sopra la spiaggia */
#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 32, 66, 0.3), rgba(15, 32, 66, 0.4));
    z-index: 1;
}

.z-index-1 {
    z-index: 2;
}
/* Dettagli di stile per i testi della Hero */
.text-sand {
    color: var(--sand-gold) !important;
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.tracking-widest { letter-spacing: 4px; }
.tracking-wider { letter-spacing: 2px; }

#hero h1 {
    color: #ffffff; /* Sovrascrive il blu scuro per la hero */
    font-size: calc(2rem + 3vw); /* Testo responsive che si adatta allo schermo */
}

#hero p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
}

/* Stilizziamo il nuovo pulsante scuro per la zona bianca */
.btn-outline-dark {
    border-color: var(--lake-blue);
    color: var(--lake-blue);
    transition: all 0.4s ease;
}

.btn-outline-dark:hover {
    background-color: var(--lake-blue);
    color: #ffffff;
}

.text-sand {
    color: var(--sand-gold) !important;
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 600;
}
.tracking-widest { letter-spacing: 4px; }

/* ==========================================================================
   ANIMAZIONE SCHEDE TARIFFE (Hover Effect)
   ========================================================================== */
.card-animata {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    will-change: transform, box-shadow;
}

/* Quando il mouse passa sopra il riquadro */
.card-animata:hover {
    transform: translateY(-8px); /* Solleva la scheda di 8 pixel */
    box-shadow: 0 1rem 3rem rgba(15, 32, 66, 0.15) !important; /* Rende l'ombra più morbida e profonda */
}

/* Colore Navy personalizzato per i titoli del listino */
.text-navy {
    color: var(--lake-blue, #0f2042);
}
.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* ==========================================================================
   ADATTAMENTO HERO PER MOBILE (Schermi < 768px)
   ========================================================================== */
@media (max-width: 767px) {
    #hero {
        height: 320px; /* Altezza proporzionata per gli schermi verticali degli smartphone */
        background-position: center center; /* Ricentra la foto per mostrare il cuore del panorama */
    }
}

/* ==========================================================================
   PERSONALIZZAZIONE VOCE MENÙ ATTIVA (SCROLLSPY)
   ========================================================================== */

/* Cambia il colore del testo e lo rende più marcato */
.navbar-nav .nav-link.active {
    color: var(--lake-blue, #0f2042) !important;
    font-weight: 700; /* Rende il testo in grassetto per staccare dalle altre voci */
    position: relative;
}

/* Aggiunge una raffinata linea dorata sotto la voce attiva */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: var(--sand-gold, #d4af37); /* Il colore oro/sabbia del lido */
}
/* Effetti Hover per i link del Footer */
.hover-white {
    transition: color 0.2s ease-in-out;
}
.hover-white:hover {
    color: #ffffff !important;
}
/* ==========================================================================
   CORREZIONE E VISIBILITÀ TESTI FOOTER
   ========================================================================== */

/* Forza i testi secondari del footer a un grigio chiaro molto leggibile */
footer .text-muted {
    color: #b0b3b8 !important; 
}

/* Gestione dei link del footer */
footer a.text-muted {
    color: #a0a4a9 !important;
    transition: color 0.2s ease-in-out;
}

/* Effetto quando si passa il mouse sopra i link */
footer a.text-muted:hover, 
footer .hover-white:hover {
    color: #ffffff !important;
    text-decoration: underline !important; /* Aggiunge una linea di sottolineatura elegante al passaggio */
}

/* Colore delle icone (telefono, mappa, email) nel footer */
footer .bi {
    color: var(--sand-gold, #d4af37) !important;
}
/* Uniforma tutti i titoli del footer con il colore oro/sabbia */
footer h5 {
    color: #d4af37 !important;
    font-weight: 600;
    letter-spacing: 1px;
}
/* Customizzazione di lusso per le FAQ */
.accordion-item {
    border-color: rgba(15, 32, 66, 0.08) !important; /* Linea di divisione leggerissima color Navy */
}

.accordion-button {
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important; /* Rimosso l'effetto scatola colorata */
    color: var(--sand-gold, #d4af37) !important; /* Quando si apre, il titolo diventa Oro */
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

/* Cambia il colore della freccetta quando la FAQ si apre per farla diventare oro */
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d4af37'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
/* Stile separatore breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #ccc;
    padding-right: 0.5rem;
}
.img-fluid {
    transition: transform 0.4s ease;
}
.img-fluid:hover {
    transform: scale(1.03); /* Lieve zoom al passaggio del mouse */
    cursor: pointer;
}
/* --- STILE GALLERY ASIMMETRICA --- */

/* Contenitore Immagine: serve a tagliare lo zoom all'interno dei bordi */
.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa; /* Evita il flash bianco durante il caricamento */
}

/* Regole per le altezze su Desktop (Large screens) */
@media (min-width: 992px) {
    .main-img {
        height: 450px;
    }
    .sub-img {
        height: 217px; /* Calcolato al millimetro per accoppiarsi alla grande con i gap */
    }
}

/* Regole per Mobile e Tablet (Risolve il tuo problema delle foto giganti) */
@media (max-width: 991px) {
    .main-img {
        height: 280px;
    }
    .sub-img {
        height: 180px;
    }
}

/* L'immagine effettiva */
.img-custom {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Taglia l'immagine perfettamente senza distorcerla */
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* Zoom fluido stile luxury */
}

/* Effetto d'ingrandimento controllato al passaggio del mouse o al click */
.img-wrapper:hover .img-custom {
    transform: scale(1.06);
}

/* Linea decorativa sotto i titoli di sezione per dare tono aziendale */
.section-title {
    color: #0f2042; /* Tuo text-navy */
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}
/* --- FIX INQUADRATURE PERSONALIZZATE (VERSIONE FINALE) --- */

/* Vista Aerea: Manteniamo il respiro panoramico sulla prima griglia su Desktop */
@media (min-width: 992px) {
    #spiaggia .main-img {
        height: 350px; 
    }
    #spiaggia .sub-img {
        height: 167px; /* Allineamento perfetto con il gap */
    }
}

/* --- STILE CTA FINALE --- */
.bg-navy {
    background-color: #0f2042; /* Il tuo colore Navy principale */
}

.btn-gold {
    background-color: var(--sand-gold, #d4af37);
    color: #0f2042 !important;
    font-weight: 500;
    border: 1px solid var(--sand-gold, #d4af37);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #c29d2e; /* Un oro leggermente più scuro al passaggio */
    border-color: #c29d2e;
    transform: translateY(-2px); /* Effetto sollevamento luxury */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.py-2-custom {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* Evita l'uppercase come da promemoria */
.text-uppercase-disabled {
    text-transform: none !important;
}