/*
Theme Name: Wine Weekend
*/

/* ==========================================
   RESET BASE & VARIABILI COLORE WINE WEEKEND
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-header: #ffffff;        /* Sfondo header chiaro per far risaltare il logo */
    --text-color: #2b2b2b;       /* Testo scuro per massima leggibilità */
    --wine-red: #9E1B13;         /* Rosso Wine Weekend estratto dal logo */
    --wine-red-hover: #7d130d;   /* Rosso più scuro per gli stati hover */
    --dropdown-bg: #ffffff;      /* Sfondo tendina */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --home-section-space: 60px;
    --site-header-height: 90px;
}

@media (max-width: 1024px) {
    :root { --home-section-space: 48px; }
}

@media (max-width: 600px) {
    :root { --home-section-space: 36px; }
}

:where(#dove, #espositori, #biglietti, #accrediti, #partner) {
    scroll-margin-top: calc(var(--site-header-height) + 12px);
}

body {
    font-family: var(--font-main);
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   STRUTTURA HEADER & LOGO A SINISTRA
   ========================================== */

.site-header {
    background-color: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    max-height: 55px; /* Logo Rosso Wine Weekend */
    max-width: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ==========================================
   MENU DI NAVIGAZIONE
   ========================================== */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 10px 0;
}

/* Hover sui link in rosso Wine Weekend */
.nav-link:hover,
.nav-link:focus-visible {
    color: var(--wine-red);
}

/* PULSANTE BIGLIETTI (Colore Logo) */
.btn-tickets {
    background-color: var(--wine-red);
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(158, 27, 19, 0.3);
    transition: all 0.3s ease !important;
}

.btn-tickets:hover {
    background-color: var(--wine-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(158, 27, 19, 0.4);
}

/* ==========================================
   SOTTOMENU A TENDINA (DROPDOWN)
   ========================================== */
.dropdown {
    position: relative;
}

.dropdown button {
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dropdown-bg);
    list-style: none;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    padding: 10px 0;
    display: none;
    z-index: 1;
}

.dropdown.active .dropdown-menu,
.site-header:not(.navigation-ready) .dropdown:focus-within .dropdown-menu,
.site-header:not(.navigation-ready) .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
    background-color: #f9f0f0;
    color: var(--wine-red);
}

.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    color: var(--wine-red);
}

/* ==========================================
   MENU HAMBURGER (MOBILE)
   ========================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--wine-red);
    border-radius: 2px;
}

/* Hero */
.hero-headline {
    padding: var(--home-section-space) 0;
    text-align: center;
    color: #fff;
    background-color: #43131a;
    background-image:
        linear-gradient(180deg, rgba(35, 10, 16, 0.64) 0%, rgba(42, 11, 17, 0.57) 34%,
            rgba(40, 12, 18, 0.42) 72%, rgba(45, 13, 20, 0.56) 100%),
        url('https://www.wineweekend.it/wp-content/uploads/2026/ww8/IMG_9509%20(Grande).jpeg');
    background-size: cover;
    background-position: center;
}

.hero-title,
.hero-location,
.hero-area,
.hero-stats-heading {
    text-shadow: 0 1px 3px rgba(25, 5, 10, 0.85), 0 2px 7px rgba(25, 5, 10, 0.55);
}

