/* =========================================
   Trattoria del Mare — Standalone Site
   Enterprise-grade restaurant theme (warm: terracotta / gold / olive)
   ========================================= */

:root {
    --c-primary: #9a3412;
    /* Terracotta 800 */
    --c-primary-dark: #7c2d12;
    --c-primary-light: #ffedd5;
    --c-accent: #ca8a04;
    /* Gold / ochre 600 */
    --c-accent-dark: #a16207;
    --c-cta: #c2410c;
    /* Warm orange CTA */
    --c-cta-dark: #9a3412;
    --c-success: #4d7c0f;
    /* Olive green */
    --c-warning: #d97706;
    --c-bg: #fffbf5;
    /* Warm off-white */
    --c-bg-soft: #faf3e8;
    --c-bg-blue: #fdf6ec;
    /* warm tint used where dental used blue */
    --c-border: #ece0d1;
    --c-text: #292219;
    /* Warm near-black */
    --c-text-soft: #57493a;
    --c-muted: #8a7a68;
    --c-white: #ffffff;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(41, 34, 25, 0.06);
    --shadow: 0 4px 20px rgba(41, 34, 25, 0.10);
    --shadow-lg: 0 20px 50px rgba(41, 34, 25, 0.16);
    --shadow-cta: 0 10px 30px rgba(194, 65, 12, 0.32);

    --topbar-h: 40px;
    --nav-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar-h) + var(--nav-h) + 20px);
}

body.restaurant-site {
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

/* AI lane label completely disabled — the widget owns bottom-right, no fixed
   sidebar that fights with it. */
.ai-lane-label { display: none !important; }

.restaurant-site img { max-width: 100%; display: block; }

.restaurant-site h1,
.restaurant-site h2,
.restaurant-site h3,
.restaurant-site h4 {
    font-family: var(--font-heading);
    color: var(--c-text);
    letter-spacing: -0.015em;
    line-height: 1.25;
    font-weight: 700;
}

.restaurant-site a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.restaurant-site a:hover { color: var(--c-primary-dark); }

.restaurant-site .container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Skip link — accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 100;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}

.skip-link:focus { left: 0; }

/* Portfolio back-link — small discreet link in top bar */
.portfolio-back {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    transition: background 0.2s;
}

.portfolio-back:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Top bar
   ========================================= */
.topbar {
    background: var(--c-primary-dark);
    color: rgba(255, 255, 255, 0.9);
    height: var(--topbar-h);
    font-size: 0.82rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 1rem;
}

.topbar-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.topbar-meta a {
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-meta a:hover { color: #fff; }

.topbar-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-actions a { color: rgba(255, 255, 255, 0.85); }

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.lang-switch button {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
}

.lang-switch button:hover { color: #fff; }

.lang-switch button.active {
    background: #fff;
    color: var(--c-primary-dark);
}

/* Progressive hide of secondary topbar items when width is tight */
@media (max-width: 1400px) {
    .topbar-meta a[href^="mailto"] { display: none; }
}
@media (max-width: 1200px) {
    .topbar-actions a[aria-label*="Area"],
    .topbar-actions a[aria-label*="Lingua"] { display: none; }
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    height: var(--nav-h);
    z-index: 50;
    transition: box-shadow 0.2s;
}

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-text);
}

.brand:hover { color: var(--c-text); }

.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.25);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
}

