/* =============================================
   1. BASE E VARIABILI
   ============================================= */
:root {
    --bg: #ffffff;
    --text: #e3b34b;
    --accent: #e3b34b;

    --border-light: #f2ecec;
    --gray: #888;
    --gray-light: #ccc;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
    --bg-soft: #f7f3ef;
    --wine-dark: #2c0e0e;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    background: var(--bg);
    color: var(--wine-dark);
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
}

/* Accessibilità: riduzione movimento */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Visually hidden (per H1 SEO) */
.visually-hidden {
    position: absolute; 
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   HEADER
   ============================================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    padding: 10px 5%;
    border-bottom: 0.5px solid #040202;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    column-gap: 60px;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    width: clamp(180px, 25vw, 350px);
    height: auto;
    display: block;
    filter: contrast(110%);
}

/* Navigazione */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--wine-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.25s ease, opacity 0.25s ease;
}

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

/* Selettore Lingua */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    border-left: 1px solid rgba(163, 135, 80, 0.3);
    padding-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--wine-dark);
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lang-btn.active {
    opacity: 1;
    border-bottom: 1px solid var(--accent);
}

.lang-btn:hover {
    opacity: 1;
    color: var(--accent);
}

.lang-selector span {
    color: var(--wine-dark);
    opacity: 0.4;
    user-select: none;
}

/* =============================================
   HERO PREMIUM
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    transform: scale(1.05);
    filter: brightness(0.55) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(227, 179, 75, 0.35), transparent 55%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.9));
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    z-index: 1;
    animation: heroFade 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-tagline {
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-script {
    font-family: 'Italianno', cursive;
    font-size: clamp(3.5rem, 7vw, 5rem);
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

.hero-cta {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.35);
}

.hero-cta:hover {
    background: var(--accent);
    color: #1b1208;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   SEZIONE VINI
   ============================================= */
.vini-section {
    padding: 100px 0;
    background: var(--bg);
}

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

.vino-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 150px;
    opacity: 0;
    transform: translateY(50px) scale(0.97);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out, filter 0.9s ease-out;
    will-change: opacity, transform;
}

.vino-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* IMMAGINE */
.vino-img {
    flex: 1;
    min-width: 300px;
}

.vino-img img {
    width: 100%;
    height: auto;
    max-width: 450px;
    object-fit: contain;
    display: block;
    border-radius: 0;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.vino-item:hover .vino-img img {
    transform: translateY(-4px);
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.3));
}

/* TESTO */
.vino-text {
    flex: 1.5;
    max-width: 100%;
}

/* PREZZO DEL VINO */
.vino-price {
    display: block;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

/* LABEL */
.label {
    display: block;
    font-family: 'Italianno', cursive;
    font-style: normal;
    color: var(--accent);
    font-weight: 100;
    letter-spacing: 0.35em;
    font-size: clamp(3rem, 8vw, 8rem);
    margin-bottom: 10px;
}

/* SOTTOTITOLO */
.vino-name {
    font-size: clamp(1rem, 3vw, 2.2rem);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* DESCRIZIONE */
.vino-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.75;
}

/* =============================================
   SEZIONE CARD INFO
   ============================================= */
.info-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 80px 5%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.card-dove,
.card-contatti,
.card-seguici {
    flex: 1;
    min-width: 280px;
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    border-radius: 18px;
}

.card-dove:hover,
.card-contatti:hover,
.card-seguici:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(227, 179, 75, 0.4);
    background-color: rgba(247, 243, 239, 0.7);
}