.hero-title {
    max-width: 24ch;
    margin: 0 auto 12px;
    font-size: 3rem;
    font-size: clamp(1.9rem, 4.8vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    text-wrap: balance;
}

.hero-location {
    margin-bottom: 22px;
    font-size: 1.15rem;
    font-weight: 700;
}

.hero-area {
    display: grid;
    gap: 2px;
    width: fit-content;
    margin: 0 auto 24px;
    padding: 8px 22px;
    border-block: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-area strong {
    font-size: 1.8rem;
    line-height: 1.2;
}

.hero-stats-heading {
    margin-bottom: 9px;
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 680px;
    margin: 0 auto 24px;
}

.stat-card {
    min-width: 0;
    padding: 12px 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
}

.stat-number,
.stat-plus {
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat-label {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.hero-extra-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 750px;
    margin: 0 auto 24px;
    text-align: left;
}

.hero-service-card {
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.26);
}

.hero-service-card h2 {
    margin-bottom: 4px;
    font-size: 1.12rem;
    line-height: 1.2;
}

.hero-service-card p {
    font-size: 0.94rem;
    line-height: 1.5;
}

.btn-hero-cta {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    background: var(--wine-red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.btn-hero-cta:hover,
.btn-hero-cta:focus-visible {
    background: var(--wine-red-hover);
}

@media (max-width: 576px) {
    .hero-location { font-size: 1rem; }
    .hero-extra-services { grid-template-columns: 1fr; }
    .hero-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-stats-grid .stat-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
    :root { --site-header-height: 72px; }

    .header-container {
        min-height: var(--site-header-height);
        height: auto;
        flex-wrap: wrap;
    }

    .header-container nav { width: 100%; }
    .header-container .logo { max-width: calc(100% - 56px); }

    .nav-menu {
        flex-wrap: wrap;
        gap: 10px 20px;
        padding-bottom: 12px;
    }

    .nav-menu .nav-link { display: inline-block; }

    .navigation-ready .menu-toggle { display: flex; }

    .navigation-ready .header-container nav {
        position: absolute;
        top: 100%;
        left: 0;
    }

    .navigation-ready .nav-menu {
        display: none;
        max-height: calc(100vh - var(--site-header-height));
        max-height: calc(100dvh - var(--site-header-height));
        overflow-y: auto;
        padding: 18px 20px 24px;
        background: var(--bg-header);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    .navigation-ready .nav-menu.active {
        display: flex;
        flex-flow: column nowrap;
        align-items: stretch;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        padding: 0 0 0 12px;
        border: 0;
        box-shadow: none;
    }
}

/* ==========================================
   SEZIONE INTRODUZIONE & DOVE E QUANDO
   ========================================== */
.section-about-location {
    padding: var(--home-section-space) 0;
    background-color: #fdfdfd;
}

/* HEADLINE EDITORIALE */
.intro-headline-wrapper {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 32px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wine-red);
    margin-bottom: 12px;
}

.intro-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--wine-red);
    margin: 0 auto 25px auto;
    border-radius: 2px;
}

.intro-lead {
    font-size: 1.15rem;
    color: #555555;
    line-height: 1.8;
    font-weight: 400;
}

/* GRIGLIA CARDS + MAPPA */
.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: stretch;
}

.location-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.info-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(158, 27, 19, 0.08);
    border-color: rgba(158, 27, 19, 0.2);
}

.card-icon-box {
    background: #fdf2f2;
    color: var(--wine-red);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--wine-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-main-info {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.card-sub-info {
    font-size: 0.95rem;
    color: #666666;
    font-weight: 500;
}

.location-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 6px;
}

/* CONTENITORE MAPPA RESPONSIVE */
.map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
    background: #fff;
}

.map-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.intro-lead strong {
    color: var(--wine-red);
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .intro-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .info-card {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .intro-lead {
        font-size: 1rem;
    }

    .map-wrapper { min-height: 240px; }
}

/* ==========================================
   SEZIONE ESPOSITORI
   ========================================== */
.section-espositori {
    padding: var(--home-section-space) 0;
    background: linear-gradient(180deg, #fdfdfd 0%, #f7f5f5 100%);
    border-top: 1px solid #eaeaea;
}

.espositori-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.espositori-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.espositori-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 35px;
}

.espositori-lead strong {
    color: var(--wine-red);
}

/* BOX RIPROVA SOCIALE & LINK ARCHIVIO */
.espositori-proof-box {
    background: #ffffff;
    border: 1px solid rgba(158, 27, 19, 0.15);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.proof-text {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wine-red);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 20px;
    background: #fdf2f2;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-archive-link:hover {
    background: var(--wine-red);
    color: #ffffff;
    transform: translateY(-2px);
}

/* BADGE STATUS IN CORSO */
.espositori-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

@media (max-width: 576px) {
    .espositori-title { font-size: 1.7rem; }
    .espositori-proof-box { padding: 20px; }
}

/* ==========================================
   SEZIONE ACCREDITI (SFONDO CHIARO & BOX SCURO)
   ========================================== */
.section-accrediti {
    padding: 80px 0;
    background-color: #fdfdfd;
    border-top: 1px solid #eaeaea;
}

.accrediti-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.accrediti-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.accrediti-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 30px;
}

