/* ============================================================
   Bar Poncia – style.css  (REFACTORED)
   Approccio: Mobile-First, CSS Custom Properties, Flexbox/Grid
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES (Design Tokens) ─────────────────── */

/* ── FONT SELF-HOSTED ─────────────────────────────────── */
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-display-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 300 500; /* copre 300, 400, 500 con lo stesso file */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-700.woff2') format('woff2');
  font-weight: 600 700; /* copre 600 e 700 con lo stesso file */
  font-style: normal;
  font-display: swap;
}


:root {
    /* Palette */
    --color-primary:       #1a3a5c;
    --color-primary-dark:  #0f2540;
    --color-primary-light: #2c5f8a;
    --color-accent:        #c8922a;
    --color-accent-light:  #e8b84b;
    --color-surface:       #ffffff;
    --color-surface-alt:   #f4f6f9;
    --color-text:          #1e2a38;
    --color-text-muted:    #5a6a7a;
    --color-text-light:    #8a9aaa;
    --color-border:        #dde3ea;
    --color-overlay:       rgba(10, 25, 47, 0.72);

    /* Badge colors */
    --color-access:        #1a6b4a;
    --color-access-bg:     #e8f5ee;
    --color-ambiente:      #7b3f00;
    --color-ambiente-bg:   #fdf0e0;
    --color-offerta:       #1a3a5c;
    --color-offerta-bg:    #e8f0f8;

    /* Typography */
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Inter', system-ui, -apple-system, sans-serif;

    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.25rem;
    --fs-xl:   1.5rem;
    --fs-2xl:  2rem;
    --fs-3xl:  2.5rem;
    --fs-4xl:  3.5rem;
    --fs-hero: clamp(2.8rem, 8vw, 5.5rem);

    --fw-light:   300;
    --fw-regular: 400;
    --fw-medium:  500;
    --fw-semi:    600;
    --fw-bold:    700;

    --lh-tight:  1.2;
    --lh-normal: 1.6;
    --lh-loose:  1.8;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-pad: 1.25rem;
    --header-h:      72px;

    /* Borders & Shadows */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-pill: 9999px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
    --shadow-xl:  0 20px 50px rgba(0,0,0,.16);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background-color: var(--color-surface);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { list-style: none; }

address { font-style: normal; }

svg { flex-shrink: 0; }

/* ── 3. UTILITY CLASSES ───────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--space-4xl);
    background-color: var(--color-surface);
    position: relative;
    z-index: 10;
}

.section--alt {
    background-color: var(--color-surface-alt);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--space-3xl);
}

.section-eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section-intro {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    line-height: var(--lh-loose);
}

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        transform var(--transition-fast),
        box-shadow var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.25);
    border-color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-card {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    font-size: var(--fs-xs);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-top: auto;
}

.btn-card:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.btn-lg {
    font-size: var(--fs-base);
    padding: 1rem 2rem;
}

/* ── 5. HEADER & NAV ──────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background-color: transparent;
    transition:
        background-color var(--transition-slow),
        box-shadow var(--transition-slow);
}

.site-header.is-scrolled {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-md);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    z-index: 1100;
}

.logo-icon {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: #ffffff;
}

.logo-sub {
    font-size: var(--fs-xs);
    font-weight: var(--fw-light);
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.06em;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.hamburger:hover {
    background-color: rgba(255,255,255,0.1);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: var(--radius-pill);
    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
    transform-origin: center;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav menu (off-canvas mobile) */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background-color: var(--color-primary-dark);
    padding: calc(var(--header-h) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 1050;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.nav-menu.is-open {
    transform: translateX(0);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.nav-link {
    display: block;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius-md);
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
    border-left-color: var(--color-accent);
}

.nav-link.is-active {
    color: #ffffff;
    border-left-color: var(--color-accent);
}

/* Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
    backdrop-filter: blur(2px);
}

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

/* Desktop nav */
@media (min-width: 900px) {
    .hamburger { display: none; }

    .nav-menu {
        position: static;
        width: auto;
        background: none;
        padding: 0;
        transform: none;
        box-shadow: none;
        overflow: visible;
        transition: none;
    }

    .nav-list {
        flex-direction: row;
        gap: var(--space-xs);
        align-items: center;
    }

    .nav-link {
        padding: 0.5rem 0.875rem;
        font-size: var(--fs-sm);
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.is-active {
        background-color: rgba(255,255,255,0.1);
        border-left-color: transparent;
        border-bottom-color: var(--color-accent);
    }

    .nav-overlay { display: none; }
}

/* ── 6. HERO (Home) ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    z-index: 1;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.45), rgba(10, 25, 47, 0.45)),
        url('../assets/img/hero/hero-gravedona.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: calc(var(--header-h) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
}

.hero-eyebrow {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: #ffffff;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: clamp(var(--fs-md), 2.5vw, var(--fs-xl));
    font-weight: var(--fw-light);
    color: rgba(255,255,255,0.88);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
}

/* ── 7. PAGE HERO (pagine interne) ────────────────────────── */
.page-hero {
    padding-top: calc(var(--header-h) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    background-color: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--fs-3xl), 6vw, var(--fs-4xl));
    font-weight: var(--fw-bold);
    color: #ffffff;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-md);
}

.page-hero-sub {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin-inline: auto;
    line-height: var(--lh-loose);
}

/* Page-hero variants */
.page-hero--bar {
    background-image:
        linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.72)),
        url('../assets/img/hero/hero-bar.jpeg');
    background-size: cover;
    background-position: center;
}

