/* ═══════════════════════════════════════════════════
   VILLA VERDI — style.css
   Dark Forest Green · Gold · Cream
   ═══════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────── */
:root {
    --verde-scuro:   #1B3A2D;
    --verde-medio:   #243D32;
    --verde-foglia:  #2E5440;
    --oro:           #C9A84C;
    --oro-chiaro:    #E2C06A;
    --oro-pallido:   #F5E8BE;
    --crema:         #F8F3E8;
    --crema-scura:   #EDE3CF;
    --testo:         #2C2C2C;
    --bianco:        #FFFFFF;

    --font-heading:  'Cormorant Garamond', Georgia, serif;
    --font-body:     'Lato', system-ui, sans-serif;

    --radius:        4px;
    --shadow:        0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.18);
    --transition:    all 0.35s ease;
}

/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* riserva sempre lo spazio della scrollbar — evita offset orizzontale tra navbar fixed e body */
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--testo);
    background: var(--crema);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--oro); }

/* ── Typography ─────────────────────────────────── */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--testo);
}
.section-heading em {
    font-style: italic;
    font-weight: 400;
    color: var(--oro);
}
.section-heading.light { color: #F5F0E8; }
.section-heading.light em { color: var(--oro-chiaro); }

.body-text {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.05rem;
    color: #777;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Ornamental Divider ─────────────────────────── */
.section-ornament {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    margin-bottom: 0.5rem;
}
.section-ornament.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.section-ornament .orn-line {
    display: block;
    width: 52px;
    height: 1px;
    background: var(--oro);
}
.section-ornament .orn-diamond {
    font-size: 0.5rem;
    color: var(--oro);
    margin: 0 10px;
    line-height: 1;
}
.section-ornament.light .orn-line { background: rgba(255,255,255,0.45); }
.section-ornament.light .orn-diamond { color: rgba(255,255,255,0.45); }

/* ── Buttons ────────────────────────────────────── */
.btn-vv-gold {
    display: inline-block;
    padding: 13px 36px;
    background: var(--oro);
    color: var(--verde-scuro) !important;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid var(--oro);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.btn-vv-gold:hover {
    background: transparent;
    color: var(--oro) !important;
}
.btn-vv-outline {
    display: inline-block;
    padding: 13px 36px;
    background: transparent;
    color: rgba(255,255,255,0.9) !important;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
}
.btn-vv-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}
.btn-vv-dark {
    display: inline-block;
    padding: 13px 36px;
    background: var(--verde-scuro);
    color: var(--oro) !important;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid var(--verde-scuro);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.btn-vv-dark:hover {
    background: transparent;
    border-color: var(--verde-scuro);
    color: var(--verde-scuro) !important;
}

/* ── NAVBAR ─────────────────────────────────────── */
/* Override regole legacy del template Clean Blog (bootstrap.min.css righe 14202+):
   non vogliamo lo slide-up/down su scroll, solo il cambio colore via .scrolled */
@media only screen and (min-width: 992px) {
    #mainNav.is-fixed { top: 0 !important; background-color: transparent !important; border-bottom: none !important; }
    #mainNav.is-visible { transform: none !important; }
    #mainNav.is-fixed .navbar-brand,
    #mainNav.is-fixed .navbar-nav > li.nav-item > a { color: inherit !important; }
}

#mainNav {
    padding: 22px 0;
    transition: all 0.45s ease;
    background: transparent;
}
#mainNav.scrolled {
    padding: 12px 0;
    background: var(--verde-scuro);
    box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}

.vv-brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.brand-main {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--oro);
    letter-spacing: 0.5px;
}
.brand-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

#mainNav .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 8px 14px !important;
    transition: color 0.3s;
}
#mainNav .nav-link:hover { color: var(--oro) !important; }

#mainNav .navbar-toggler { color: rgba(255,255,255,0.9); }
#mainNav .navbar-toggler .fa { font-size: 1.2rem; color: rgba(255,255,255,0.9); }

/* ── HERO ───────────────────────────────────────── */
#hero { position: relative; }

