﻿/* ── Reset / Base ───────────────────────────────────────────── */
:root {
    --blue-wine: #242B86;
    --cream:     #faf8f4;
    --cream-alt: #f2ede3;
    --dark-bg:   #1a1e3a;
}

html {
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--cream);
    color: var(--blue-wine);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, .section-title, .subsection-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--blue-wine);
    font-weight: 600;
}

.section-title {
    font-size: 2.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--blue-wine);
    margin-top: 0.5rem;
}

.text-center .section-title::after {
    margin: 0.5rem auto 0;
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* ── Hero Slideshow ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 10;
    width: 100%;
}

.hero-overlay__logo {
    max-width: 320px;
    width: 60vw;
    display: block;
    margin: 0 auto 1rem;
}

.hero-overlay__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.6);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
}

.carousel-indicators .active {
    background-color: #fff;
}

/* ── Sticky Nav ─────────────────────────────────────────────── */
.wine-nav {
    background-color: var(--cream);
    border-bottom: 1px solid rgba(36, 43, 134, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(36, 43, 134, 0.08);
    transition: box-shadow 0.3s;
}

.wine-nav__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    position: relative;
}

/* Link desktop */
.wine-nav__links {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.wine-nav__links li a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-wine);
    transition: opacity 0.2s;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.wine-nav__links li a:hover {
    border-bottom-color: var(--blue-wine);
    opacity: 0.7;
}

/* Hamburger button */
.wine-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.wine-nav__hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--blue-wine);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

/* Animazione X quando aperto */
.wine-nav__hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.wine-nav__hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.wine-nav__hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu mobile a tendina */
.wine-nav__mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    background-color: var(--cream);
    border-top: 1px solid rgba(36, 43, 134, 0.1);
}

.wine-nav__mobile.is-open {
    max-height: 300px;
    padding-bottom: 0.5rem;
}

.wine-nav__mobile ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    text-align: center;
}

.wine-nav__mobile ul li a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-wine);
    transition: background 0.2s;
}

.wine-nav__mobile ul li a:hover {
    background-color: var(--cream-alt);
}

/* ── Sections ───────────────────────────────────────────────── */
.wine-section {
    padding: 100px 0;
    background-color: var(--cream);
}

.wine-section--alt {
    background-color: var(--cream-alt);
}

.wine-section--dark {
    background-color: var(--dark-bg);
    color: #fff;
}

.wine-section--dark p,
.wine-section--dark li {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Images ─────────────────────────────────────────────────── */
.wine-img {
    border-radius: 2px;
    width: 100%;
    object-fit: cover;
}

/* ── Bottiglia cliccabile — formato verticale 1:2 ───────────── */
.bottle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.bottle-btn:focus-visible {
    outline: 2px solid var(--blue-wine);
    outline-offset: 4px;
}

.bottle-img {
    width: 100%;
    aspect-ratio: 1 / 2;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.bottle-btn:hover .bottle-img {
    transform: scale(1.02);
}

.bottle-btn__hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--blue-wine);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.bottle-btn:hover .bottle-btn__hint {
    opacity: 1;
}

/* ── Modale bottiglia — formato verticale 1:2 ───────────────── */
.bottle-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.bottle-modal.is-open {
    display: flex;
}

.bottle-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 30, 0.88);
    backdrop-filter: blur(4px);
}

.bottle-modal__box {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: calc(100vh / 2);
    max-width: 95vw;
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    animation: modalIn 0.28s ease;
    cursor: crosshair;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.bottle-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    user-select: none;
    pointer-events: none;
}

.bottle-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--blue-wine);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.bottle-modal__close:hover {
    background: #fff;
}

/* ── Lente di ingrandimento nella modale ────────────────────── */
.bottle-lens {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(36,43,134,0.3), 0 4px 20px rgba(0,0,0,0.4);
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    z-index: 5;
    /* cursore crosshair visivo al centro della lente */
    overflow: hidden;
}

.bottle-lens::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.15);
    pointer-events: none;
}

/* ── Wine details list ──────────────────────────────────────── */
.wine-vintage {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    opacity: 0.7;
}

.wine-details {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(36, 43, 134, 0.15);
}

.wine-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(36, 43, 134, 0.08);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* ── Filosofia cards ────────────────────────────────────────── */
.filosofia-card {
    padding: 1rem 0;
}

/* ── Contacts ───────────────────────────────────────────────── */
.contact-block {
    color: rgba(255, 255, 255, 0.85);
}

.contact-block a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.contact-block a:hover {
    color: #fff;
}

.contact-icon {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.6rem;
    display: block;
}

.social-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.6rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
}

/* ── Footer ─────────────────────────────────────────────────── */
.wine-footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-image {
        height: 420px;
    }

    .wine-nav__links {
        display: none;
    }

    .wine-nav__hamburger {
        display: flex;
    }

    .wine-section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .bottle-img {
        max-width: 200px;
    }

    /* Su mobile la modale occupa quasi tutta la larghezza mantenendo 1:2 */
    .bottle-modal__box {
        width: 80vw;
        height: calc(80vw * 2);
        max-height: 90vh;
    }

    /* Lente disabilitata su touch */
    .bottle-lens {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .wine-nav__inner {
        padding: 0.85rem 1rem;
    }
}

/* ── Bootstrap focus override ───────────────────────────────── */
.btn:focus, .btn:active:focus, .form-control:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--blue-wine);
}