/* ========================================
   PIZZERIA TIGELLERIA GRIMALDI
   Stile ispirato al template Marcello
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #0A798A;
    --color-primary-dark: #065E6B;
    --color-white: #FFFFFF;
    --color-deep: #064D57;
    --color-yellow: #DCAC39;
    --color-yellow-light: #FFF8E7;
    --color-yellow-mid: #E8C46A;
    --color-muted: #7AACB5;
    --color-dark-bg: #063A42;

    --font-heading: 'Oswald', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 70px;
    --top-bar-height: 40px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + var(--top-bar-height));
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-deep);
    background: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Utility ---------- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-deep);
    margin-bottom: 1.5rem;
}

.section-title--white {
    color: var(--color-white);
}

/* ---------- Reveal Animations ---------- */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed {
    opacity: 1;
    transform: translate(0);
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--color-yellow);
    color: var(--color-deep);
    height: var(--top-bar-height);
    font-size: 0.8rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar__social a {
    color: var(--color-deep);
    margin-right: 12px;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}

.top-bar__social a:hover {
    opacity: 0.7;
}

.top-bar__promo {
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.top-bar__right {
    font-size: 0.75rem;
}

.top-bar__right i {
    margin-right: 4px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--color-primary);
    z-index: 999;
    border-bottom: none;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(6, 58, 66, 0.25);
}

.navbar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.navbar__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.navbar__logo-img {
    height: 55px;
    width: auto;
}

.navbar__links {
    display: flex;
    gap: 2rem;
}

.navbar__links--left {
    margin-right: auto;
}

.navbar__links--right {
    margin-left: auto;
}

.navbar__links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-white);
    position: relative;
    padding-bottom: 2px;
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-yellow);
    transition: width 0.3s;
}

.navbar__links a:hover::after {
    width: 100%;
}

.navbar__phone {
    position: absolute;
    right: 2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-white);
    display: none;
}

.navbar__phone i {
    color: var(--color-yellow);
    margin-right: 4px;
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    position: absolute;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.navbar__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s;
    border-radius: 2px;
}

.navbar__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: calc(var(--top-bar-height) + var(--nav-height));
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(6, 58, 66, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    z-index: 998;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__links {
    text-align: center;
}

.mobile-menu__links li {
    margin-bottom: 1.2rem;
}

.mobile-menu__links a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu__links a:hover {
    color: var(--color-primary);
}

.mobile-menu__phone {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    margin-top: calc(var(--top-bar-height) + var(--nav-height));
    min-height: calc(100vh - var(--top-bar-height) - var(--nav-height));
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--top-bar-height) - var(--nav-height));
}

.hero__text {
    background: var(--color-yellow-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 4rem 6rem;
    position: relative;
}

.hero__accent {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--color-deep);
    margin-bottom: 2rem;
}

.hero__cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-deep);
    border: 2px solid var(--color-primary);
    padding: 14px 32px;
    transition: all 0.3s;
    align-self: flex-start;
}

.hero__cta:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.hero__arrow {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--color-deep);
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-8px); }
}

.hero__image {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero__pizza-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 70%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__pizza {
    width: 100%;
    height: auto;
    border-radius: 50%;
    will-change: transform;
    transition: transform 0.05s linear;
    filter: drop-shadow(0 0 40px rgba(220, 172, 57, 0.3));
    animation: pizzaEntry 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pizzaEntry {
    0% {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: rotate(10deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.hero__pizza-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 172, 57, 0.15) 0%, rgba(220, 172, 57, 0) 70%);
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 5;
    background: var(--color-primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    justify-content: center;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.hero__subscribe-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px 30px;
    transition: background 0.3s;
    z-index: 5;
}

.hero__subscribe-bar:hover {
    background: var(--color-primary-dark);
}

.hero__subscribe-bar i {
    margin-left: 8px;
}

/* ========================================
   STORYTELLING FARINE
   ======================================== */
.farine {
    background: var(--color-white);
    overflow: hidden;
}

.farine__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.farine__content {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.farine__accent {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.farine__content .section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.farine__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto;
}

.farine__intro {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-deep);
    margin-bottom: 2rem;
}

.farine__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.farine__card {
    background: var(--color-yellow-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.farine__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(6, 58, 66, 0.1);
}

.farine__card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.farine__card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-deep);
    margin-bottom: 0.4rem;
}

.farine__card-badge {
    display: inline-block;
    background: var(--color-yellow);
    color: var(--color-deep);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.farine__card-desc {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ========================================
   MENU
   ======================================== */
.menu {
    background: var(--color-yellow-light);
    padding: 6rem 0;
    overflow: hidden;
}

.menu__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.menu__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.menu__header--secondary {
    margin-top: 5rem;
}

.menu__accent {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.menu__header .section-title--white {
    color: var(--color-deep);
}

.menu__subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

/* ========================================
   PIZZA SECTIONS
   ======================================== */
.pizza-grid__category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-deep);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

/* --- Carousel (desktop: griglia 3 col, mobile: swipe) --- */
.pizza-carousel {
    margin-bottom: 3rem;
}

.pizza-carousel__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pizza-carousel__card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.4s;
    cursor: default;
}

.pizza-carousel__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(6, 58, 66, 0.12);
}

.pizza-carousel__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pizza-carousel__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    padding: 8px;
}

.pizza-carousel__card:hover .pizza-carousel__img img {
    transform: scale(1.05);
}

.pizza-carousel__info {
    padding: 1.5rem 1.5rem;
    text-align: center;
}

/* Icona pizza (rossa/bianca) */
.pizza-carousel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 0;
}