.info-section h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    width: 100%;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* MAPPA */
.map-wrapper {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.map-link {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.map-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* CONTATTI */
.card-contatti {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contatti-email,
.contatti-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.contatti-email span,
.contatti-tel span {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}

.link-email {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.link-email:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Telefono + WA */
.tel-actions {
    display: flex;
    gap: 30px;
    margin-top: 5px;
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    transition: all 0.3s ease;
    background: transparent;
}

/* Hover call */
.action-btn.call:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Hover WA */
.action-btn.wa:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* =============================================
   SOCIAL SHOTS
   ============================================= */
.social-shots-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.social-shot {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    will-change: transform, background;
}

.shot-icon {
    margin-right: 20px;
    display: flex;
    align-items: center;
    color: var(--accent);
}

.shot-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.platform {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.username {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
}

/* Hover pieni */
.social-shot.ig:hover {
    background: linear-gradient(45deg, #fdf497, #fd5949, #d6249f, #285AEB);
    border-color: transparent;
}

.social-shot.fa:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

.social-shot.tt:hover {
    background-color: #000000;
    border-color: #000000;
}

.social-shot:hover .username,
.social-shot:hover .platform,
.social-shot:hover .shot-icon {
    color: #fff !important;
}

.social-shot:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    padding: 40px 0;
    background: var(--bg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

/* LEFT */
.footer-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    background: none;
}

.footer-left img {
    width: 200px;
    height: auto;
    display: block;
    pointer-events: none;
    filter: brightness(1.1) contrast(110%) sepia(0.3);
}

/* CENTER */
.footer-center {
    flex: 2;
    text-align: center;
}

.footer-center h2 {
    color: var(--wine-dark);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.f-text {
    font-size: 1rem;
    color: #777;
    text-transform: capitalize;
    margin: 3px 0;
    letter-spacing: 1px;
}

.f-text a {
    color: #777;
    text-decoration: underline;
    transition: 0.3s;
}

.f-text a:hover {
    color: var(--accent);
}

.f-warning {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-top: 8px;
    font-weight: bold;
}

/* RIGHT */
.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-end; 
}

.footer-logo-dema {
    width: 55px;
    opacity: 0.9;
    transition: 0.3s ease;
}

.footer-logo-dema:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.98);
    border-top: 2px solid var(--accent);
    padding: 20px;
    z-index: 999999;
    display: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.banner-container p {
    font-size: 0.9rem;
}

.privacy-link {
    color: var(--accent);
    text-decoration: underline;
}

.banner-btns {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    padding: 10px 25px;
    cursor: pointer;
    border: 1px solid var(--accent);
    background: transparent;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    transition: 0.3s ease;
}

.btn-cookie.accept {
    background: var(--accent);
    color: #1b1208;
}

.banner-btns .btn-cookie:hover {
    background: var(--accent);
    color: #0f0d0d;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 60px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: rgb(17, 16, 16);
    border: none;
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #a38750;
    transform: translateY(-5px);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet & small desktop */
@media (max-width: 1024px) {
    .main-header {
        padding: 10px 5%;
    }

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

    .logo-area {
        max-width: 400px;
        justify-content: center;
    }

    .info-section {
        flex-direction: column;
        align-items: center;
    }

    .card-dove,
    .card-contatti,
    .card-seguici {
        width: 100%;
        max-width: 500px;
    }
}

/* Mobile medio */
@media (max-width: 768px) {

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

    nav ul {
        gap: 15px;
        justify-content: center;
        padding: 0;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 60vh;
    }

    .vini-section {
        padding: 60px 0;
    }

    /* 🔥 BLOCCO VINI — VERSIONE CORRETTA */
    .vino-item,
    .vino-item.reverse {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 80px;
        text-align: center;
    }

    /* Foto sempre prima */
    .vino-item .vino-img,
    .vino-item.reverse .vino-img {
        order: 1 !important;
    }

    /* Testo sempre dopo */
    .vino-item .vino-text,
    .vino-item.reverse .vino-text {
        order: 2 !important;
    }

    .vino-img img {
        max-width: 260px;
        margin: 0 auto;
    }

    .info-section {
        padding: 40px 5%;
    }

    .footer-full-width {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        text-align: center;
        padding: 0 20px;
    }

    .footer-logo-dema {
        width: 70px;
    }

    .banner-container {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Mobile piccolo */
@media (max-width: 480px) {

    .logo-area {
        max-width: 250px;
    }

    nav a {
        font-size: 0.75rem;
    }

    .vino-description {
        font-size: 0.85rem;
    }

    .vino-img img {
        max-width: 200px;
    }

    .vino-item {
        gap: 30px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-cta {
        width: 100%;
        max-width: 260px;
    }
}

/* Desktop grandi */
@media (min-width: 1400px) {

    .container,
    .footer-full-width,
    .header-content {
        max-width: 1400px;
        margin: 0 auto;
    }
}