.hero-slide {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(10,25,18,0.72) 0%,
        rgba(27,58,45,0.5) 55%,
        rgba(0,0,0,0.45) 100%
    );
}
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bianco);
    padding: 0 24px;
    max-width: 860px;
    margin: 0 auto;
}
.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--oro);
    margin-bottom: 1.2rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.8rem, 10vw, 8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 0.95;
    color: var(--bianco);
    text-shadow: 0 4px 24px rgba(0,0,0,0.45);
    margin-bottom: 1.2rem;
}
.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.65rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.88);
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Splide hero customisation */
#hero-slider .splide__pagination { bottom: 28px; z-index: 5; }
#hero-slider .splide__pagination__page {
    background: rgba(255,255,255,0.35);
    width: 9px; height: 9px;
    border-radius: 50%;
    transition: all 0.35s;
    margin: 0 5px;
}
#hero-slider .splide__pagination__page.is-active {
    background: var(--oro);
    transform: scale(1.5);
}
#hero-slider .splide__arrow {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    width: 52px; height: 52px;
}
#hero-slider .splide__arrow svg { fill: #fff; width: 18px; height: 18px; }
#hero-slider .splide__arrow:hover { background: var(--oro); }
#hero-slider .splide__arrow:hover svg { fill: var(--verde-scuro); }

/* Scroll cue indicator */
.hero-scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
}
.hero-scroll-cue span {
    display: block;
    width: 24px; height: 42px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    position: relative;
}
.hero-scroll-cue span::after {
    content: '';
    position: absolute;
    left: 50%; top: 6px;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--oro);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 20px; opacity: 0.2; }
}

/* ── ABOUT ──────────────────────────────────────── */
.section-about {
    padding: 110px 0 100px;
    background: var(--crema);
}
.about-img-frame { position: relative; display: inline-block; width: 100%; }
.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.img-badge {
    position: absolute;
    bottom: -22px;
    right: -22px;
    background: var(--verde-scuro);
    padding: 22px 28px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.badge-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--oro);
    line-height: 1;
}
.badge-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 5px;
}
.chef-signature {
    border-top: 1px solid var(--crema-scura);
    padding-top: 1.2rem;
}
.chef-signature span {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-style: italic;
    color: var(--verde-scuro);
}

/* ── FEATURES ───────────────────────────────────── */
.section-features {
    padding: 90px 0;
    background: var(--verde-scuro);
}
.feature-card {
    padding: 48px 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: var(--radius);
    transition: var(--transition);
    height: 100%;
}
.feature-card:hover {
    background: rgba(201,168,76,0.07);
    border-color: var(--oro);
    transform: translateY(-7px);
    box-shadow: 0 22px 45px rgba(0,0,0,0.32);
}
.feature-icon-wrap {
    width: 70px; height: 70px;
    border: 1.5px solid var(--oro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
}
.feature-icon-wrap .fa { font-size: 1.5rem; color: var(--oro); }
.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--oro-chiaro);
    margin-bottom: 14px;
}
.feature-text {
    font-size: 0.92rem;
    color: rgba(245,240,228,0.68);
    line-height: 1.75;
    margin: 0;
}

/* ── GALLERY ────────────────────────────────────── */
.section-gallery {
    padding: 90px 0 0;
    background: var(--verde-scuro);
    overflow: hidden;
}
.gallery-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) saturate(1.1);
    transition: filter 0.4s ease;
}
#gallery-slider .splide__slide { overflow: hidden; }
#gallery-slider .splide__slide:hover .gallery-img { filter: brightness(1) saturate(1.2); }

/* ── MENU ───────────────────────────────────────── */
.section-menu {
    padding: 110px 0 100px;
    background: var(--crema);
}

/* Tab nav */
.menu-tabs { gap: 4px; border: none; padding-bottom: 2px; }
.menu-tab-btn {
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #999;
    padding: 10px 28px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}
.menu-tab-btn.active,
.menu-tab-btn:hover {
    color: var(--verde-scuro);
    border-bottom-color: var(--oro);
    background: none;
}

/* Menu cards */
.menu-card {
    background: var(--bianco);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    transition: var(--transition);
    height: 100%;
    position: relative;
}
.menu-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}
.menu-card.featured-card { border: 2px solid var(--oro); }

.menu-badge {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    background: var(--oro);
    color: var(--verde-scuro);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}