.page-hero--yogurt {
    background-image:
        linear-gradient(rgba(0,0,0,0.72), rgba(26,58,92,0.72)),
        url('../assets/img/hero/hero-yogurteria.png');
    background-size: cover;
    background-position: center;
}

.page-hero--auto {
    background-image:
        linear-gradient(rgba(0,0,0,0.72), rgba(26,58,92,0.72)),
        url('../assets/img/hero/hero-gravedona.jpg');
    background-size: cover;
    background-position: center;
}

.page-hero--casa {
    background-image:
        linear-gradient(rgba(0,0,0,0.72), rgba(26,58,92,0.72)),
        url('../assets/img/hero/hero-casa.jpg');
    background-size: cover;
    background-position: center;
}

.page-hero--showcase {
    background-image:
        linear-gradient(rgba(15,37,64,0.72), rgba(26,58,92,0.72)),
        url('../assets/img/hero/hero-gravedona.jpg');
    background-size: cover;
    background-position: center;
}

/* Angolo Creativo – design tokens e override tema */
:root {
    --ac-ink:       #1a1410;
    --ac-parchment: #faf7f2;
    --ac-warm:      #f5f0e8;
    --ac-gold:      #c8922a;
    --ac-gold-pale: #e8d5a8;
    --ac-muted:     #6b5e4e;
    --ac-border:    #e2d9cc;
    --ac-serif:     'Playfair Display', Georgia, serif;
}

.body--creativo {
    background-color: var(--ac-parchment);
}

.page-hero--creativo {
    background-image:
        linear-gradient(rgba(20,15,10,0.78), rgba(26,20,12,0.72)),
        url('../assets/img/hero/hero-gravedona.jpg');
    background-size: cover;
    background-position: center top;
}

.page-hero--creativo .page-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    letter-spacing: 0.02em;
}

/* ── 8. STORIA & ATMOSFERA ────────────────────────────────── */
.storia-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    align-items: center;
}

.storia-text {
    max-width: 600px;
}

.storia-text .section-eyebrow {
    display: block;
    margin-bottom: var(--space-sm);
}

.storia-text .section-title {
    margin-bottom: var(--space-lg);
}

.storia-body {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-md);
}

.storia-body strong {
    color: var(--color-primary);
    font-weight: var(--fw-semi);
}

.storia-text .btn-outline {
    margin-top: var(--space-lg);
}

.storia-visual {
    width: 100%;
    max-width: 520px;
    flex-shrink: 0;
}

.storia-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.storia-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.storia-img-wrapper:hover .storia-img {
    transform: scale(1.04);
}

.storia-badge {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    background-color: var(--color-accent);
    color: #ffffff;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.badge-year {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: 1;
}

.badge-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 4px;
}

@media (min-width: 900px) {
    .storia-inner {
        flex-direction: row;
        gap: var(--space-4xl);
        align-items: flex-start;
    }

    .storia-text,
    .storia-visual {
        flex: 1;
    }
}