.brand-sub {
    color: var(--c-muted);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: var(--c-text-soft);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover { color: var(--c-primary); }

.nav-menu a.active { color: var(--c-primary); }

.nav-cta {
    background: var(--c-cta);
    color: #fff !important;
    padding: 0.7rem 1.3rem !important;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-cta);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

/* When the widget lane is active, hide low-priority nav links so the
   remaining items and the Chiama-Ora CTA are never cut off. */
@media (min-width: 1281px) {
    .nav-menu li.nav-secondary { display: none; }
}

.nav-cta:hover {
    color: #fff !important;
    transform: translateY(-2px);
    background: var(--c-cta-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--c-text);
    cursor: pointer;
    padding: 0.5rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.btn-cta {
    background: var(--c-cta);
    color: #fff;
    box-shadow: var(--shadow-cta);
    font-size: 1.05rem;
    padding: 1rem 1.75rem;
}

.btn-cta:hover {
    color: #fff;
    background: var(--c-cta-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(194, 65, 12, 0.45);
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
    background: var(--c-primary-dark);
    transform: translateY(-2px);
}

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

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

.btn-pulse {
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(194, 65, 12, 0.35);
    }
    50% {
        box-shadow: 0 10px 30px rgba(194, 65, 12, 0.65), 0 0 0 8px rgba(194, 65, 12, 0.15);
    }
}

/* =========================================
   Section header
   ========================================= */
.section {
    padding: 5rem 0;
}

.section-soft { background: var(--c-bg-soft); }
.section-blue { background: var(--c-bg-blue); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem auto;
}

.section-eyebrow {
    color: var(--c-accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--c-accent);
    opacity: 0.5;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--c-text-soft);
    font-size: 1.05rem;
}

/* =========================================
   Hero
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--c-primary-light) 0%, #fdf6ec 100%);
    padding: 5rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(202, 138, 4, 0.15), transparent);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--c-border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--c-primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--c-success);
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero h1 .accent {
    color: var(--c-primary);
    position: relative;
    display: inline-block;
}

.hero h1 .accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 10px;
    background: rgba(202, 138, 4, 0.25);
    z-index: -1;
    border-radius: 3px;
}

.hero p.lead {
    color: var(--c-text-soft);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-trust-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--c-primary);
    line-height: 1;
}

.hero-trust-label {
    color: var(--c-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.hero-visual {
    position: relative;
    height: 480px;
}

.hero-visual-main {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-visual-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Warm terracotta wash over the photo — keeps the brand tint and text legibility */
.hero-visual-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(160deg, rgba(154, 52, 18, 0.28) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(41, 34, 25, 0.35) 100%);
    pointer-events: none;
}

.hero-float {
    position: absolute;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 0.85rem;
    align-items: center;
    min-width: 200px;
}

.hero-float.top-left {
    top: 30px;
    left: -20px;
}

.hero-float.bottom-right {
    bottom: 30px;
    right: -20px;
}

.hero-float-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hero-float-icon.accent {
    background: rgba(202, 138, 4, 0.15);
    color: var(--c-accent);
}

.hero-float-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--c-text);
}

.hero-float-desc {
    color: var(--c-muted);
    font-size: 0.78rem;
}

/* =========================================
   Trust bar (partners)
   ========================================= */
.trust-bar {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--c-border);
    background: #fff;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-bar-label {
    color: var(--c-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trust-bar-logos {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.trust-logo {
    color: var(--c-muted);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    opacity: 0.65;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.trust-logo:hover { opacity: 1; }

/* =========================================
   Services grid
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary-light);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    color: var(--c-text-soft);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--c-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.service-link:hover { gap: 0.55rem; }

/* =========================================
   About
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-visual {
    background: linear-gradient(135deg, var(--c-primary-light), #fdf6ec);
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-visual i {
    font-size: 10rem;
    opacity: 0.4;
}

.about-visual::after {
    content: "Dal 1987";
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--c-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.about-content p {
    color: var(--c-text-soft);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
}

.about-stat-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.about-stat-label {
    color: var(--c-muted);
    font-size: 0.85rem;
}

/* =========================================
   Team
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.team-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.team-avatar {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.team-avatar.v2 { background: linear-gradient(135deg, #b45309, #7c2d12); }
.team-avatar.v3 { background: linear-gradient(135deg, #ca8a04, #4d7c0f); }
.team-avatar.v4 { background: linear-gradient(135deg, #a16207, #9a3412); }

.team-info {
    padding: 1.5rem;
}

.team-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.team-role {
    color: var(--c-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.team-spec {
    color: var(--c-text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================
   Pricing tables (from previous clinic theme, refined)
   ========================================= */
.pricing-category {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.pricing-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--c-primary-light);
}

.pricing-category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.pricing-category h3 {
    font-size: 1.35rem;
    margin: 0;
}

.pricing-category-sub {
    color: var(--c-muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.price-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--c-border);
}

.price-table th.price-col,
.price-table td.price-col {
    text-align: right;
    white-space: nowrap;
}

.price-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text-soft);
    vertical-align: top;
}