.menu-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}
.menu-card:hover .menu-card-img { transform: scale(1.05); }
.menu-card-body { padding: 20px 22px; }
.menu-item-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--verde-scuro);
    margin-bottom: 6px;
}
.menu-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--oro);
    white-space: nowrap;
    margin-left: 10px;
    flex-shrink: 0;
}
.menu-desc { font-size: 0.87rem; color: #888; line-height: 1.6; margin: 0; }

/* ── CTA BANNER ─────────────────────────────────── */
.section-cta-banner {
    position: relative;
    padding: 120px 0;
    background-image: url('/media/pizzaVino.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 14, 0.80);
}
.cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 300;
    color: var(--bianco);
    line-height: 1.2;
}
.cta-heading em { color: var(--oro); font-weight: 400; }
.cta-subtext {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 460px;
    margin: 0 auto;
}

/* ── BOOKING ────────────────────────────────────── */
.section-booking {
    padding: 110px 0;
    background: var(--verde-scuro);
}
.booking-subtitle {
    font-size: 1rem;
    color: rgba(245,240,228,0.65);
    max-width: 500px;
    margin: 0 auto;
}
.vv-field .form-control,
.vv-field textarea.form-control {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(201,168,76,0.28);
    color: #F5F0E8;
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: var(--font-body);
}
.vv-field .form-control:focus {
    background: rgba(255,255,255,0.10);
    border-color: var(--oro);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    color: #F5F0E8;
}
.vv-field .form-control::placeholder { color: rgba(245,240,228,0.35); }

/* Floating label on dark bg */
.vv-field.form-floating label { color: rgba(245,240,228,0.5); font-size: 0.95rem; }
.vv-field.form-floating .form-control:focus ~ label,
.vv-field.form-floating .form-control:not(:placeholder-shown) ~ label { color: var(--oro); }

/* date / time color scheme */
.vv-field input[type="date"],
.vv-field input[type="time"] { color-scheme: dark; }

/* checkbox */
.vv-check { border-color: rgba(201,168,76,0.4) !important; background-color: transparent !important; }
.vv-check:checked { background-color: var(--oro) !important; border-color: var(--oro) !important; }
.vv-check-label { color: rgba(245,240,228,0.65); }
.booking-link { color: var(--oro) !important; text-decoration: underline !important; }

/* ── LOCATION ───────────────────────────────────── */
.section-location { padding: 110px 0; background: var(--crema); }
.location-info { display: flex; flex-direction: column; gap: 30px; }
.location-item { display: flex; align-items: flex-start; gap: 20px; }
.loc-icon {
    width: 46px; height: 46px;
    border: 1.5px solid var(--oro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.loc-icon .fa { font-size: 1rem; color: var(--oro); }
.loc-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--verde-scuro);
    margin-bottom: 4px;
}
.loc-text { color: #555; margin: 0; line-height: 1.65; }
.loc-text a { color: #555; }
.loc-text a:hover { color: var(--verde-scuro); }

.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.location-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
    filter: saturate(0.82);
    transition: filter 0.4s;
}
.map-frame:hover .location-img { filter: saturate(1.05); }
.map-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,22,14,0.65) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    transition: opacity 0.35s;
}
.map-frame:hover .map-cta-overlay { opacity: 1; }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer { font-family: var(--font-body); }
.footer-top {
    background: #111;
    padding: 72px 0 52px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand-main {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--oro);
    line-height: 1;
}
.footer-brand-sub {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
}
.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    max-width: 290px;
    line-height: 1.75;
}
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    transition: all 0.3s;
}
.social-link:hover {
    border-color: var(--oro);
    color: var(--oro);
    background: rgba(201,168,76,0.1);
}
.footer-col-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--oro);
    margin-bottom: 18px;
}
.footer-nav-list { list-style: none; padding: 0; }
.footer-nav-list li { margin-bottom: 9px; }
.footer-nav-list a { font-size: 0.9rem; color: rgba(255,255,255,0.48); transition: color 0.3s; }
.footer-nav-list a:hover { color: var(--bianco); }
.footer-contact-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.9;
}
.footer-contact-text a { color: rgba(255,255,255,0.48); transition: color 0.3s; }
.footer-contact-text a:hover { color: var(--bianco); }
.footer-hours-text { font-size: 0.83rem; color: rgba(255,255,255,0.38); }
.footer-bottom { background: #0a0a0a; padding: 18px 0; }
.footer-bottom small { color: rgba(255,255,255,0.38); }
.footer-bottom a { color: rgba(255,255,255,0.38); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--oro); }

/* ── MODALS ─────────────────────────────────────── */
.vv-modal { background: var(--crema); border-radius: 8px; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 991.98px) {
    .section-cta-banner { background-attachment: scroll; }
    .about-img { height: 380px; }
    .img-badge { bottom: -14px; right: -10px; }
    #mainNav .navbar-collapse {
        background: var(--verde-scuro);
        padding: 20px 24px;
        margin-top: 12px;
        border-radius: var(--radius);
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    }
}
@media (max-width: 767.98px) {
    .hero-title { font-size: 3.2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .about-img { height: 280px; }
    .img-badge { display: none; }
    .gallery-img { height: 260px; }
    .location-img { height: 280px; }
    .section-about,
    .section-features,
    .section-menu,
    .section-booking,
    .section-location,
    .section-gallery { padding-top: 70px; padding-bottom: 70px; }
    .section-cta-banner { padding: 80px 0; }
}