.pizza-carousel__icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Foglia vegetariana */
.pizza-carousel__veg {
    color: #4CAF50;
    font-size: 1.1rem;
    margin-left: 6px;
}

.pizza-carousel__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-deep);
    margin-bottom: 0.3rem;
}

.pizza-carousel__desc {
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Counter (hidden on desktop) */
.pizza-carousel__counter {
    display: none;
}

/* --- Le Classiche (box con immagine + lista) --- */
.pizza-classiche {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 3rem;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(6, 58, 66, 0.08);
}

.pizza-classiche__image {
    overflow: hidden;
}

.pizza-classiche__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pizza-classiche__list {
    padding: 2rem 2.5rem;
    column-count: 2;
    column-gap: 2rem;
}

.pizza-classiche__item {
    padding: 0.4rem 0;
    break-inside: avoid;
}

.pizza-classiche__name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    color: var(--color-deep);
}

.pizza-classiche__desc {
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* --- Cucina Box --- */
.cucina-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 3rem;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(6, 58, 66, 0.08);
}

.cucina-box__image {
    overflow: hidden;
    order: 2;
}

.cucina-box__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cucina-box__content {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
}

.cucina-box__item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-yellow-light);
}

.cucina-box__item:last-child {
    border-bottom: none;
}

.cucina-box__item--featured {
    padding-top: 0;
}

.cucina-box__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-deep);
    margin-bottom: 0.3rem;
}

.cucina-box__desc {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.cucina-box__note {
    display: inline-block;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--color-primary);
    margin: 0.4rem 0;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    background: var(--color-primary);
    overflow: hidden;
}

.cta-banner__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.cta-banner__text {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-banner__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-banner__text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 450px;
}

.cta-banner__text .hero__cta {
    color: var(--color-white);
    border-color: var(--color-white);
}

.cta-banner__text .hero__cta:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.cta-banner__image {
    overflow: hidden;
}

.cta-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   FILOSOFIA — Scroll Storytelling
   ======================================== */
.filosofia {
    background: #0a0a0a;
}

.filosofia__scroll-area {
    height: 600vh; /* 6 steps × 100vh */
    position: relative;
}

.filosofia__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* Progress bar */
.filosofia__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.filosofia__progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-yellow);
    transition: width 0.1s linear;
}

/* Each step */
.filosofia__step {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.filosofia__step.filosofia--active {
    opacity: 1;
    pointer-events: auto;
}

/* Background image */
.filosofia__img-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.filosofia__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: grayscale(0.2);
    transition: opacity 0.8s ease, transform 1.2s ease;
    transform: scale(1.05);
}

.filosofia--active .filosofia__img-wrap img {
    opacity: 0.55;
    transform: scale(1);
}

/* Text overlay */
.filosofia__text {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
                opacity 0.7s ease 0.15s;
}

.filosofia--active .filosofia__text {
    transform: translateY(0);
    opacity: 1;
}

.filosofia__text p {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.8vw, 1.9rem);
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.filosofia__text p:last-child {
    margin-bottom: 0;
}

/* Step indicator dots */
.filosofia__sticky::after {
    content: '';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 20;
}

.filosofia__sticky::before {
    content: '';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 120px;
    background: var(--color-yellow);
    border-radius: 2px;
    z-index: 21;
    transform-origin: top;
    scale: 1 0;
    transition: scale 0.3s ease;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-dark-bg);
    color: var(--color-white);
    overflow: hidden;
}

.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
}

.footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.footer__info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__contact h4,
.footer__hours h4,
.footer__social h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--color-yellow);
}

.footer__contact ul li,
.footer__hours ul li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.footer__contact ul li i {
    color: var(--color-yellow);
    margin-right: 8px;
    width: 16px;
}

.footer__social-icons {
    display: flex;
    gap: 1rem;
}

.footer__social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1rem;
    transition: all 0.3s;
}

.footer__social-icons a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.footer__map {
    width: 100%;
    line-height: 0;
}

.footer__map iframe {
    width: 100%;
    height: 300px;
    filter: grayscale(0.8) contrast(1.1);
    transition: filter 0.5s;
}

.footer__map iframe:hover {
    filter: grayscale(0) contrast(1);
}

