/* ==========================================================================
   ALTEA ILLOTTO — VINI ARTIGIANALI DA FERMENTAZIONE SPONTANEA
   Foglio di stile unificato per GitHub Pages
   Colori e identità visiva coordinati con il logo ufficiale
   ========================================================================== */

/* 1. FONT E VARIABILI UFFICIALI */
@font-face {
    font-family: 'Altea Illotto';
    src: url('../Alteaillottofont-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Palette ufficiale estratta dal logo Altea Illotto */
    --bg: #fcf9f2;              /* Fondo pergamena / crema caldo */
    --bg-alt: #f5eedf;          /* Fondo alternativo per sezioni scure / calde */
    --text: #2c2c2c;            /* Testo antracite profondo ad alta leggibilità */
    --text-light: #6b6b6b;      /* Testo secondario / descrizioni */
    --accent: #8C2D32;          /* Rosso vino / bordeaux nobile (dal logo) */
    --accent-hover: #6B1F25;    /* Hover bordeaux intenso */
    --gold: #EAD3A2;            /* Oro caldo (dal bordo decorativo del logo) */
    --gold-light: #f7efe1;      /* Oro sfumato per badge e pillole */
    --border: #e0d6c8;          /* Bordi delicati tono su tono */
    --card-bg: #fffcf7;         /* Sfondo card e box */
    --max-w: 1120px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Altea Illotto', 'Playfair Display', Georgia, serif;
    --header-h: 80px;
}

/* 2. RESET E BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* 3. TIPOGRAFIA E TITOLI */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.3;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text);
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 50px;
}

.title-accent {
    display: inline-block;
    position: relative;
}

.title-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 14px auto 0;
}

/* 4. BOTTONI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #fff !important;
    padding: 13px 26px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--accent);
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(140, 45, 50, 0.25);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 10px 22px;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(140, 45, 50, 0.18);
}

/* 5. SEZIONI E SEPARATORE DIRETTO DAL LOGO (HLINE) */
.section {
    padding: 90px 0;
    position: relative;
}

.section-dark {
    background: var(--gold);
}

/* Il divisore con il fregio ritagliato dal logo */
.hline {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: var(--gold);
}

.hline img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .hline img {
        height: 45px;
    }
}

/* 6. HEADER E NAVIGAZIONE UNIFICATA */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(252, 249, 242, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Solo nella Home: l'header è nascosto all'inizio per mostrare l'Hero a schermo intero e scende dolcemente quando si passa alle sezioni successive */
body.home header {
    top: -120px;
}

body.home header.scrolled {
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--accent);
    font-weight: 600;
}

.logo-link img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    color: var(--text);
    padding: 6px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

nav a:hover {
    color: var(--accent);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--accent);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 7. HERO DELLA HOMEPAGE */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.8s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.58) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 36px;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    opacity: 0.75;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* 8. HERO PER LE PAGINE INTERNE */
.page-hero {
    padding: 130px 0 60px;
    background: var(--bg);
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
}

/* Galleria hero (testo centrato, stile come originale) */
.gallery-section {
    text-align: center;
}

.gallery-section h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 12px;
    text-align: center;
}

.gallery-section .gallery-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 9. CHI SIAMO & VIGNETO */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.about-img img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-img:hover img {
    transform: scale(1.03);
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--accent);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-text .signature {
    font-family: var(--font-serif);
    font-style: italic;
    margin-top: 24px;
    color: var(--accent);
    font-size: 1.15rem;
}

.vigneto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.vigneto-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.vigneto-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vigneto-img:hover img {
    transform: scale(1.03);
}

.vigneto-text h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--accent);
    margin: 24px 0 10px;
}

.vigneto-text h4:first-child {
    margin-top: 0;
}

.vigneto-text p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.98rem;
}

/* 10. I NOSTRI VINI */
.vini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.vino-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.vino-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
}

.vino-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vino-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vino-card:hover .vino-img img {
    transform: scale(1.05);
}

.vino-body {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vino-body h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
    color: var(--text);
}

.vino-body .vino-denom {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.vino-body p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

/* 11. SCHEDE TECNICHE & TABS */
.scheda-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.scheda-tab {
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.25s ease;
}

.scheda-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.scheda-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(140, 45, 50, 0.2);
}

.scheda-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.scheda-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scheda-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.scheda-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.07);
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 560px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scheda-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.scheda-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.scheda-content .vino-denom {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.scheda-content .vino-bio {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.scheda-content .desc {
    color: var(--text);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.tech-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.tech-table td:first-child {
    font-weight: 600;
    width: 38%;
    color: var(--text);
}

.tech-table td:last-child {
    color: var(--text-light);
}

/* 12. DOVE TROVARCI & FILTRI LOCALI */
.dove-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.dove-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 32px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.dove-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.dove-card .dove-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dove-card .dove-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.dove-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.dove-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 18px;
    flex-grow: 1;
}

.dove-card .dove-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
}

.dove-card:hover .dove-link {
    text-decoration: underline;
}

/* Filtri per lista locali */
.locali-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0 20px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.lista-locali {
    list-style: none;
    margin: 20px auto 0;
    padding: 0;
    max-width: 720px;
}

.lista-locali li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.lista-locali li:last-child {
    border-bottom: none;
}

.lista-locali .nome {
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.lista-locali .luogo {
    color: var(--text-light);
    font-size: 0.92rem;
}

.lista-locali .tipo {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-right: 4px;
}

/* 13. EVENTI CARD */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.event-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.event-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gold-light);
    border-bottom: 1px solid var(--border);
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.event-card:hover .event-media img {
    transform: scale(1.04);
}

.event-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(252, 249, 242, 0.96);
    backdrop-filter: blur(4px);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 8px 13px;
    min-width: 62px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.date-day {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--accent);
}

