/* ============================
   RESET & BASE
   ============================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1A1A1A;
    --bg-deep: #111111;
    --bg-section: #222222;
    --text-cream: #F0EBE1;
    --text-light: #C8C2B8;
    --text-muted: #8A8478;
    --gold: #C9A96E;
    --gold-light: #D4B97E;
    --adagio-brown: #8B6D4E;
    --moderato-red: #8B2D3A;
    --allegro-blue: #2B4C7E;
    --font-display: 'Cinzel', 'Georgia', serif;
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: auto;
    /* gestito da Lenis */
}

body {
    background: var(--bg-primary);
    color: var(--text-cream);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ============================
   NAVIGATION
   ============================ */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    transition: background 0.4s;
}

.nav-header.scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
}

.nav-logo img {
    height: 50px;
}

.nav-hamburger {
    width: 32px;
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text-cream);
    transition: 0.3s;
    border-radius: 1px;
}

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

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

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

/* Fullscreen Menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 17, 0.97);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-cream);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 15px 0;
    transition: color 0.3s;
}

.nav-overlay a:hover,
.nav-overlay a.active {
    color: var(--gold);
}

.nav-overlay .nav-contacts {
    margin-top: 50px;
    display: flex;
    gap: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-overlay .nav-contacts a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0;
    letter-spacing: 2px;
}

/* ============================
   HERO
   ============================ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(17, 17, 17, 0.3) 0%,
            rgba(17, 17, 17, 0.5) 50%,
            rgba(17, 17, 17, 0.92) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: heroReveal 1.8s ease-out forwards;
    opacity: 0;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content img {
    width: 300px;
    margin-bottom: 35px;
    filter: drop-shadow(0 10px 40px rgba(201, 169, 110, 0.15));
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: taglineIn 1.2s ease-out 0.8s forwards;
}

@keyframes taglineIn {
    0% {
        opacity: 0;
        letter-spacing: 15px;
    }

    100% {
        opacity: 1;
        letter-spacing: 8px;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: float 2.5s ease-in-out infinite;
    opacity: 0.7;
}

.hero-scroll svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

a.hero-scroll {
    text-decoration: none;
    cursor: pointer;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 1;
    }
}

/* ============================
   SECTION COMMON
   ============================ */
section {
    padding: 120px 0;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 3.2rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 400;
    background: linear-gradient(135deg, var(--text-cream) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brush-stroke {
    display: block;
    margin: 0 auto 60px;
    width: 120px;
    height: 20px;
}

.section-text {
    max-width: 750px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
}

.cta-link {
    display: inline-block;
    margin-top: 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-cream);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
    transition: color 0.3s;
}

.cta-link:hover {
    color: var(--gold);
}

/* ============================
   LA STORIA SECTION
   ============================ */
.storia {
    background: var(--bg-deep);
}

.storia .layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.storia .photo-frame {
    position: relative;
}

.storia .photo-frame img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.storia .photo-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: rgba(201, 169, 110, 0.6);
    z-index: 0;
    pointer-events: none;
}

/* ============================
   I VINI SECTION
   ============================ */
.vini {
    background: #0A0A0A;
}

/* Swiper Carousel */
.vini .swiper {
    padding: 40px 0 60px;
    overflow: hidden;
    max-width: 1200px;
}

.vini .swiper-wrapper {
    align-items: center;
}

.wine-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.4;
    transform: scale(0.75);
    filter: blur(1px);
}