.accrediti-lead strong {
    color: var(--wine-red);
}

/* TARGET PILLS CON SFONDO CHIARO */
.accrediti-target-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.target-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* AVVISO DI VERIFICA RIGOROSA */
.accrediti-notice {
    font-size: 0.9rem;
    color: #666666;
    background: #fdf8f2;
    border: 1px solid #f0e2d0;
    padding: 14px 20px;
    border-radius: 12px;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: left;
}

.accrediti-notice strong {
    color: #8a5300;
}

/* ==========================================
   BOX SCURO STATUS (STILE ALLEGATO)
   ========================================== */
.accrediti-status-box {
    background: #fdf2f2;
    border: 1px solid rgba(158, 27, 19, 0.18);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(158, 27, 19, 0.05);
}

.status-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--wine-red);
    margin-bottom: 12px;
}

.status-text {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-accrediti-locked {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(158, 27, 19, 0.2);
    border-radius: 14px;
    padding: 14px 20px;
    color: #888888;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

@media (max-width: 576px) {
    .accrediti-title { font-size: 1.7rem; }
    .accrediti-status-box { padding: 30px 20px; }
    .accrediti-notice { text-align: center; }
}

.accrediti-contact {
    margin: 18px auto 0;
}

.accrediti-contact a {
    color: var(--wine-red);
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ==========================================
   SEZIONE BIGLIETTERIA & PRE-REGISTRAZIONE
   ========================================== */
.section-biglietteria {
    padding: 90px 0;
    background-color: #fdfdfd;
    border-top: 1px solid #eaeaea;
}

.biglietteria-wrapper {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.biglietteria-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.biglietteria-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 40px;
}

.biglietteria-lead strong {
    color: var(--wine-red);
}

/* CARD EARLY BIRD PREMIUM */
.earlybird-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdf6f6 100%);
    border: 2px solid rgba(158, 27, 19, 0.2);
    border-radius: 24px;
    padding: 45px 35px;
    box-shadow: 0 15px 40px rgba(158, 27, 19, 0.08);
    position: relative;
}

.earlybird-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fdf2f2;
    border: 1px solid rgba(158, 27, 19, 0.2);
    color: var(--wine-red);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.pulse-dot-gold {
    width: 8px;
    height: 8px;
    background-color: var(--wine-red);
    border-radius: 50%;
    animation: pulse-red-dot 1.8s infinite;
}

.earlybird-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.earlybird-desc {
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.earlybird-desc strong {
    color: var(--wine-red);
}

@media (max-width: 600px) {
    .earlybird-card { padding: 30px 20px; }
    .earlybird-title { font-size: 1.35rem; }
}

.waiting-list-status {
    font-size: 0.95rem;
    color: #555;
}

/* ==========================================
   BREVO FORM OVERRIDE - MARGINE PULSANTE
   ========================================== */
.brevo-form-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Form principale */
.brevo-form-container form,
.brevo-form-container .sib-form {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Reset dei contenitori interni di Brevo */
.brevo-form-container .sib-form-block,
.brevo-form-container .sib-input,
.brevo-form-container .form__entry,
.brevo-form-container .entry__field {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Campo Textfield Email */
.brevo-form-container input[type="email"],
.brevo-form-container input[type="text"] {
    width: 100% !important;
    height: 52px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    border: 1px solid #dcdcdc !important;
    font-size: 1rem !important;
    text-align: center !important;
    outline: none !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    margin: 0 0 16px 0 !important; /* Margine inferiore sotto l'input */
    box-sizing: border-box !important;
}

.brevo-form-container input[type="email"]:focus {
    border-color: var(--wine-red) !important;
    box-shadow: 0 0 0 3px rgba(158, 27, 19, 0.15) !important;
}

/* Pulsante Submit con spazio dedicato sopra */
.brevo-form-container input[type="submit"],
.brevo-form-container button[type="submit"],
.brevo-form-container .sib-default-btn {
    width: 100% !important;
    height: 52px !important;
    line-height: 52px !important;
    background: var(--wine-red) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(158, 27, 19, 0.25) !important;
    margin-top: 14px !important; /* Spazio netto sopra il pulsante */
    box-sizing: border-box !important;
    display: block !important;
}

.brevo-form-container input[type="submit"]:hover,
.brevo-form-container button[type="submit"]:hover {
    background: #7a130e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(158, 27, 19, 0.35) !important;
}

/* ==========================================
   SEZIONE ARCHIVIO EDIZIONI - CSS COMPLETO
   ========================================== */
.editions-section {
    padding: var(--home-section-space) 0;
    background-color: #faf7f5;
    position: relative;
    overflow: hidden;
}

.editions-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Sezione */
.editions-section .section-header {
    max-width: 720px;
    margin: 0 auto 28px;
}

.editions-section .badge-tag {
    display: inline-block;
    background: rgba(158, 27, 19, 0.08);
    color: var(--wine-red);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.editions-section .section-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.editions-section .text-highlight {
    color: var(--wine-red);
}

.editions-section .section-subtitle {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.6;
}

/* ------------------------------------------
   HERO CARD - ULTIMA EDIZIONE (8a)
   ------------------------------------------ */
.latest-edition-hero {
    margin-bottom: 60px;
    width: 100%;
}

.hero-edition-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(158, 27, 19, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-edition-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(158, 27, 19, 0.18);
    border-color: var(--wine-red);
}

.hero-edition-media {
    position: relative;
    width: 55%;
    min-height: 360px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.hero-edition-card:hover .hero-edition-media img {
    transform: scale(1.05);
}

.hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--wine-red);
    color: #ffffff !important;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.hero-edition-content {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: #ffffff;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #777777;
    margin-bottom: 16px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
}

.hero-meta i {
    color: var(--wine-red);
    margin-right: 6px;
}

.hero-edition-title {
    font-size: 1.9rem;
    font-weight: 900;
    color: #1a1a1a !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.2;
    text-decoration: none !important;
}

.hero-edition-desc {
    font-size: 1rem;
    color: #555555 !important;
    line-height: 1.6;
    margin: 0 0 25px 0 !important;
    text-decoration: none !important;
}

/* Pulsante Cliccabile Dedicato */
.hero-edition-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wine-red) !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(158, 27, 19, 0.25);
    cursor: pointer;
}

.hero-edition-btn:hover {
    background: #7a130e !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(158, 27, 19, 0.35);
}

/* Subtitle Archivio */
.archive-subtitle-container {
    margin-bottom: 14px;
}

.archive-subtitle {
    font-size: 1.4rem;
    font-weight: 800;
    color: #222222;
    position: relative;
    display: inline-block;
}

.archive-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--wine-red);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

.editions-controls:not([hidden]) {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.editions-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #e7cac6;
    border-radius: 8px;
    background: #fff;
    color: var(--wine-red);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.editions-controls button:hover,
.editions-controls button:focus-visible {
    background: #f8ebea;
}

/* ------------------------------------------
   CAROSELLO SCROLL MANUALE & JS-DRIVEN
   ------------------------------------------ */
.editions-carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0 16px;
    cursor: grab;
    scroll-behavior: auto;
    scrollbar-width: none; /* Nasconde scrollbar Firefox */
    -ms-overflow-style: none; /* Nasconde scrollbar IE/Edge */
}

.editions-carousel-wrapper::-webkit-scrollbar {
    display: none; /* Nasconde scrollbar Chrome/Safari */
}

.editions-carousel-wrapper.active {
    cursor: grabbing;
}

.editions-track {
    position: relative;
    display: flex;
    gap: 30px;
    width: max-content;
    user-select: none;
}

.editions-carousel-wrapper:focus-visible,
.edition-card:focus-visible {
    outline: 2px solid var(--wine-red);
    outline-offset: -3px;
}

/* Card Single Edition */
.edition-card {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.edition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(158, 27, 19, 0.15);
    border-color: rgba(158, 27, 19, 0.2);
}

.edition-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.edition-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.edition-card:hover .edition-card-media img {
    transform: scale(1.08);
}

.edition-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.edition-year {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--wine-red);
    color: #ffffff !important;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 5px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.edition-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.edition-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #888888;
    margin-bottom: 10px;
}

