/* -------------------------------------------------------------
   RISTORANTE DELLA POSTA - VIGANELLO (LUGANO)
   Design genuino, caldo, accogliente e artigianale
   ------------------------------------------------------------- */
:root {
    --wine-900: #2d1015;      /* Bordeaux scurissimo ed elegante */
    --wine-800: #4a181e;      /* Rosso bordeaux intenso */
    --wine-700: #68232c;      /* Rosso vino primario */
    --amber-brand: #bd6a23;   /* Terracotta / ambra dai toni caldi */
    --gold-accent: #d88f39;   /* Dorato caldo */
    --cream-tint: #f8f4ed;    /* Sfondo lino naturale */
    --cream-light: #fffdfa;   /* Superfici e card */
    --text-primary: #272120;  /* Testo scuro ad alta leggibilità */
    --text-muted: #675b58;    /* Testo secondario */
    --border-subtle: #e8ded4; /* Bordi e separatori delicati */
    --bg-page: #faf7f2;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* -------------------------------------------------------------
   HEADER & NAVBAR
   ------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    transition: padding 0.3s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.25s ease;
}

header.scrolled .logo-img {
    height: 42px;
    /* Aumenta leggermente il contrasto dei toni dorati sullo sfondo bianco */
    filter: brightness(0.85) contrast(1.15);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    padding: 4px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--gold-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* Stato Navbar con scroll */
header.scrolled {
    background-color: rgba(255, 253, 250, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(45, 16, 21, 0.08);
}

header.scrolled .navbar {
    padding: 0.8rem 0;
}

header.scrolled .brand-title {
    color: var(--wine-900);
    text-shadow: none;
}

header.scrolled .brand-sub {
    color: var(--amber-brand);
}

header.scrolled .nav-links a {
    color: var(--wine-900);
    text-shadow: none;
}

header.scrolled .nav-links a:hover {
    color: var(--amber-brand);
}

header.scrolled .hamburger span {
    background-color: var(--wine-900);
}

/* Barra di avanzamento lettura */
.scroll-track {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    pointer-events: none;
}

.scroll-bar {
    height: 100%;
    width: 0%;
    background-color: var(--amber-brand);
    border-radius: 0 2px 2px 0;
    will-change: width;
    transition: width 0.05s linear;
}

/* -------------------------------------------------------------
   PULSANTI
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--wine-800);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--wine-900);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 16, 21, 0.2);
}

.btn-call {
    background-color: var(--wine-800);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-call:hover {
    background-color: var(--amber-brand);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--wine-900);
}


/* -------------------------------------------------------------
   HERO
   ------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(rgba(35, 12, 16, 0.68), rgba(28, 9, 13, 0.85)),
        url('images/esterno02.jpg') center/cover no-repeat;
    background-color: var(--wine-900);
    padding: 8rem 0 5rem;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f7d29e;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.18;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.15rem;
    max-width: 640px;
    color: #f5ebe0;
    margin-bottom: 2.2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------
   FACTS BAR
   ------------------------------------------------------------- */
.facts-bar {
    background: var(--cream-light);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.fact-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--amber-brand);
    line-height: 1;
}

.fact-item strong {
    display: block;
    font-size: 1rem;
    color: var(--wine-900);
    margin-bottom: 3px;
}

.fact-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* -------------------------------------------------------------
   SEZIONI COMUNI
   ------------------------------------------------------------- */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--amber-brand);
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 2.7rem);
    color: var(--wine-900);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.8rem;
}

/* -------------------------------------------------------------
   CHI SIAMO
   ------------------------------------------------------------- */
.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 880px) {
    .about-grid {
        grid-template-columns: 6fr 5fr;
    }
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.4vw, 2.5rem);
    color: var(--wine-900);
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.about-text .lead {
    font-size: 1.1rem;
    color: var(--wine-800);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.1rem;
}

.quote-callout {
    margin: 1.8rem 0;
    padding: 1.3rem 1.5rem;
    border-left: 3px solid var(--amber-brand);
    background-color: var(--cream-tint);
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--wine-900);
    font-size: 1.05rem;
    line-height: 1.6;
}

.signature-line {
    margin-top: 1.5rem;
}

.signature-line strong {
    display: block;
    color: var(--wine-900);
    font-size: 1.1rem;
}

.signature-line span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.photo-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(45, 16, 21, 0.08);
    background: #ffffff;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* -------------------------------------------------------------
   MENÙ DINAMICO DA JSON
   ------------------------------------------------------------- */
/* -------------------------------------------------------------
   MENÙ LINEARE CLASSICO (LISTA RISTORANTE)
   ------------------------------------------------------------- */
.services-section {
    padding: 5rem 0 6rem;
    background-color: var(--cream-light);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.menu-linear-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem 3.5rem;
}

@media (min-width: 900px) {
    .menu-linear-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonne bilanciate come una vera carta del ristorante */
    }
}

.menu-linear-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(232, 222, 212, 0.7);
    page-break-inside: avoid;
}

.menu-content {
    flex-grow: 1;
    min-width: 0;
}

