/* Font Definitions (AM Majella & Citrine OTF) */
@font-face {
    font-family: 'AM Majella';
    src: url('assets/fonts/am-majella-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Citrine';
    src: url('assets/fonts/citrine-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Citrine';
    src: url('assets/fonts/citrine-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Citrine';
    src: url('assets/fonts/citrine-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Citrine';
    src: url('assets/fonts/citrine-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Citrine';
    src: url('assets/fonts/citrine-black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

:root {
    /* Brand Colors (Brand Manual L) */
    --color-soft-flour: #F9E4DE;
    --color-soft-flour-light: #F7D3CB;
    --color-soft-flour-white: #FAF1EE;
    --color-essential-white: #FFFFFF;
    
    --color-rustic-tomato: #EA4A26;
    --color-rustic-tomato-dark: #C63922;
    --color-rustic-tomato-deep: #96271B;
    
    --color-olive-grove: #183409;
    --color-olive-grove-medium: #132807;
    --color-olive-grove-dark: #0D1905;
    --color-olive-grove-deep: #060C02;
    
    --color-pure-black: #000000;
    --color-pure-white: #FFFFFF;
    
    /* Semantic Colors */
    --bg-primary: var(--color-soft-flour);
    --bg-secondary: var(--color-essential-white);
    --bg-dark: var(--color-olive-grove-dark);
    --text-primary: var(--color-olive-grove-medium);
    --text-muted: #53644A;
    --text-light: var(--color-soft-flour);
    --text-white: var(--color-essential-white);
    --accent: var(--color-rustic-tomato);
    
    /* Typography */
    --font-primary: 'Citrine', 'Outfit', sans-serif;
    --font-display: 'AM Majella', serif; /* AM Majella for the section titles */
    --font-display-alt: 'Syne', sans-serif;
    
    /* Spacing & Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --max-width: 1200px;
    --header-height: 140px;
}

/* Section Title Banner (AM Majella) */
.section-banner-title {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'AM Majella', serif;
    font-size: 8vw;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-olive-grove) !important;
    opacity: 1 !important;
    padding: 1.5rem 0 1rem 0;
    margin-bottom: 5rem;
    background-color: transparent;
    user-select: none;
    pointer-events: none;
    letter-spacing: -1px;
    position: relative; /* Enables the use of z-index */
    z-index: 2; /* Brings the text above the background graphic patterns */
}

.section-banner-title span {
    display: inline-block;
    padding-right: 2rem;
}

/* The scroll-linked marquee drift on these banners is driven by GSAP/ScrollTrigger
   in app.js (initBannerMarquee), so it works across every browser. */

@media (max-width: 768px) {
    .section-banner-title {
        font-size: 14vw; /* Enlarged from 10vw to 14vw for maximum visual impact */
        margin-bottom: 3.5rem;
        padding: 1rem 0 0.5rem 0;
    }
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Visually hidden but available to screen readers and search engines */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Highlight Text styles */
.highlight {
    font-weight: 700;
}

.highlight-light {
    color: var(--color-soft-flour-light);
    font-weight: 700;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
}

/* Background watermark text */
.section-bg-text {
    position: absolute;
    left: 5%;
    width: 90%;
    font-family: var(--font-display);
    font-size: 16vw;
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(24, 52, 9, 0.05); /* very light Olive Grove */
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -2px;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-olive-grove);
    color: var(--color-essential-white);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--color-rustic-tomato);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(234, 74, 38, 0.3);
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn-secondary {
    background-color: var(--color-essential-white);
    color: var(--color-olive-grove);
    border-color: rgba(24, 52, 9, 0.15);
}

.btn-secondary:hover {
    background-color: var(--color-soft-flour-white);
    border-color: var(--color-olive-grove);
    transform: translateY(-3px);
}

.btn-secondary-light {
    background-color: var(--color-essential-white);
    color: var(--color-olive-grove);
    border-color: var(--color-essential-white);
}

.btn-secondary-light:hover {
    background-color: var(--color-soft-flour);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--color-olive-grove);
    color: var(--color-essential-white);
    transform: translateY(-3px);
}

.btn-nav {
    padding: 0.6rem 1.8rem;
    font-size: 0.75rem;
    background-color: var(--color-olive-grove);
    color: var(--color-essential-white);
}

.btn-nav:hover {
    background-color: var(--color-rustic-tomato);
    color: var(--color-essential-white);
    transform: scale(1.05);
}

.btn-success {
    background-color: var(--color-olive-grove);
    color: var(--color-essential-white);
}

.btn-success:hover {
    background-color: var(--color-olive-grove-medium);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(24, 52, 9, 0.2);
}

.btn-whatsapp {
    background-color: transparent;
    color: var(--color-olive-grove-medium);
    border-color: var(--color-olive-grove-medium);
}

.btn-whatsapp:hover {
    background-color: var(--color-olive-grove-medium);
    color: var(--color-essential-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(19, 40, 7, 0.15);
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.mobile-only {
    display: none;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    height: 90px;
    background-color: rgba(249, 228, 222, 0.85); /* Glassmorphism Soft Flour */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(24, 52, 9, 0.05);
}

.header-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: block;
}

.header-logo {
    height: 95px;
    width: auto;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-logo {
    height: 60px;
}

.logo-light {
    display: none;
}

/* Header styles inside dark sections */
.main-header.light-nav .logo-dark {
    display: none;
}
.main-header.light-nav .logo-light {
    display: block;
}
.main-header.light-nav .nav-menu a {
    color: var(--color-soft-flour);
}
.main-header.light-nav .nav-menu a:hover {
    color: var(--color-essential-white);
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--color-olive-grove);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-rustic-tomato);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover {
    color: var(--color-rustic-tomato);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--color-olive-grove);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) - 40px); /* Reduced top padding to move the block upward */
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-section::before,
.values-section::before,
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/sfondo-section.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25; /* Faded at 25% (WCAG AAA Limit) for distinct graphic look */
    pointer-events: none;
    z-index: 0;
}

.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background-color: var(--color-rustic-tomato);
}

.shape-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: var(--color-olive-grove);
}

.hero-container {
    width: 100%;
    max-width: var(--max-width);
    margin: -30px auto 0 auto; /* Moved upward with a negative margin */
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-graphic-title {
    width: 100%;
    max-width: 440px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.graphic-title-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(24, 52, 9, 0.05));
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 440px; /* Same width as the graphic title block */
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-actions .btn {
    width: 100%;
}

.hero-actions .btn:nth-child(3) {
    grid-column: span 2;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 620px; /* Increased height to fit the enlarged pizzas */
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-pizza-container {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Main pizza (center) */
.pizza-main {
    width: 460px; /* Enlarged to 460px */
    left: -20px;
    top: 60px;
    z-index: 5;
}

.pizza-main .hero-pizza-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.16));
    animation: floatPizzaMain 6s ease-in-out infinite;
}

.pizza-main .pizza-shadow {
    position: absolute;
    width: 80%;
    height: 25px;
    background: rgba(24, 52, 9, 0.12);
    border-radius: 50%;
    bottom: -20px;
    left: 10%;
    filter: blur(10px);
    z-index: -1;
    transform: scale(0.9);
    animation: floatShadowMain 6s ease-in-out infinite;
    transition: var(--transition-smooth);
}

/* Secondary pizza 1 (top-right - pushed outward to avoid overlap) */
.pizza-secondary-1 {
    width: 360px; /* Scaled up to 360px */
    top: -90px;
    right: -100px;
    z-index: 3;
}

.pizza-secondary-1 .hero-pizza-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
    animation: floatPizzaSec1 7s ease-in-out infinite;
}

/* Secondary pizza 2 (bottom-right - pushed outward to avoid overlap) */
.pizza-secondary-2 {
    width: 410px; /* Scaled up to 410px (almost like the main one) */
    bottom: -80px;
    right: -60px;
    z-index: 6;
}

.pizza-secondary-2 .hero-pizza-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.2));
    animation: floatPizzaSec2 8s ease-in-out infinite;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    position: relative;
    padding: 0 0 10rem 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.about-section .section-bg-text {
    top: 10%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-badge {
    max-width: 140px;
    margin-bottom: 2rem;
}

.badge-img {
    width: 100%;
    height: auto;
}

.about-text {
    font-size: 2.2rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 300;
}

.about-text .highlight {
    font-weight: 700;
    color: var(--color-olive-grove);
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image .image-frame {
    width: 100%;
    max-width: 440px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(24, 52, 9, 0.08);
}

.chef-img {
    width: 100%;
    height: auto;
    transition: var(--transition-smooth);
}

.about-image:hover .chef-img {
    transform: scale(1.05);
}

/* ==========================================================================
   VALUES SECTION
   ========================================================================== */
.values-section {
    position: relative;
    padding: 0 0 8rem 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.values-section .section-bg-text {
    top: 5%;
}

.values-carousel-wrapper {
    overflow-x: auto;
    padding-bottom: 2rem;
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    scroll-snap-type: x mandatory;
    /* Hide the native horizontal scrollbar on every breakpoint; navigation is via
       the dots plus wheel/trackpad. Scroll and snap keep working. */
    scrollbar-width: none; /* Firefox */
}

.values-carousel-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
}

.values-scroller {
    display: flex;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
    width: max-content;
    padding-right: 2rem;
}

.value-card {
    background-color: var(--bg-secondary);
    padding: 2rem; /* Reduced padding to give more horizontal space */
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(24, 52, 9, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: row; /* Image on the left, text on the right */
    align-items: center;
    gap: 2rem; /* Reduced the inner gap */
    width: 620px; /* Fixed, generous width for desktop */
    flex-shrink: 0;
    scroll-snap-align: start;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(24, 52, 9, 0.08);
}

.value-image-mask {
    width: 170px; /* Reduced the image to increase the text space */
    height: 170px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.value-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3); /* Base zoom to align the board/subject with the edges */
    transition: var(--transition-smooth);
}

.value-card:nth-child(1) .value-img {
    object-position: 32% center; /* Centers the round board in the first card */
}

.value-card:nth-child(3) .value-img {
    transform: scale(1.15) !important; /* Slight base zoom keeping the position */
    object-position: 42% 20% !important; /* Moves the photo even further down */
}

.value-card:hover .value-img {
    transform: scale(1.42); /* Extra zoom on hover for the other cards */
}

.value-card:nth-child(3):hover .value-img {
    transform: scale(1.25) !important; /* Specific hover zoom for the third card */
}

.value-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.value-num {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-rustic-tomato);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.value-title {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em; /* Tighter, premium letter-spacing */
    color: var(--color-olive-grove);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    line-height: 1.05;
}

/* Custom sizing based on the word length */
.value-card:nth-child(1) .value-title { font-size: 2.3rem; } /* TRASPARENZA (12 letters) */
.value-card:nth-child(2) .value-title { font-size: 4.4rem; }  /* TEMPO (5 letters) */
.value-card:nth-child(3) .value-title { font-size: 2.7rem; }  /* TERRITORIO (10 letters) */
.value-card:nth-child(4) .value-title { font-size: 3.2rem; }  /* RISPETTO (8 letters) */

.value-text {
    font-size: 0.93rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.45;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(24, 52, 9, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dots .dot.active {
    background-color: var(--color-rustic-tomato);
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   LOCATION SECTION
   ========================================================================== */
.location-section {
    position: relative;
    padding: 0 0 10rem 0;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    overflow: hidden;
}

.location-section .section-bg-text {
    top: 10%;
    -webkit-text-stroke: 1.5px rgba(24, 52, 9, 0.05);
}

.location-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.location-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location-description {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 3rem;
    color: var(--color-olive-grove);
}

.address-box {
    display: flex;
    align-items: center; /* Vertically centers the icon against the two text lines on desktop */
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.icon-marker {
    width: 60px; /* Total height of the two text lines on desktop */
    height: 60px;
    color: var(--color-rustic-tomato);
    flex-shrink: 0;
}

.address-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.address-street {
    font-size: 2.3rem; /* Enlarged to emphasize the street */
    font-weight: 700;
    color: var(--color-olive-grove);
    line-height: 1.1;
    font-family: var(--font-primary);
}

.address-city {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-olive-grove-medium);
}

.location-info .btn {
    padding: 0.8rem 1.6rem; /* Made the CTA smaller */
    font-size: 0.78rem;
}

.location-image .image-frame {
    width: 100%;
    max-width: 450px;
    border-radius: 30px; /* Restored the rounded corners as before */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); /* Soft, elegant shadow */
}

.interior-img {
    width: 100%;
    height: auto; /* Natural scale without cropping */
    transition: var(--transition-smooth);
}

.location-image:hover .interior-img {
    transform: scale(1.05);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    position: relative;
    padding: 0 0 10rem 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.contact-section .section-bg-text {
    top: 15%;
}

.contact-container {
    display: flex;
    justify-content: center; /* Aligns the whole block horizontally centered */
    align-items: center; /* Aligns the two blocks vertically centered */
    gap: 6rem; /* Increased the desktop gap from 2.5rem to 6rem for more space */
    position: relative;
    z-index: 2;
}

.contact-graphic {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-graphic-img {
    height: 180px; /* Resized from 240px to 180px for desktop */
    width: auto; /* Keeps the aspect ratio */
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(24, 52, 9, 0.05));
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 530px; /* Constrains the text width for visual consistency */
    flex-shrink: 0;
}

.contact-text {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 3rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-actions .btn {
    min-width: 200px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-olive-grove);
    color: var(--color-soft-flour-white);
    padding: 6rem 0 0 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start !important; /* Forces all columns to align at the top at the same height */
    margin-bottom: 5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 75px; /* Optimized height now that the logo has no vertical empty space in the SVG */
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-info {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.8;
}

.brand-owner {
    font-weight: 700;
    font-size: 1rem;
    opacity: 1;
    margin-bottom: 0.5rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-nav a {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--color-soft-flour);
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-essential-white);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centered against the logos on desktop */
}

.social-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-essential-white);
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icon-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(249, 228, 222, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-soft-flour);
    transition: var(--transition-smooth);
}

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

.social-icon-link:hover {
    background-color: var(--color-soft-flour);
    color: var(--color-olive-grove);
    border-color: var(--color-soft-flour);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(249, 228, 222, 0.05);
    padding: 2rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: var(--color-essential-white);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatPizzaMain {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes floatShadowMain {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(0.8); opacity: 0.35; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes floatPizzaSec1 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes floatPizzaSec2 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(4deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Scroll-triggered animation classes */
.reveal-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

@media (max-width: 1024px) {
    /* General spacing */
    .about-section, .location-section, .contact-section {
        padding: 0 0 6rem 0;
    }
    
    .about-text, .location-description, .contact-text {
        font-size: 1.8rem;
    }
    
    /* Hero section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduced the gap to bring the pizza closer */
        text-align: center;
        padding-top: 2rem; /* Reduced the top padding */
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        margin: 0 auto;
    }
    
    .hero-image-wrapper {
        max-width: 300px; /* Reduced the container */
        height: 300px;
        margin: -2.5rem auto 0 auto; /* Negative margin to pull the pizza upward */
    }
    
    .pizza-secondary-1,
    .pizza-secondary-2 {
        display: none !important;
    }
    
    .pizza-main {
        position: relative;
        width: 100%;
        max-width: 270px; /* Resized the main pizza */
    }
    
    /* Values section inherits desktop horizontal slider layout */
}

@media (max-width: 768px) {
    :root {
        --header-height: 100px;
    }
    
    .header-logo {
        height: 90px; /* Enlarged the logo on mobile from 70px */
    }
    
    .main-header.scrolled {
        height: 85px; /* Enlarged the scrolled height from 75px */
    }
    
    .main-header.scrolled .header-logo {
        height: 60px; /* Enlarged the scrolled logo from 52px */
    }
    
    /* Show mobile hamburger navigation */
    .hamburger {
        display: flex;
        width: 32px; /* Enlarged hamburger from 24px */
        height: 22px; /* Enlarged hamburger from 18px */
    }
    
    .hamburger span {
        height: 2.5px; /* Slightly thicker, more visible lines */
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-soft-flour);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1005;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .header-cta {
        display: none; /* Hide the top CTA on mobile by default */
    }
    
    .show-sticky-cta .header-cta {
        display: block !important;
        margin-right: 1.2rem; /* Space between the book button and the hamburger */
        z-index: 1002;
    }
    
    .show-sticky-cta .header-cta .btn-nav {
        padding: 0.5rem 1.1rem !important; /* Smaller and more compact in the mobile header */
        font-size: 0.72rem !important;
        border-radius: 20px !important;
        white-space: nowrap;
    }
    
    /* Hamburger Transform on Open */
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Sections */
    .about-container, .location-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        text-align: center;
    }
    
    .about-content, .location-info, .contact-details {
        align-items: center;
    }
    
    .address-box {
        justify-content: center;
        align-items: center; /* Centered on mobile */
        gap: 1.1rem;
    }
    
    .icon-marker {
        width: 38px !important;
        height: 38px !important;
        margin-top: 0 !important; /* Removed top margin on mobile */
    }
    
    .address-text-group {
        align-items: flex-start;
        text-align: left; /* Flush left */
    }
    
    .address-street {
        font-size: 1.7rem;
        text-align: left;
    }
    
    .address-city {
        font-size: 1.0rem;
        text-align: left;
    }
    
    .about-image, .location-image {
        order: 2; /* Move images below text on mobile */
    }
    
    /* Values carousel slider on mobile */
    .values-section {
        padding: 0 0 3.5rem 0; /* Reduced bottom padding on mobile */
    }
    
    .carousel-dots {
        margin-top: 1.5rem; /* Dots moved closer to the cards on mobile */
    }

    .values-scroller {
        gap: 1.5rem;
    }
    
    .value-card {
        width: 280px;
        flex-direction: column; /* Vertical spacing */
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        scroll-snap-align: center;
    }
    
    .value-image-mask {
        width: 100%;
        height: 180px;
    }
    
    /* Resize value titles on mobile so they don't overflow the cards */
    .value-card:nth-child(1) .value-title { font-size: 1.4rem; }
    .value-card:nth-child(2) .value-title { font-size: 2.7rem; }
    .value-card:nth-child(3) .value-title { font-size: 1.6rem; }
    .value-card:nth-child(4) .value-title { font-size: 2.0rem; }
    
    /* Contact graphic overrides for mobile */
    .contact-graphic {
        align-self: center;
        height: auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 2rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .book-graphic-img {
        height: auto;
        width: 100%;
        max-height: none;
    }
    
    /* Footer layout */
    .footer-container {
        flex-direction: column;
        align-items: center !important; /* Center the columns horizontally, overriding the desktop important */
        gap: 3rem;
        text-align: center;
    }
    
    .footer-nav ul {
        align-items: center; /* Center the vertical menu links */
        text-align: center;
    }
    
    .footer-brand, .footer-social {
        align-items: center;
        text-align: center;
    }
    
    .footer-info {
        text-align: center; /* Center the legal text under the logo */
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline;
    }

    /* Show only "DELIVEROO" on the order button on mobile */
    .deliveroo-prefix {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-text, .location-description, .contact-text {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        grid-template-columns: 1fr;
    }
    
    .hero-actions .btn:nth-child(3) {
        grid-column: span 1;
    }
    
    .contact-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .address-text {
        font-size: 0.95rem;
    }
}