.edition-meta i {
    color: var(--wine-red);
    margin-right: 4px;
}

.edition-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a !important;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.edition-card:hover .edition-title {
    color: var(--wine-red) !important;
}

.edition-desc {
    font-size: 0.88rem;
    color: #666666 !important;
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
    text-decoration: none !important;
}

.edition-link {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--wine-red) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    text-decoration: none !important;
}

.edition-card:hover .edition-link {
    gap: 12px;
}

/* Responsive Mobile & Tablet */
@media (max-width: 992px) {
    .hero-edition-card {
        flex-direction: column;
    }
    .hero-edition-media,
    .hero-edition-content {
        width: 100%;
    }
    .hero-edition-media {
        min-height: 260px;
    }
    .hero-edition-content {
        padding: 30px 24px;
    }
}

@media (max-width: 600px) {
    .edition-card {
        width: min(290px, calc(100vw - 32px));
    }
    .editions-section .section-title {
        font-size: 1.8rem;
    }
}

/* Sponsor e patrocini */
.partner-section {
    padding: var(--home-section-space) 0;
    background-color: #fff;
}

.partner-section .container {
    max-width: 1000px;
}

.partner-section .section-header {
    max-width: 720px;
    margin: 0 auto 24px;
}

.partner-section .section-title {
    margin-bottom: 12px;
    color: #1a1a1a;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
}

