/* <=================== STYLE.CSS - COMPLETO E CORRETTO ===================> */

/* 1. VARIABILI & RESET */
:root {
    --h1-size: 4rem;
    --h2-size: 2.2rem;
    --h3-size: 1.8rem;
    --text-size: 1.1rem;
    --horizontal-margin-spacing: 6rem;
    
    /* Colori tema */
    --bg-sage: rgb(244, 233, 211); 
    --bg-sage-light: rgb(231, 230, 196);
    --wine-color: #5c1a20; 
    --bg-sage--dark: rgb(218, 216, 183); 
    --wine-color-light: #693a3f; 
    --wine-dark: #4a1218;   
    --text-color: #212121;
    --white: #ffffff;
    --nav-height: 80px; 

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0; /* Aggiunto reset padding */
    color: var(--text-color);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-sage); 
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cinzel', serif;
    padding-top: var(--nav-height); 
    overflow-x: hidden;
}

.hz-margin {
    padding: 0 var(--horizontal-margin-spacing);
}

/* 2. TIPOGRAFIA */
h1 {
    font-size: var(--h1-size);
    font-weight: 500;
    line-height: 1.1;
    color: var(--wine-color);
    text-transform: uppercase;
    margin-bottom: 20px;
}

h2 {
    font-size: var(--h2-size);
    font-weight: bold;
    color: var(--wine-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: var(--h3-size);
    font-weight: 500;
    color: var(--wine-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

p, .text {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--text-size);
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: 0px;       /* Spazia leggermente le lettere per eleganza */
}

/* 3. ELEMENTI COMUNI */
.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}
.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.huge-btn {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    background: transparent;
    border: 1px solid var(--wine-color);
    color: var(--wine-color);
    padding: 15px 40px;
    border-radius: 50px;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
}

.huge-btn:hover {
    background-color: var(--wine-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 26, 32, 0.2);
}

/* 4. NAVBAR (Versione PC) */
nav {
    height: var(--nav-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: var(--wine-color-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

label.logo a {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
}

nav ul {
    display: flex; /* Orizzontale su PC */
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin: 0 5px;
}

nav ul li a {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    transition: .5s;
}

nav ul li a:hover {
    color: #ddd;
}

/* Nascondiamo checkbox e icona su PC */
.checkbtn {
    display: none;
}
#check {
    display: none;
}

/* 5. FOOTER (Versione PC) */
footer {

    background-color: var(--wine-color-light);
    color: white;
    padding: 60px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col.left { text-align: left; }
.footer-col.center { text-align: center; }
.footer-col.right { text-align: right; }

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-col p {
    color: #f0f0f0;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: 0.3s;
}


/* <======================================================> */
/* <=== SEZIONE MOBILE (MEDIA QUERIES) - IMPORTANTE ===> */
/* <======================================================> */

/* Regole per TABLET e SMARTPHONE (sotto 1024px) */
@media (max-width: 1024px) {
    
    /* Ridimensionamento Variabili */
    :root {
        --h1-size: 2.8rem;
        --h2-size: 1.8rem;
        --h3-size: 1.4rem;
        --text-size: 1rem;
        --horizontal-margin-spacing: 1.5rem;
        --nav-height: 60px;
    }

    /* NAVBAR MOBILE (HAMBURGER) */
    .checkbtn {
        display: block; /* Mostra icona */
        font-size: 30px;
        color: white;
        cursor: pointer;
        order: 2; /* Mette l'icona a destra */
    }
    .checkbtn i {
        color: white !important;
    }

    /* MENU A TENDINA MOBILE */
    nav ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background-color: var(--wine-color-light);
        
        
        top: var(--nav-height); 
        
       
        left: -100%;
        text-align: center;
        transition: left 0.4s ease; /* Transizione più fluida */
        z-index: 999;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 100px; /* Spazio extra in fondo per sicurezza */
    }
    
    nav ul li {
        display: block;
        margin: 30px 0;
    }

    nav ul li a {
        font-size: 20px;
        display: block;
    }

    /* Animazione Apertura Menu */
    #check:checked ~ ul {
        left: 0;
    }
}

/* Regole specifiche per SMARTPHONE (sotto 768px) */
@media (max-width: 768px) {
    
    /* FOOTER MOBILE (Layout personalizzato) */
    footer {
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 20px;
        padding-bottom: 40px;
    }

    /* Blocco Centrale (Nomi e Data) SOPRA */
    .footer-col.center { 
        order: 1;
        width: 100%;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
    }

    /* Blocchi Laterali (Contatti) SOTTO e AFFIANCATI */
    .footer-col.left, 
    .footer-col.right { 
        order: 2;
        width: 45%; /* Affiancati */
        min-width: auto;
        text-align: center;
        padding: 0 5px;
    }
    
    .footer-col.left h3,
    .footer-col.right h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .footer-col.left p,
    .footer-col.right p {
        font-size: 0.85rem;
    }
    /* Rimpicciolisce leggermente i testi per una lettura più comoda su mobile */
    p, .text {
        font-size: 1rem; 
        margin-bottom: 15px;
    }
    
    /* Riduce leggermente i titoli per non farli andare su troppe righe */
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.4rem !important; }
}

/* <=== STILE BOTTONI LINGUA (Pillola) ===> */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15); /* Sfondo semitrasparente elegante */
    border-radius: 25px;
    padding: 3px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* Quando la lingua è selezionata (Attiva) */
.lang-btn.active {
    background-color: white;
    color: var(--wine-color); /* Scritta bordeaux su sfondo bianco */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lang-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Adattamento per Cellulari (Mobile) */
@media (max-width: 1024px) {
    .lang-switcher {
        margin: 20px auto; /* Lo centra nel menu a tendina */
        justify-content: center;
        width: max-content;
        padding: 5px;
    }
    .lang-btn {
        font-size: 1.1rem;
        padding: 10px 25px; /* Più grande per premerlo col dito */
    }
}