.swiper-slide-active .wine-card {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.swiper-slide-prev .wine-card,
.swiper-slide-next .wine-card {
    opacity: 0.6;
    transform: scale(0.85);
    filter: blur(0);
}

.wine-card .wine-img-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.wine-card .wine-brush {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 240px;
    height: 280px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}
.wine-card.adagio .wine-brush {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250'%3E%3Cpath d='M30,20 Q80,-10 170,30 Q200,80 180,150 Q160,220 90,240 Q20,230 10,160 Q-5,80 30,20Z' fill='%238B5F3C' opacity='0.45'/%3E%3C/svg%3E") center/contain no-repeat;
}
.wine-card.moderato .wine-brush {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250'%3E%3Cpath d='M30,20 Q80,-10 170,30 Q200,80 180,150 Q160,220 90,240 Q20,230 10,160 Q-5,80 30,20Z' fill='%23DB3F28' opacity='0.45'/%3E%3C/svg%3E") center/contain no-repeat;
}
.wine-card.allegro .wine-brush {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250'%3E%3Cpath d='M30,20 Q80,-10 170,30 Q200,80 180,150 Q160,220 90,240 Q20,230 10,160 Q-5,80 30,20Z' fill='%234C79BC' opacity='0.45'/%3E%3C/svg%3E") center/contain no-repeat;
}
.wine-card.vivace .wine-brush {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250'%3E%3Cpath d='M30,20 Q80,-10 170,30 Q200,80 180,150 Q160,220 90,240 Q20,230 10,160 Q-5,80 30,20Z' fill='%23D4B97E' opacity='0.45'/%3E%3C/svg%3E") center/contain no-repeat;
}

.swiper-slide-active .wine-brush {
    opacity: 1;
}

.wine-card img {
    position: relative;
    z-index: 1;
    height: 380px;
    width: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.7));
    transition: transform 0.4s ease;
}

.swiper-slide-active .wine-card:hover img {
    transform: translateY(-8px);
}

.wine-card .wine-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.wine-card .wine-type {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 1px;
}

.wine-card .wine-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 12px;
    line-height: 1.6;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.vini .swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.vini .swiper-pagination-bullet-active {
    background: var(--gold);
    opacity: 1;
}

.vini .swiper-button-next,
.vini .swiper-button-prev {
    color: var(--gold);
    transform: scale(0.7);
}

.vini .swiper-button-next::after,
.vini .swiper-button-prev::after {
    font-size: 28px;
}

/* ============================
   L'AZIENDA SECTION
   ============================ */
.azienda {
    background: var(--bg-section);
}

.azienda .layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.azienda .photo-frame {
    position: relative;
}

.azienda .photo-frame img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.azienda .photo-frame::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: rgba(201, 169, 110, 0.6);
    z-index: 0;
    pointer-events: none;
}

/* ============================
   CHI SIAMO SECTION
   ============================ */
.chi-siamo {
    background: var(--bg-deep);
}

.chi-siamo .layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.chi-siamo .photo-frame {
    position: relative;
}

.chi-siamo .photo-frame img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.chi-siamo .photo-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: rgba(201, 169, 110, 0.6);
    z-index: 0;
    pointer-events: none;
}

.chi-siamo .section-text {
    margin: 0;
}

.chi-siamo .quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold);
    margin: 50px auto 0;
    max-width: 700px;
    line-height: 1.6;
    position: relative;
    padding: 30px 0;
}

.chi-siamo .quote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: -30px;
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.3;
    font-family: var(--font-heading);
}

/* ============================
   EVENTI SECTION
   ============================ */
.eventi {
    background: var(--bg-section);
}

.eventi .layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.eventi .photo-frame {
    position: relative;
}

.eventi .photo-frame img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.eventi .photo-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: rgba(201, 169, 110, 0.6);
    z-index: 0;
    pointer-events: none;
}

.eventi .event-list {
    list-style: none;
    margin-top: 30px;
}

.eventi .event-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    color: var(--text-light);
}

.eventi .event-list li strong {
    color: var(--gold);
    font-weight: 400;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ============================
   CONTATTI SECTION
   ============================ */
.contatti {
    background: var(--bg-deep);
    text-align: center;
}

.contatti .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.contact-item {
    padding: 40px 30px;
    border: 1px solid rgba(201, 169, 110, 0.12);
    background: rgba(201, 169, 110, 0.03);
    backdrop-filter: blur(10px);
    transition: border-color 0.4s, background 0.4s, transform 0.4s;
}

.contact-item:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.07);
    transform: translateY(-5px);
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px;
    stroke: var(--gold);
    fill: none;
    transition: transform 0.3s;
}

.contact-item:hover .icon {
    transform: scale(1.1);
}

.contact-item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 400;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-item a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--gold-light);
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: #0D0D0D;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-logo img {
    height: 60px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s;
}

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

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: var(--text-cream);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-bottom > p {
    margin: 0 0 8px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 0 0;
    flex-wrap: wrap;
}