.footer__bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Large Desktop */
@media (min-width: 1200px) {
    .navbar__phone {
        display: flex;
        position: static;
        align-items: center;
        margin-left: 2rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero__content {
        grid-template-columns: 1fr;
    }

    .hero__text {
        padding: 4rem 2rem;
        text-align: center;
        align-items: center;
    }

    .hero__cta {
        align-self: center;
    }

    .hero__arrow {
        display: none;
    }

    .hero__image {
        min-height: 450px;
    }

    .hero__pizza-wrapper {
        width: 60%;
    }

    /* Farine */
    .farine__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pizza carousel tablet */
    .pizza-carousel__track {
        grid-template-columns: repeat(2, 1fr);
    }

    .pizza-classiche {
        grid-template-columns: 1fr 1fr;
    }

    .pizza-classiche__list {
        padding: 1.5rem 1.5rem;
    }

    .cucina-box {
        grid-template-columns: 1fr 1fr;
    }

    /* Filosofia responsive */
    .filosofia__text p {
        font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    }

    .cta-banner__inner {
        grid-template-columns: 1fr;
    }

    .cta-banner__text {
        padding: 3rem 2rem;
        text-align: center;
        align-items: center;
    }

    .cta-banner__image {
        min-height: 300px;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .top-bar__right {
        display: none;
    }

    .navbar__links {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero__text {
        padding: 3rem 1.5rem;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__image {
        min-height: 350px;
    }

    .hero__pizza-wrapper {
        width: 65%;
    }

    .hero__subscribe-bar {
        display: none;
    }

    /* Filosofia mobile */
    .filosofia__sticky::after,
    .filosofia__sticky::before {
        display: none;
    }

    /* Farine */
    .farine__inner {
        padding: 1.5rem 1.5rem 4rem;
    }

    .farine__content {
        text-align: left;
    }

    .farine__desc {
        text-align: left;
    }

    .farine__intro {
        text-align: left;
    }

    .farine__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .farine__card {
        padding: 1.5rem 1rem;
    }

    /* Pizza category titles centered on mobile */
    .pizza-grid__category {
        display: block;
        text-align: center;
    }

    /* Testi pizze più grandi su mobile */
    .pizza-carousel__name {
        font-size: 1.15rem;
    }

    .pizza-carousel__desc {
        font-size: 0.95rem;
    }

    .pizza-classiche__name {
        font-size: 1.1rem;
    }

    .pizza-classiche__desc {
        font-size: 0.88rem;
    }

    .cucina-box__name {
        font-size: 1.15rem;
    }

    .cucina-box__desc {
        font-size: 0.95rem;
    }

    /* Pizza carousel: mobile 3-card view */
    .pizza-carousel {
        overflow: hidden;
        position: relative;
    }

    .pizza-carousel__track {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        min-height: 280px;
    }

    .pizza-carousel__card {
        position: absolute;
        width: 65%;
        max-width: 260px;
        opacity: 0;
        transform: scale(0.8);
        transition: transform 0.4s ease, opacity 0.4s ease;
        pointer-events: none;
        z-index: 0;
    }

    .pizza-carousel__card.carousel-active {
        position: relative;
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
        z-index: 3;
    }

    .pizza-carousel__card.carousel-prev {
        opacity: 0.35;
        transform: translateX(-80%) scale(0.82);
        z-index: 1;
        pointer-events: none;
    }

    .pizza-carousel__card.carousel-next {
        opacity: 0.35;
        transform: translateX(80%) scale(0.82);
        z-index: 1;
        pointer-events: none;
    }

    /* Counter */
    .pizza-carousel__counter {
        display: block;
        text-align: center;
        font-family: var(--font-heading);
        font-weight: 500;
        font-size: 0.85rem;
        color: var(--color-muted);
        margin-top: 1rem;
        letter-spacing: 0.05em;
    }

    /* Classiche: vertical layout on mobile */
    .pizza-classiche {
        grid-template-columns: 1fr;
    }

    .pizza-classiche__image {
        max-height: 250px;
    }

    .pizza-classiche__list {
        column-count: 1;
        padding: 1.5rem;
        text-align: left;
    }

    .filosofia__text {
        padding: 1.5rem;
    }

    .filosofia__text p {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }

    .menu {
        padding: 4rem 0;
    }

    /* Cucina box: vertical on mobile */
    .cucina-box {
        grid-template-columns: 1fr;
    }

    .cucina-box__image {
        order: 1;
        max-height: 220px;
    }

    .cucina-box__content {
        order: 2;
        padding: 1.2rem 1.5rem;
    }

    .cta-banner__title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .footer__top {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
    }

    .footer__map iframe {
        height: 220px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .top-bar__promo {
        font-size: 0.65rem;
    }

    .navbar__logo-img {
        height: 40px;
    }

    .hero__cta {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .farine__grid {
        grid-template-columns: 1fr 1fr;
    }

    .pizza-carousel__card {
        width: 60%;
        max-width: 220px;
    }

    .pizza-carousel__track {
        min-height: 250px;
    }

    .menu__item-name {
        font-size: 0.92rem;
    }

    .menu__item-price {
        font-size: 0.92rem;
    }
}