/* Riga del Titolo con Puntini di Raccordo e Prezzo */
.menu-title-row {
    display: flex;
    align-items: baseline;
    width: 100%;
    margin-bottom: 0.25rem;
}

.menu-dish-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wine-900);
    letter-spacing: -0.2px;
    white-space: normal;
}

/* Puntini guida tra nome e prezzo */
.menu-dots {
    flex-grow: 1;
    margin: 0 10px;
    border-bottom: 1.5px dotted #c9b8ab;
    height: 1px;
    position: relative;
    top: -2px;
}

.menu-dish-price {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--wine-800);
    white-space: nowrap;
    text-align: right;
    letter-spacing: 0.3px;
}

/* Badge piccolo elegante (Specialità, Fatto in casa, ecc.) */
.menu-dish-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background-color: var(--cream-tint);
    color: var(--amber-brand);
    border: 1px solid #e2cbba;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Descrizione ingredienti */
.menu-dish-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 2px;
}

/* Dettaglio / Nota a piè di riga */
.menu-dish-note {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--amber-brand);
    margin-top: 4px;
    font-style: italic;
}

/* Responsive mobile */
@media (max-width: 600px) {
    .menu-dish-name {
        font-size: 1.05rem;
    }
    .menu-dish-price {
        font-size: 1.05rem;
    }
    .menu-dots {
        margin: 0 6px;
    }
    .menu-thumb {
        width: 52px;
        height: 52px;
    }
}

/* --- FIX RESPONSIVE CONTATTI & TASTI MOBILE --- */
@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-card {
        padding: 1.5rem 1.1rem; /* Ridotto il padding interno */
    }

    .main-contact h3 {
        font-size: 1.45rem;
    }

    .contact-entry {
        gap: 12px;
        margin-bottom: 1.2rem;
    }

    /* Impedisce a email e indirizzi lunghi di allargare la card */
    .entry-value {
        font-size: 0.92rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .highlight-phone {
        font-size: 1.2rem;
    }

    /* Adattamento tasti e testo a capo fluido */
    .btn-stack {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }

    .btn-stack .btn {
        width: 100%;
        padding: 0.85rem 0.8rem;
        font-size: 0.92rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    /* Dispone giorno e orario su due righe per evitare collisioni */
    .work-schedule {
        padding: 0.8rem 0;
    }

    .sched-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 0.45rem 0;
    }

    .sched-row span {
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .sched-row strong {
        font-size: 0.92rem;
    }

    .process-box {
        padding: 1rem;
    }
}

.service-tab-nav {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.service-tab-nav .tab-btn {
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--wine-900);
    cursor: pointer;
    transition: all 0.25s ease;
}

.service-tab-nav .tab-btn:hover {
    border-color: var(--amber-brand);
    color: var(--amber-brand);
}

.service-tab-nav .tab-btn.active {
    background-color: var(--wine-800);
    color: #ffffff;
    border-color: var(--wine-800);
}

.services-wrapper {
    min-height: 300px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.8rem;
}

.service-box {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-page);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-box:hover {
    border-color: var(--amber-brand);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(45, 16, 21, 0.06);
}

.featured-box {
    border: 1.5px solid var(--amber-brand);
    background: #ffffff;
}

.service-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 0.8rem;
}

.service-index {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amber-brand);
    border: 1px solid var(--amber-brand);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.service-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.service-box h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--wine-900);
    font-weight: 700;
}

.service-badge {
    background-color: var(--wine-800);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
}

.service-box p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.service-meta {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--amber-brand);
    font-weight: 600;
}

.meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--amber-brand);
}

.loading-box {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.service-bottom-strip {
    margin-top: 3.5rem;
    padding: 2.2rem 2.5rem;
    background-color: var(--wine-900);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.service-bottom-strip strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.service-bottom-strip p {
    color: #f1dfd3;
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
   SPECIALITÀ (CASE STUDY BOARD)
   ------------------------------------------------------------- */
.projects-section {
    padding: 6rem 0;
}

.case-study-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.step-column {
    background: var(--cream-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.step-column.result-col {
    border-color: var(--amber-brand);
    box-shadow: 0 8px 24px rgba(189, 106, 35, 0.1);
}

.step-pill {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-subtle);
}

.step-1 {
    background: #faefe7;
    color: var(--amber-brand);
}

.step-2 {
    background: #eef5f8;
    color: #245876;
}

.step-3 {
    background: var(--wine-800);
    color: #ffffff;
}

.step-image {
    height: 280px;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.step-column:hover .step-image img {
    transform: scale(1.04);
}

.step-desc {
    padding: 1.5rem;
    flex-grow: 1;
}

.step-desc h4 {
    font-family: var(--font-heading);
    color: var(--wine-900);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-desc p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* -------------------------------------------------------------
   FOCUS TERRAZZA & AMBIENTE
   ------------------------------------------------------------- */
.focus-section {
    padding: 0 0 6rem;
}

.focus-card {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 850px) {
    .focus-card {
        grid-template-columns: 5fr 7fr;
    }
}

.focus-media {
    height: 100%;
    min-height: 380px;
}

.focus-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.focus-text {
    padding: 3.5rem 3rem;
}

.focus-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.2vw, 2.4rem);
    color: var(--wine-900);
    margin-bottom: 1rem;
}

.focus-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.1rem;
}

.focus-checklist {
    list-style: none;
    margin: 1.5rem 0 2.2rem;
}

.focus-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.9rem;
    color: var(--wine-900);
    font-weight: 500;
    font-size: 0.98rem;
}

.focus-checklist svg {
    color: var(--amber-brand);
    flex-shrink: 0;
    margin-top: 3px;
}

/* -------------------------------------------------------------
   CONTATTI & ORARI
   ------------------------------------------------------------- */
.contact-section {
    padding: 6rem 0;
    background-color: var(--cream-light);
    border-top: 1px solid var(--border-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1020px;
    margin: 0 auto;
}

@media (min-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    padding: 2.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-page);
}

.main-contact {
    background: #ffffff;
    border-color: var(--wine-800);
}

.main-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--wine-900);
    margin-bottom: 0.2rem;
}