.date-month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-top: 2px;
}

.date-year {
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: 1px;
}

.event-content {
    padding: 24px 26px 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-meta-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.event-detail-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.event-desc {
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 0;
}

.event-actions {
    margin-top: auto;
    padding-top: 8px;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(140, 45, 50, 0.35);
    padding-bottom: 3px;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.event-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
    gap: 12px;
}

/* Eventi passati */
.event-card.past-event {
    opacity: 0.86;
}

.event-card.past-event .event-media img {
    filter: grayscale(20%);
}

.event-card.past-event .event-date-badge {
    background: rgba(245, 242, 236, 0.95);
    border-color: var(--border);
}

.event-card.past-event .date-day {
    color: var(--text-light);
}

/* 14. VISITE IN CANTINA & CALENDARIO PRENOTAZIONI */
.hero-visite {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.visite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.visita-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 36px 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.visita-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.visita-card .visita-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visita-card .visita-icon svg {
    width: 30px;
    height: 30px;
    color: var(--accent);
}

.visita-card h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.visita-card .durata {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.visita-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.visita-card ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 0;
}

.visita-card ul li {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.visita-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.info-box {
    background: var(--gold);
    border-radius: 8px;
    padding: 40px;
    margin: 50px auto;
    max-width: 800px;
    text-align: center;
}

.info-box h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.info-box p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.info-box .highlight {
    font-weight: 600;
    color: var(--accent);
}

/* Calendario */
.calendario-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendario-header h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--accent);
    margin: 0;
}

.calendario-nav {
    display: flex;
    gap: 12px;
}

.calendario-nav button {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.calendario-nav button:hover {
    background: var(--accent-hover);
}

.calendario-nav button:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendario-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.calendario-weekdays div {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px 0;
}

.calendario-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendario-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    position: relative;
}

.calendario-day:hover:not(.disabled):not(.empty) {
    background: var(--gold);
    border-color: var(--accent);
}

.calendario-day.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

.calendario-day.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendario-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendario-day.today:not(.disabled) {
    border: 2px solid var(--accent);
}

.data-selezionata-display {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: var(--gold);
    border-radius: 6px;
    font-weight: 600;
    color: var(--accent);
    display: none;
}

.data-selezionata-display.visible {
    display: block;
}

/* Galleria anteprima in home (3 colonne, gal-tall, gal-wide) */
.gallery-grid.home-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid.home-gallery .gal-item {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-grid.home-gallery .gal-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-grid.home-gallery .gal-item:hover img {
    transform: scale(1.05);
}

.gallery-grid.home-gallery .gal-tall {
    grid-row: span 2;
}

.gallery-grid.home-gallery .gal-tall img {
    height: 100%;
}

.gallery-grid.home-gallery .gal-wide {
    grid-column: span 2;
}

/* 15. GALLERIA & LIGHTBOX */
.gallery-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: var(--card-bg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 14px;
    font-size: 0.95rem;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-close { top: 20px; right: 25px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--gold);
}

/* 15. FORM E CONTATTI */
.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contatti-info h4 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.contatti-info p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contatti-info .cont-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.contatti-info .cont-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent);
}

.contatti-info .social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.contatti-info .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    background: var(--card-bg);
}

.contatti-info .social-links a:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.contatti-info .social-links a:hover svg {
    color: #fff;
}

.contatti-info .social-links svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    transition: color 0.25s ease;
}

.cont-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cont-form input,
.cont-form textarea,
.cont-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: #fffcf7;
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.cont-form input:focus,
.cont-form textarea:focus,
.cont-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(140, 45, 50, 0.1);
}

.cont-form textarea {
    min-height: 130px;
    resize: vertical;
}

.form-result {
    font-size: 0.92rem;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

.map-wrap {
    margin-top: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.map-wrap iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

/* 16. FOOTER */
footer {
    background: #1e1e1e;
    color: #b3b3b3;
    padding: 70px 0 30px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

footer h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

footer p, footer a {
    font-size: 0.88rem;
    line-height: 1.8;
}

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

footer .footer-logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

footer .footer-logo span {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.82rem;
    color: #888;
}

/* 17. ANIMAZIONI E TRANSIZIONI (FADE IN) */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* 18. RESPONSIVE DESIGN */
@media (max-width: 960px) {
    .about-grid,
    .vigneto-grid,
    .scheda-wrap,
    .contatti-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img img,
    .vigneto-img img {
        height: 340px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 70px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 70vh;
        padding: 100px 0 60px;
    }
    
    .hero-visite {
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: rgba(252, 249, 242, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px 28px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
        align-items: flex-start;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    
    nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    nav a {
        font-size: 1.05rem;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid rgba(224, 214, 200, 0.5);
    }
    
    .scheda-img {
        max-height: 420px;
    }
}

@media (max-width: 540px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid.home-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-grid.home-gallery .gal-tall,
    .gallery-grid.home-gallery .gal-wide {
        grid-row: unset;
        grid-column: unset;
    }

    .gallery-grid.home-gallery .gal-item img {
        height: 220px;
    }
    
    .dove-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