.partner-section .section-subtitle {
    color: #555;
    font-size: 1.05rem;
}

.become-sponsor-card {
    margin-bottom: 34px;
    padding: clamp(16px, 4vw, 32px);
    border: 1px solid rgba(158, 27, 19, 0.14);
    border-radius: 20px;
    background: #faf7f5;
}

.sponsor-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.benefit-item {
    padding: 16px;
    border: 1px solid #eee6e1;
    border-radius: 12px;
    background: #fff;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefit-item h3 {
    margin-bottom: 6px;
    color: #1a1a1a;
    font-size: 1rem;
}

.sponsor-contact-info {
    margin-top: 20px;
    text-align: center;
}

.sponsor-contact-info > a {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--wine-red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.sponsor-contact-info > a:hover,
.sponsor-contact-info > a:focus-visible {
    background: var(--wine-red-hover);
}

.sponsor-contact-email {
    margin-top: 8px;
}

.sponsor-contact-email a {
    color: var(--wine-red);
    overflow-wrap: anywhere;
}

.patrocini-block {
    text-align: center;
}

.patrocini-label {
    margin-bottom: 14px;
    color: var(--wine-red);
    font-size: 0.92rem;
    font-weight: 800;
}

.patrocini-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px 28px;
    width: 100%;
}

.patrocinio-item {
    flex: 0 1 150px;
    min-width: 0;
    padding: 4px;
}

.patrocinio-item img {
    display: block;
    width: 100%;
    height: 70px;
    object-fit: contain;
}

.text-center { text-align: center; }

@media (max-width: 680px) {
    .sponsor-benefits-grid { grid-template-columns: 1fr; }
    .patrocinio-item img { height: 54px; }
}