.firm-tag {
    color: var(--amber-brand);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2rem;
}

.contact-entry {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.entry-icon {
    width: 38px;
    height: 38px;
    background-color: var(--cream-tint);
    color: var(--wine-800);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.entry-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.entry-value {
    font-size: 1rem;
    color: var(--wine-900);
    font-weight: 500;
}

.highlight-phone {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--wine-800);
}

.btn-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 2rem;
}

.help-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--wine-900);
    margin-bottom: 0.6rem;
}

.help-lead {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 1.5rem;
}

.work-schedule {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.1rem 0;
    margin-bottom: 1.5rem;
}

.sched-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 0.4rem 0;
}

.text-accent {
    color: var(--wine-800);
}

.process-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 1.3rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.process-title {
    font-weight: 700;
    color: var(--wine-900);
    margin-bottom: 0.6rem;
}

.process-box ol {
    padding-left: 1.2rem;
}

.process-box li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.process-box li strong {
    color: var(--wine-900);
}

/* -------------------------------------------------------------
   FOOTER & LEGAL
   ------------------------------------------------------------- */
footer {
    background-color: var(--wine-900);
    color: #dfcfc7;
    padding: 4.5rem 0 2rem;
    font-size: 0.92rem;
    text-align: center;
}

.footer-top {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 52px;
    width: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: brightness(1.05);
}

.brand-title-footer {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.footer-top p {
    line-height: 1.6;
}

.footer-top a {
    color: #ffffff;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.4rem 0;
}

.footer-legal button {
    background: none;
    border: none;
    color: #d1b8ab;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
}

.footer-legal button:hover {
    color: #ffffff;
}

.footer-sub {
    font-size: 0.82rem;
    color: #a48c82;
    max-width: 540px;
    margin: 0 auto 1.6rem;
    line-height: 1.5;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.4rem;
    font-size: 0.82rem;
    color: #8f776e;
}

/* -------------------------------------------------------------
   PULSANTI FLOTTANTI
   ------------------------------------------------------------- */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 98;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(45, 16, 21, 0.25);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
    border: none;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.08);
}

.btn-wa {
    background-color: #25D366;
    color: #ffffff;
}

.btn-wa:hover {
    background-color: #1ebc59;
}

.btn-top {
    background-color: var(--wine-800);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.btn-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.btn-top:hover {
    background-color: var(--wine-900);
}

/* -------------------------------------------------------------
   MODALI LEGALI
   ------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45, 16, 21, 0.7);
    z-index: 1000;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-box {
    background: #ffffff;
    max-width: 580px;
    margin: 4rem auto;
    padding: 2.4rem;
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.8rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-box h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--wine-900);
    margin-bottom: 1rem;
}

.modal-box p, .modal-box ul {
    font-size: 0.93rem;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
    line-height: 1.6;
}

.modal-box ul {
    padding-left: 1.3rem;
}

/* -------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 768px) {
    header.menu-open {
        background-color: rgba(255, 253, 250, 0.98);
        border-bottom-color: var(--border-subtle);
    }

    header.menu-open .hamburger span {
        background-color: var(--wine-900);
    }

    header.menu-open .brand-title {
        color: var(--wine-900);
        text-shadow: none;
    }

    header.menu-open .brand-sub {
        color: var(--amber-brand);
    }

    .hamburger {
        display: flex;
    }

    .nav-contact-btn {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1.8rem 1.5rem;
        gap: 1.2rem;
        border-bottom: 3px solid var(--amber-brand);
        box-shadow: 0 12px 30px rgba(45, 16, 21, 0.12);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--wine-900) !important;
        text-shadow: none !important;
        font-size: 1.05rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a:hover {
        color: var(--amber-brand) !important;
    }

    .floating-actions {
        bottom: 20px;
        right: 18px;
    }

    .float-btn {
        width: 44px;
        height: 44px;
    }
}