.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--c-bg-soft); }

.price-table .service-name {
    color: var(--c-text);
    font-weight: 600;
}

.price-table .price-col {
    color: var(--c-primary);
    font-weight: 700;
    font-size: 1rem;
}

.price-table .price-col.free { color: var(--c-success); }

.pricing-cta {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}

.pricing-cta-text h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.pricing-cta-text p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.testimonial-quote {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 3rem;
    color: var(--c-primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    color: var(--c-text-soft);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.testimonial-name {
    font-weight: 600;
    color: var(--c-text);
    font-size: 0.95rem;
}

.testimonial-meta {
    color: var(--c-muted);
    font-size: 0.8rem;
}

/* =========================================
   FAQ
   ========================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item[open] {
    box-shadow: var(--shadow);
    border-color: var(--c-primary-light);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--c-text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    color: var(--c-primary);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item-body {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--c-text-soft);
    line-height: 1.7;
}

/* =========================================
   Contact / Location
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-info {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.contact-item-label {
    color: var(--c-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.contact-item-value {
    color: var(--c-text);
    font-weight: 600;
    font-size: 1rem;
}

.contact-item-value a { color: var(--c-primary); }

/* Map placeholder */
.map-placeholder {
    background: linear-gradient(135deg, #fbe3c8, #fdf6ec);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(154, 52, 18, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 52, 18, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

.map-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    z-index: 1;
    animation: bounce 2s infinite;
}

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

.map-placeholder h4 {
    z-index: 1;
    color: var(--c-primary-dark);
    margin-bottom: 0.35rem;
}

.map-placeholder p {
    z-index: 1;
    color: var(--c-text-soft);
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   Booking form
   ========================================= */
.booking-form {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    color: var(--c-text);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--c-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(154, 52, 18, 0.12);
}

.form-textarea { min-height: 100px; resize: vertical; }

.form-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--c-text-soft);
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-top: 0.25rem;
    accent-color: var(--c-primary);
}

/* =========================================
   Big call-CTA banner
   ========================================= */
.call-banner {
    background:
        linear-gradient(135deg, rgba(154, 52, 18, 0.95), rgba(161, 98, 7, 0.95)),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1), transparent 40%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.call-banner::before,
.call-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.call-banner::before {
    width: 300px; height: 300px;
    top: -100px; left: -100px;
}

.call-banner::after {
    width: 400px; height: 400px;
    bottom: -150px; right: -150px;
}

.call-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.call-banner-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    animation: ring 2s infinite;
    flex-shrink: 0;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0); }
}

.call-banner-text {
    text-align: left;
    max-width: 500px;
}

.call-banner h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.call-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.call-banner .phone-huge {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.call-banner .phone-huge:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: scale(1.03);
}

/* =========================================
   AI Agent section
   ========================================= */
.agent-section {
    padding: 5rem 0;
    background: var(--c-bg-blue);
}