/* ── 9. SERVIZI – CARD GRID ───────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 600px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }

    .cards-grid .card:last-child:nth-child(3n+2) {
        grid-column: 2;
    }
}

.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    min-height: 120px;
    /* Overlay dark comune a tutte le varianti */
    background-color: var(--color-primary-dark);
    background-size: cover;
    background-position: center;
}

/* DRY: varianti con solo la bg-image diversa */
.card-icon-wrap--bar {
    background-image:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('../assets/img/hero/hero-bar.jpeg');
}

.card-icon-wrap--yogurt {
    background-image:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('../assets/img/hero/hero-yogurteria.png');
}

.card-icon-wrap--auto,
.card-icon-wrap--showcase {
    background-image:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('../assets/img/hero/hero-gravedona.jpg');
}

.card-icon-wrap--casa {
    background-image:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('../assets/img/hero/hero-casa.jpg');
}

.card-icon {
    width: 48px;
    height: 48px;
    color: #ffffff;
}

.card-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-md);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    line-height: var(--lh-tight);
}

.card-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-loose);
    flex: 1;
}

/* ── 10. AMENITIES ────────────────────────────────────────── */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 700px) {
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .amenities-grid { grid-template-columns: repeat(3, 1fr); }
}

.amenity-group {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.amenity-group-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-border);
}

.amenity-group-icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.amenity-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.amenity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    letter-spacing: 0.02em;
    transition: transform var(--transition-fast);
}

.amenity-badge:hover {
    transform: scale(1.04);
}

.amenity-badge--access {
    background-color: var(--color-access-bg);
    color: var(--color-access);
}

.amenity-badge--ambiente {
    background-color: var(--color-ambiente-bg);
    color: var(--color-ambiente);
}

.amenity-badge--offerta {
    background-color: var(--color-offerta-bg);
    color: var(--color-offerta);
}

.badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── 11. CTA BANNER ───────────────────────────────────────── */
.cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-block: var(--space-5xl);
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(10,25,47,0.88), rgba(26,58,92,0.82)),
        url('../assets/img/hero/hero-gravedona.jpg');
    background-size: cover;
    background-position: center;
}

.cta-banner-inner {
    position: relative;
    z-index: 2;
}

.cta-banner-title {
    font-family: var(--font-display);
    font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl));
    font-weight: var(--fw-bold);
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.cta-banner-text {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
    line-height: var(--lh-loose);
}

/* ── 12. MENU BAR PAGE ────────────────────────────────────── */
.menu-category {
    margin-bottom: var(--space-3xl);
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category-title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: var(--space-xl);
    display: inline-block;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 600px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition:
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.menu-item:hover {
    background-color: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
}

.menu-item-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}

.menu-item-price {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--color-accent);
    white-space: nowrap;
    margin-left: var(--space-md);
}

/* Nota allergeni */
.allergen-notice {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: var(--space-lg);
    margin-top: var(--space-2xl);
}

.allergen-notice h3 {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.allergen-notice p {
    font-size: var(--fs-sm);
    color: var(--color-text);
    line-height: var(--lh-normal);
}

/* ── 13. INFO CARDS (Noleggio, Affitto) ───────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 700px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

.info-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.info-card-title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.info-card-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-md);
}

.info-card-price {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.info-card-price-label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.info-grid--single {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin-inline: auto;
}

@media (max-width: 768px) {
    .info-grid--single { grid-template-columns: 1fr; }
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(200,146,42,0.1);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
}

/* Highlight bar (Affitto) */
.services-highlight-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-surface-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Link prenotazione (Affitto) */
.booking-link-wrap {
    text-align: center;
    margin-top: calc(var(--space-md) * -1);
    margin-bottom: var(--space-2xl);
}

.booking-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-weight: var(--fw-semi);
    transition:
        background-color var(--transition-base),
        color var(--transition-base);
}

.booking-link:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* ── 14. CAROUSEL ─────────────────────────────────────────── */
.carousel-wrapper {
    position: relative;
    margin-bottom: var(--space-3xl);
    margin-inline: auto;
    max-width: 900px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #000;
    aspect-ratio: 16 / 9;
    max-height: 520px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn--prev { left: 1.25rem; }
.carousel-btn--next { right: 1.25rem; }

.carousel-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.3s;
}