.footer-legal a,
.footer-legal a:visited {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-cookie-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.footer-cookie-btn:hover {
    color: var(--gold);
}

/* ============================
   PENTAGRAMMA DIVIDER
   ============================ */
.pentagramma-divider {
    background: var(--bg-primary);
    overflow: hidden;
    line-height: 0;
}

.pentagramma-divider img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {

    .storia .layout,
    .azienda .layout,
    .chi-siamo .layout,
    .eventi .layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .wine-carousel {
        gap: 30px;
    }

    .wine-card img {
        height: 250px;
    }

    .contatti .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        align-items: center;
    }
}

/* ============================
   ANIMATIONS
   ============================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.fade-in[data-delay="1"] {
    transition-delay: 0.15s;
}

.fade-in[data-delay="2"] {
    transition-delay: 0.3s;
}

.fade-in[data-delay="3"] {
    transition-delay: 0.45s;
}

/* (Age gate spostato in cookie-consent.js)

/* ============================
   SINGLE WINE PAGE (VINO SINGOLO)
   ============================ */
.wine-hero {
    padding: 160px 0 100px;
    background: var(--bg-deep);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wine-showcase {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.wine-bottle-box {
    position: relative;
    z-index: 2;
}

.wine-bottle-img {
    height: 600px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8));
    transition: transform 0.5s ease;
}

.wine-bottle-box:hover .wine-bottle-img {
    transform: translateY(-10px);
}

/* La Linguetta Piegata e Adesiva */
.wine-tab {
    position: absolute;
    top: 15%; /* Adatta la posizione all'altezza della bottiglia */
    left: calc(100% - 80px); /* Ancora il lato sinistro affinché le parole lunghe crescano verso destra e non sopra la bottiglia */
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    color: var(--bg-deep);
    padding: 15px 40px 15px 25px;
    z-index: 3;
    box-shadow: 0 20px 30px rgba(0,0,0,0.5), inset -2px 0 5px rgba(255,255,255,0.4);
    /* Effetto forma nastro/etichetta: un lato dritto o piegato, l'altro a bandiera */
    clip-path: polygon(0 0, 100% 0%, 92% 50%, 100% 100%, 0 100%);
    display: flex;
    align-items: center;
    animation: tabPop 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: translateX(-30px);
}

@keyframes tabPop {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

/* Effetto di piega dietro (ombra della linguetta) */
.wine-tab::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-bottom: 12px solid #856f46; /* tonalità scura dell'oro */
    filter: brightness(0.6);
}

.wine-tab-text {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.4);
}

.wine-bg-texture {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 450px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.2) 0%, transparent 60%);
    z-index: 1;
    border-radius: 50%;
    filter: blur(20px);
}

@media (max-width: 768px) {
    .wine-tab {
        right: -10px;
        top: 40px;
        padding: 10px 25px 10px 15px;
    }
    .wine-tab-text {
        font-size: 1.6rem;
    }
    .wine-bottle-img {
        height: 450px;
    }
    .wine-bg-texture {
        width: 250px;
        height: 350px;
    }
}

/* Premi e Riconoscimenti */
.wine-awards {
    background: var(--bg-section);
    padding: 80px 0;
}

.awards-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.award-item {
    text-align: center;
    max-width: 250px;
}