.agent-wrapper {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.agent-wrapper::before {
    content: "AI POWERED";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.agent-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.agent-wrapper p {
    color: var(--c-text-soft);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Footer
   ========================================= */
.dental-footer {
    background: #292219;
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover { color: #fff; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-logo {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
}

.footer-socials a:hover {
    background: var(--c-primary);
    color: #fff;
}

.footer-legal {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* =========================================
   Cookie banner — bottom-LEFT to avoid ElevenLabs widget on the right
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: auto;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow);
    z-index: 80;
    font-size: 0.8rem;
    color: var(--c-text-soft);
}

.cookie-banner h5 {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.cookie-banner p {
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.cookie-banner .btn {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.78rem !important;
}

.cookie-banner.hidden { display: none; }

.cookie-banner h5 {
    color: var(--c-text);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.cookie-banner p {
    margin-bottom: 1rem;
    line-height: 1.55;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

/* =========================================
   AI Hint Bubble — points to ElevenLabs widget (bottom-right)
   ========================================= */
.ai-hint {
    display: none; /* replaced by .ai-lane-label */
    position: fixed;
    bottom: 110px;
    right: 24px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 18px;
    padding: 1rem 1.15rem 1rem 1rem;
    box-shadow: 0 20px 50px rgba(154, 52, 18, 0.25);
    max-width: 300px;
    z-index: 75;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: ai-hint-in 0.6s ease-out 1.5s both, ai-hint-float 3s ease-in-out 2.1s infinite;
    transform-origin: bottom right;
}

.ai-hint.dismissed { display: none; }

.ai-hint::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    transform: rotate(45deg);
}

.ai-hint-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.3);
    position: relative;
}

.ai-hint-avatar::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--c-success);
    border: 2px solid #fff;
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

.ai-hint-body {
    flex: 1;
    min-width: 0;
}

.ai-hint-title {
    font-weight: 700;
    color: var(--c-text);
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.ai-hint-text {
    color: var(--c-text-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.ai-hint-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: var(--c-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.ai-hint-close:hover { color: var(--c-text); }

@keyframes ai-hint-in {
    0% { opacity: 0; transform: scale(0.7) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes ai-hint-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* =========================================
   Hero AI CTA (pointer badge to widget)
   ========================================= */
.hero-ai-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.08), rgba(202, 138, 4, 0.08));
    border: 1.5px dashed var(--c-primary);
    color: var(--c-primary);
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.hero-ai-cta:hover {
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.15), rgba(202, 138, 4, 0.15));
    color: var(--c-primary-dark);
    transform: translateX(4px);
}

.hero-ai-cta .ai-dot {
    width: 10px;
    height: 10px;
    background: var(--c-success);
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero-ai-cta .arrow-down {
    animation: arrow-bounce 1.5s ease-in-out infinite;
    color: var(--c-cta);
}

@keyframes arrow-bounce {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, 3px); }
}

/* =========================================
   AI mid-banner (between listino and testimonianze)
   ========================================= */
.ai-midbanner {
    background: linear-gradient(135deg, #7c2d12 0%, #a16207 100%);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.ai-midbanner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255,255,255,0.12), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255,255,255,0.08), transparent 45%);
    pointer-events: none;
}

.ai-midbanner-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.ai-midbanner-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    position: relative;
}

.ai-midbanner-icon::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--c-success);
    border: 3px solid #7c2d12;
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

.ai-midbanner h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.ai-midbanner p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.ai-midbanner-arrow {
    background: var(--c-cta);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: var(--shadow-cta);
    animation: pulse-shadow 2s infinite;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    white-space: nowrap;
}

.ai-midbanner-arrow:hover {
    color: #fff;
    background: var(--c-cta-dark);
    transform: translateY(-2px);
}

.ai-midbanner-arrow i {
    animation: arrow-bounce-h 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce-h {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* =========================================
   AI How-it-works section (replaces standalone widget section)
   ========================================= */
.ai-explain {
    background: linear-gradient(180deg, var(--c-bg-blue) 0%, #fff 100%);
    padding: 5rem 0;
    position: relative;
}

.ai-explain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.ai-explain-visual {
    position: relative;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ai-explain-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(202, 138, 4, 0.3), transparent 45%);
}

.ai-explain-visual-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.ai-explain-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    flex-shrink: 0;
}

.ai-explain-avatar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: var(--c-success);
    border: 2px solid var(--c-primary);
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

.ai-explain-visual-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.ai-explain-visual-status {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ai-explain-visual-status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--c-success);
    border-radius: 50%;
}

.chat-bubble {
    position: relative;
    padding: 0.85rem 1.15rem;
    border-radius: 18px;
    margin-bottom: 0.85rem;
    max-width: 85%;
    font-size: 0.92rem;
    line-height: 1.5;
    animation: bubble-in 0.5s ease-out backwards;
}

.chat-bubble.user {
    background: rgba(255, 255, 255, 0.95);
    color: var(--c-text);
    border-bottom-right-radius: 4px;
    margin-left: auto;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.bot {
    background: rgba(202, 138, 4, 0.25);
    border: 1px solid rgba(202, 138, 4, 0.4);
    color: #fff;
    border-bottom-left-radius: 4px;
    backdrop-filter: blur(6px);
}

.chat-bubble:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble:nth-child(3) { animation-delay: 0.35s; }
.chat-bubble:nth-child(4) { animation-delay: 0.55s; }

@keyframes bubble-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ai-explain-content .section-eyebrow {
    justify-content: flex-start;
}

.ai-explain-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ai-explain-content p.lead {
    color: var(--c-text-soft);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.ai-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.ai-features-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--c-text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.ai-features-list i {
    color: var(--c-accent);
    background: rgba(202, 138, 4, 0.12);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ai-features-list strong { color: var(--c-text); }

.ai-explain-cta {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: #fff;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    width: 100%;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-explain-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.ai-explain-cta-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ai-explain-cta-text {
    flex: 1;
}

.ai-explain-cta-text b {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.ai-explain-cta-text span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.ai-explain-cta i.pointer {
    font-size: 1.25rem;
    animation: arrow-bounce-h 1.5s ease-in-out infinite;
}

/* =========================================
   Floating call button (mobile)
   ========================================= */
.mobile-call {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--c-cta);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-cta);
    z-index: 85;
    animation: pulse-shadow 2s infinite;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 2.25rem; }
    .hero-visual { height: 320px; }
    .hero-visual-main i { font-size: 9rem; }
    .section-title { font-size: 1.75rem; }
    .section { padding: 3.5rem 0; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.open { display: flex; }

    .nav-toggle { display: block; }

    .footer-grid { gap: 2rem; }

    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .about-stat-num { font-size: 1.75rem; }

    .topbar-meta { gap: 1rem; }
    .topbar-actions { display: none; }

    .call-banner-text { text-align: center; }
    .call-banner .phone-huge { font-size: 1.75rem; padding: 0.7rem 1.25rem; }

    .form-row { grid-template-columns: 1fr; }

    .mobile-call { display: flex; }

    .ai-hint { display: none; }
    .ai-midbanner-inner { grid-template-columns: 1fr; text-align: center; }
    .ai-midbanner-icon { margin: 0 auto; }
    .ai-explain-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cookie-banner { bottom: 90px; left: 12px; right: 12px; max-width: none; }

    .pricing-cta { text-align: center; justify-content: center; }
    .pricing-cta-text { text-align: center; }

    .price-table thead { display: none; }
    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table td {
        display: block;
        width: 100%;
    }
    .price-table tr {
        border: 1px solid var(--c-border);
        border-radius: var(--radius-sm);
        margin-bottom: 0.75rem;
        padding: 0.5rem 0.85rem;
    }
    .price-table tbody td {
        border: none;
        padding: 0.4rem 0;
    }
    .price-table td.price-col { text-align: left; }
    .price-table td.price-col::before {
        content: "Costo: ";
        color: var(--c-muted);
        font-weight: 500;
    }
}

@media (max-width: 600px) {
    .topbar { height: auto; padding: 0.5rem 0; }
    .topbar-inner { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    html { scroll-padding-top: 160px; }

    .hero { padding: 3rem 0 4rem 0; }
    .hero h1 { font-size: 1.9rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-cta { justify-content: center; }
    .hero-float { min-width: 160px; padding: 0.75rem 1rem; }
    .hero-float.top-left { left: -10px; top: 10px; }
    .hero-float.bottom-right { right: -10px; bottom: 10px; }

    .trust-bar-inner { justify-content: center; }
    .trust-bar-logos { gap: 1.5rem; justify-content: center; }

    .call-banner-icon { width: 70px; height: 70px; font-size: 1.75rem; }
    .call-banner h2 { font-size: 1.5rem; }

    .cookie-banner { left: 12px; right: 12px; bottom: 90px; padding: 1rem 1.25rem; }
}

/* =========================================
   Gallery piatti (restaurant-only section)
   ========================================= */
.gallery-section {
    background:
        linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0;
}

/* First item spans a 2x2 block to break the uniform grid */
.gallery-item-lg {
    grid-column: span 2;
    grid-row: span 2;
}

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

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

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1.25rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(0deg, rgba(41, 34, 25, 0.85) 0%, transparent 100%);
    transform: translateY(0.5rem);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* Gold hairline accent — the "elegant restaurant" cue */
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: border-color 0.35s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: var(--c-accent);
}

@media (max-width: 800px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
    .gallery-item-lg { grid-column: span 2; grid-row: span 2; }
    .gallery-item figcaption { opacity: 1; transform: translateY(0); font-size: 1rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
}