/* ==========================================
   FOOTER CHIARO
   ========================================== */
.site-footer {
    background-color: #faf7f5;
    border-top: 1px solid rgba(158, 27, 19, 0.12);
    padding: 60px 0 30px 0;
    color: #444444;
}

.site-footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo-img {
    max-height: 55px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--wine-red);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* Lista Contatti */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Stile per le Icone SVG dei contatti */
.footer-icon {
    width: 20px;
    height: 20px;
    color: var(--wine-red);
    flex-shrink: 0;
}

.footer-contact-item a {
    color: #222222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--wine-red);
}

/* Bottone Torna Su con Freccia SVG */
.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #333333;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    color: var(--wine-red);
    transition: transform 0.3s ease, color 0.3s ease;
}

.back-to-top-btn:hover {
    background: var(--wine-red);
    color: #ffffff;
    border-color: var(--wine-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(158, 27, 19, 0.25);
}

.back-to-top-btn:hover .arrow-icon {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 25px;
    font-size: 0.85rem;
    color: #777777;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact-item {
        justify-content: center;
    }
}

/* ==========================================
   EDIZIONI & GALLERY LIGHTBOX
   ========================================== */
.page-wrapper {
    min-height: 80vh;
}

.hero-edition {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
}

.hero-edition h1 {
    font-size: 2.8rem;
    color: var(--primary-color, #8b0000);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-edition p {
    max-width: 750px;
    margin: 0 auto 15px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.gallery-section {
    padding: 40px 0 80px;
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    background-color: #eee;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

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

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

/* Modal Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color, #8b0000);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary-color, #8b0000);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
    .hero-edition h1 { font-size: 2.1rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
}

/* ==========================================
   OTTIMIZZAZIONE E COMPATTAMENTO CARD 8a EDIZIONE
   ========================================== */

/* Contenitore principale limitato */
.latest-edition-hero {
    max-width: 900px; /* Riduce la larghezza totale del box */
    margin: 0 auto 28px;
}

.hero-edition-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 16px; /* Bordo leggermente più contenuto */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(158, 27, 19, 0.15);
    align-items: stretch;
}

/* Colonna Immagine Ridimensionata */
.hero-edition-media {
    position: relative;
    width: 35%; /* Ridotto rispetto al 55% per dare proporzione all'immagine orizzontale */
    min-height: 180px; /* Altezza minima molto più contenuta */
    overflow: hidden;
    flex-shrink: 0;
}

.hero-edition-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge Ultima Edizione ridotto */
.hero-badge {
    top: 12px;
    left: 12px;
    font-size: 0.72rem;
    padding: 5px 12px;
}

/* Colonna Contenuto e Testi */
.hero-edition-content {
    width: 58%;
    padding: 24px 28px; /* Padding ridotto per abbassare l'altezza verticale */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-meta {
    gap: 12px;
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.hero-edition-title {
    font-size: 1.45rem !important; /* Titolo compatto */
    margin: 0 0 8px 0 !important;
}

.hero-edition-desc {
    font-size: 0.88rem !important; /* Descrizione snella */
    line-height: 1.45 !important;
    margin: 0 0 16px 0 !important;
}

/* Pulsante compatto */
.hero-edition-btn {
    align-self: flex-start;
    min-height: 44px;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .hero-edition-card {
        flex-direction: column;
    }
    
    .hero-edition-media {
        width: 100% !important;
        height: clamp(175px, 45vw, 290px) !important;
        min-height: 0 !important;
    }

    .hero-edition-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: bottom center !important; /* Forza l'inquadratura sulla parte bassa */
    }


    .hero-edition-content {
        width: 100%;
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-edition-card,
    .hero-edition-media img,
    .hero-edition-btn,
    .edition-card,
    .edition-card img {
        transition: none;
    }

    .hero-edition-card:hover,
    .hero-edition-card:hover .hero-edition-media img,
    .hero-edition-btn:hover,
    .edition-card:hover,
    .edition-card:hover img {
        transform: none;
    }
}