.carousel-dot.is-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.carousel-counter {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.9);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    z-index: 10;
}

/* ── 15. SHOWCASE GALLERY ─────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--color-surface-alt);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-surface-alt), var(--color-border));
    color: var(--color-text-light);
    font-size: var(--fs-xs);
    text-align: center;
    padding: var(--space-md);
}

/* ── 16. CONTACT CTA ──────────────────────────────────────── */
.contact-cta {
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    margin-top: var(--space-3xl);
}

.contact-cta-title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.contact-cta-text {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* ── 17. FOOTER ───────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255,255,255,0.75);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-block: var(--space-4xl);
}

@media (min-width: 600px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1.5fr 1fr;
        gap: var(--space-3xl);
    }
}

.footer-logo {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
    color: rgba(255,255,255,0.6);
}

.footer-nav-title {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: var(--space-lg);
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav-link,
.footer-link {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
    padding-block: 2px;
}

.footer-nav-link:hover,
.footer-link:hover {
    color: #ffffff;
}

.footer-address p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-md);
}

.footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-accent);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.social-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-block: var(--space-lg);
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.footer-copy,
.footer-legal {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.85);
}

/* Sezione dati legali nel footer */
.footer-legal-info {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-xl);
    margin-top: var(--space-sm);
}

.footer-legal-info p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.45);
    line-height: var(--lh-loose);
}

.footer-legal-info strong {
    color: rgba(255,255,255,0.65);
}

/* ── 18. ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── 19. FOCUS & ACCESSIBILITY ────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── 20. RESPONSIVE TWEAKS ────────────────────────────────── */
@media (min-width: 600px) {
    :root { --container-pad: 2rem; }
}

@media (min-width: 900px) {
    :root { --container-pad: 2.5rem; }

    .section { padding-block: var(--space-5xl); }
}

/* ── 21. PRINT STYLES ─────────────────────────────────────── */
@media print {
    .site-header,
    .hamburger,
    .hero-scroll-indicator,
    .cta-banner,
    .site-footer {
        display: none;
    }

    body { color: #000; }
}

/* ── 22. NOLEGGIO – Tariffe & Requisiti ───────────────────── */
.tariffe-list,
.requisiti-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tariffa-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.tariffa-label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}

.tariffa-price {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-accent);
}

.tariffa-price sub {
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    color: var(--color-text-muted);
}

.tariffa-note,
.franchigia-box {
    margin-top: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: #fff8ee;
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-loose);
}

.tariffa-note strong,
.franchigia-box strong {
    color: var(--color-accent);
}

.tariffa-note { color: var(--color-text-muted); }

.requisito-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.requisito-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-access-bg);
    color: var(--color-access);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.requisito-check svg {
    width: 13px;
    height: 13px;
}

/* ── 23. AFFITTO – Struttura & Regole ─────────────────────── */
.carousel-wrapper--centered {
    margin-inline: auto;
}

.booking-link-wrap {
    text-align: center;
    margin-top: calc(var(--space-md) * -1);
    margin-bottom: var(--space-2xl);
}

.services-highlight-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-surface-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.rating-score {
    background: var(--color-primary);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.rating-score-number {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    display: block;
    line-height: 1;
}

.rating-label {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    display: block;
}

.rating-sub {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.services-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.franchigia-box p {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-loose);
    margin: 0;
}

.requisiti-list--casa {
    margin-top: var(--space-lg);
}

.tariffa-price--sm {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-muted);
}

.contact-cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.info-note {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* ── 24. SHOWCASE – Lightbox & Gallery expand ─────────────── */
.gallery-extra {
    display: none;
    margin-top: var(--space-md);
}

.gallery-extra.is-open {
    display: grid;
    animation: fadeInUp 0.4s ease forwards;
}

.gallery-expand-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.gallery-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-expand-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-expand-btn.is-open svg {
    transform: rotate(180deg);
}

.gallery-item img { cursor: zoom-in; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: scale(0.92);
    transition: transform 0.3s ease;
    display: block;
}

.lightbox.is-open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav--prev { left: 1.25rem; }
.lightbox-nav--next { right: 1.25rem; }
.lightbox-nav svg { width: 20px; height: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
}
.tariffe-list--spaced { margin-top: var(--space-md); }