.award-prize {
    font-size: 1.05rem;
    color: var(--text-cream);
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Scheda del Vino */
.wine-details {
    background: var(--bg-primary);
    padding: 100px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.detail-item h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    padding-bottom: 5px;
    display: inline-block;
}

.detail-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Caratteristiche Organolettiche */
.wine-organoleptic {
    background: var(--bg-deep);
    padding: 100px 0;
}

.organoleptic-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.org-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.org-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(201,169,110,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(201,169,110,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.org-item:hover .org-icon {
    transform: scale(1.1);
    background: rgba(201,169,110,0.15);
}

.org-item h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.org-item p {
    color: var(--text-light);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .organoleptic-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .org-item {
        align-items: center;
    }
}

/* Variazioni colori linguette per gli altri vini */
.tab-adagio {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.tab-adagio::before {
    border-bottom: 12px solid #856f46;
}

.tab-moderato {
    background: linear-gradient(135deg, var(--moderato-red) 0%, #a83647 50%, var(--moderato-red) 100%);
    color: var(--text-cream);
}
.tab-moderato::before {
    border-bottom: 12px solid #5a1d25;
}

.tab-allegro {
    background: linear-gradient(135deg, var(--allegro-blue) 0%, #3a65a6 50%, var(--allegro-blue) 100%);
    color: var(--text-cream);
}
.tab-allegro::before {
    border-bottom: 12px solid #1a2d4b;
}

.tab-vivace {
    background: linear-gradient(135deg, #E6C287 0%, #F5DCA8 50%, #E6C287 100%);
    color: var(--bg-deep);
}
.tab-vivace::before {
    border-bottom: 12px solid #a88d61;
}

/* Layout speculare per i div */
.wine-showcase.reverse .wine-tab {
    right: auto;
    left: -100px;
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%, 8% 50%);
    padding: 15px 25px 15px 40px;
    transform: translateX(30px);
}

.wine-showcase.reverse .wine-tab::before {
    left: auto;
    right: 0;
    border-left: none;
    border-right: 12px solid transparent;
}

@media (max-width: 768px) {
    .wine-showcase.reverse .wine-tab {
        left: -10px;
        clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%, 5% 50%);
        padding: 10px 15px 10px 25px;
    }
}

/* ============================
   WINE APP LAYOUT (SIDEBAR TABS)
   ============================ */
.wine-app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-deep);
}

.wine-sidebar {
    width: 150px;
    background: rgba(10, 10, 10, 0.95);
    border-right: 1px solid rgba(201, 169, 110, 0.2);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.wine-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: background 0.3s, border-left 0.3s;
    border-left: 3px solid transparent;
    opacity: 0.4;
}

.wine-nav-item img {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
}

.wine-nav-item span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-cream);
    letter-spacing: 2px;
}

.wine-nav-item:hover {
    background: rgba(201, 169, 110, 0.05);
    opacity: 0.8;
}

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

.wine-nav-item.active {
    border-left: 3px solid var(--gold);
    background: rgba(201, 169, 110, 0.15);
    opacity: 1;
}

.wine-nav-item.active span {
    color: var(--gold);
}

.wine-main-content {
    flex-grow: 1;
    margin-left: 150px;
    position: relative;
    min-height: 100vh;
}

.wine-pane {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.wine-pane.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.pane-wine-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    text-align: center;
    letter-spacing: 8px;
    margin-bottom: 10px;
    padding: 0 20px;
}

.wine-description-lead {
    padding: 0 0 50px;
    position: relative;
    z-index: 10;
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden !important;
    }
    .wine-app-layout {
        flex-direction: column;
    }
    .wine-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        padding-top: 80px;
        border-right: none;
        border-bottom: 1px solid rgba(201, 169, 110, 0.2);
        z-index: 90;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-title {
        display: none;
    }
    .sidebar-menu {
        display: flex;
        width: max-content;
        padding: 0 10px;
        flex-wrap: nowrap;
    }
    .wine-nav-item {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-shrink: 0;
    }
    .wine-nav-item img {
        height: 60px;
        margin-bottom: 5px;
    }
    .wine-nav-item span {
        font-size: 0.8rem;
    }
    .wine-nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--gold);
    }
    .wine-main-content {
        margin-left: 0;
        overflow-x: hidden;
    }
    .pane-wine-title {
        font-size: 2.2rem;
        padding: 0 15px;
    }
    .wine-hero {
        padding-top: 40px !important;
    }
    .wine-bottle-img {
        height: 380px;
    }
    .wine-tab {
        right: auto; 
        left: 65%;
        top: 60px;
        padding: 5px 15px 5px 20px;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
    }
    .wine-tab-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    .wine-bg-texture {
        width: 250px;
        height: 300px;
    }
}

/* Offset Nav Logo on Desktop to dodge fixed sidebar */
@media (min-width: 901px) {
    .nav-logo {
        margin-left: 150px;
    }
}