/* ==========================================================================
   Il Saraceno - Ristorante a Lampedusa
   Foglio di Stile Unificato
   ========================================================================== */

/* ==========================================================================
   1. Variabili e Setup
   ========================================================================== */

:root {
    /* Colori ispirati alla Sicilia, al mare e ai motivi saraceni */
    --ocra: #D6AD60;
    --terracotta: #A45C40;
    --crema: #F6F4F1;
    --blu-mare: #1D4E89;
    --verde-oliva: #5C6B5A;
    --moro: #332B26;
    
    /* Font */
    --forum: "Forum", serif;
    --nunito: "Nunito Sans", sans-serif;
    
    /* Spaziature */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Transizioni */
    --transition: all 0.3s ease;
}

/* Dark mode con colori bilanciati */
@media (prefers-color-scheme: dark) {
    :root {
        --ocra: #E8C584;
        --terracotta: #C97459;
        --crema: #1A1614;
        --blu-mare: #5A8BC4;
        --verde-oliva: #9BA69B;
        --moro: #F0EBE6;
    }
}

/* ==========================================================================
   2. Reset e Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--nunito);
    color: var(--moro);
    background-color: var(--crema);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    font-size: 16px;
}

/* Skip to content per accessibilità */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 2rem;
    background-color: var(--moro);
    color: var(--crema);
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

.skip-to-content:focus {
    left: 0;
    top: 0;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

@font-face {
    font-family: 'Nunito Sans';
    src: url('fonts/NunitoSans-Regular.woff2') format('woff2'),
         url('fonts/NunitoSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('fonts/NunitoSans-Regular.woff2') format('woff2'),
         url('fonts/NunitoSans-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Forum';
    src: url('fonts/Forum-Regular.woff2') format('woff2'),
         url('fonts/Forum-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--forum);
    font-weight: normal;
    line-height: 1.2;
}

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

a:hover {
    color: var(--ocra);
}

/* Focus visible per accessibilità */
:focus-visible {
    outline: 3px solid var(--blu-mare);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(246, 244, 241, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 0.5rem 2rem;
}

/* Dark mode header */
@media (prefers-color-scheme: dark) {
    header {
        background-color: rgba(26, 22, 20, 0.9);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.logo {
    font-family: var(--forum);
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--terracotta);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo svg {
    height: clamp(2.5rem, 5vw, 3.5rem);
    width: auto;
}

.logo .text {
    display: flex;
    flex-direction: column;
}

.logo .subtitle {
    font-size: 0.8rem;
    color: var(--moro);
    font-family: var(--nunito);
    letter-spacing: 1px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
}

nav ul li a {
    color: var(--moro);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--terracotta);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-button {
    display: none;
}

.lang-switch {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--moro);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.lang-switch:hover {
    color: var(--terracotta);
}

/* Menu Mobile e Tablet */
@media (max-width: 1024px) {
    .header-container {
        position: relative;
    }
    
    .menu-button {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--moro);
        position: relative;
        z-index: 102;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        order: 3;
    }
    
    .menu-button .hamburger {
        position: relative;
        width: 24px;
        height: 20px;
    }
    
    .menu-button .hamburger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--moro);
        transition: all 0.3s ease;
    }
    
    .menu-button .hamburger span:nth-child(1) {
        top: 0;
    }
    
    .menu-button .hamburger span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .menu-button .hamburger span:nth-child(3) {
        bottom: 0;
    }
    
    .menu-button.active .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-button.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-button.active .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--crema);
        transition: right 0.3s ease;
        z-index: 101;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    nav.open {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        height: 100%;
        gap: 1.5rem;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        display: block;
        width: 100%;
    }
    
    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid rgba(74, 64, 58, 0.2);
        width: 100%;
    }
    
    .mobile-menu-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-actions .lang-switch {
        width: 100%;
        padding: 1rem;
        background-color: rgba(74, 64, 58, 0.1);
        border-radius: 50px;
        justify-content: center;
    }
    
    .header-actions {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .header-actions .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .header-actions .lang-switch {
        display: none !important;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-actions {
        display: none;
    }
    
    .menu-overlay {
        display: none;
    }
}

/* ==========================================================================
   5. Hero Sections
   ========================================================================== */

/* Hero principale della homepage */
.hero {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--moro);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.hero-tagline {
    display: inline-block;
    font-family: var(--nunito);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--ocra);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 4px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6), 0 2px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.btn-hero-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    box-shadow: none;
}

.btn-hero-outline:hover {
    background-color: white;
    color: var(--moro);
    border-color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-indicator span::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* Hero per le altre pagine */
.page-hero {
    margin-top: 5rem;
    height: 50vh;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 64, 58, 0.8), rgba(214, 173, 96, 0.3));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.page-hero-title {
    font-family: var(--forum);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hero specifiche per pagine */
.menu-hero {
    background-color: var(--moro);
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    background-color: var(--terracotta);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.35s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(164, 92, 64, 0.25);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--ocra);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 173, 96, 0.35);
    color: white;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--terracotta);
    border: 2px solid var(--terracotta);
}

.btn-secondary:hover {
    background-color: var(--terracotta);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--terracotta);
    border: 2px solid white;
}

.btn-white:hover {
    background-color: transparent;
    color: white;
}

/* ==========================================================================
   7. Intro Section
   ========================================================================== */

.intro {
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--terracotta);
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(50px, 10vw, 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--terracotta), var(--ocra));
}

.intro-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.intro-stat {
    text-align: center;
    padding: var(--spacing-lg);
}

.intro-stat-number {
    display: block;
    font-family: var(--forum);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: normal;
    color: var(--terracotta);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.intro-stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--verde-oliva);
    font-weight: 600;
}

.certifications {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.certification-img {
    height: clamp(3rem, 6vw, 4rem);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.certification-img:hover {
    opacity: 1;
}

/* ==========================================================================
   8. About Section
   ========================================================================== */

.about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
    background-color: rgba(214, 173, 96, 0.08);
}

@media (min-width: 768px) {
    .about {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.about-content {
    padding: clamp(1rem, 3vw, 3rem);
}

.about-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--terracotta);
    margin-bottom: var(--spacing-lg);
}

.about-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.signature {
    font-family: var(--forum);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--terracotta);
    text-align: right;
    margin-top: var(--spacing-lg);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    order: -1;
}

@media (min-width: 768px) {
    .about-image {
        order: 0;
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ==========================================================================
   9. Menu Preview
   ========================================================================== */

.menu-preview {
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
    text-align: center;
    background-color: var(--crema);
}

/* menu-preview dark mode: gestito da var(--crema) */

.dishes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: var(--spacing-xl);
}

.dish {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dish:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.dish img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.dish-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    padding: var(--spacing-lg) var(--spacing-lg) calc(var(--spacing-lg) + 0.25rem);
    text-align: left;
}

.dish-name {
    font-family: var(--forum);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.dish-desc {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    opacity: 0.9;
}

/* ==========================================================================
   10. Gallery Preview
   ========================================================================== */

.gallery-preview {
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
    text-align: center;
    background-color: rgba(246, 244, 241, 0.5);
}

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

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

/* ==========================================================================
   11. Testimonials
   ========================================================================== */

.testimonials {
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
    background-color: rgba(29, 78, 137, 0.04);
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
}

.testimonial {
    padding: clamp(2.5rem, 4vw, 3.5rem);
    background-color: var(--crema);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    border-top: 3px solid var(--ocra);
}

@media (prefers-color-scheme: dark) {
    .testimonial {
        background-color: #1A1614;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-top-color: var(--ocra);
    }

    /* Backgrounds leggeri per dark mode */
    .testimonials {
        background-color: rgba(29, 78, 137, 0.08);
    }

    .about {
        background-color: rgba(214, 173, 96, 0.05);
    }

    .gallery-preview {
        background-color: rgba(26, 22, 20, 0.5);
    }

    /* Ombre più marcate in dark mode */
    .gallery-item,
    .dish,
    .family-member,
    .menu-item {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    }

    .dish:hover {
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
    }

    .contact-map {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }

    .contact-icon {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }

    /* Story page */
    .timeline-content {
        background-color: rgba(26, 22, 20, 0.5);
    }

    .heritage-dish {
        background-color: rgba(40, 34, 30, 0.6);
        border-color: rgba(214, 173, 96, 0.2);
    }

    /* Buttons */
    .btn {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .btn:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}

.testimonial-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    position: relative;
    font-style: italic;
}

.testimonial-text::before, 
.testimonial-text::after {
    content: '"';
    font-family: var(--forum);
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: var(--ocra);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--terracotta);
    font-size: 1.1rem;
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--moro);
    opacity: 0.8;
}

.rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: var(--spacing-md);
    color: var(--ocra);
    font-size: 1.2rem;
}

/* Splide Testimonial Slider Customization */
.splide__track {
    padding: 2rem 0;
}

.splide__slide {
    display: flex;
    justify-content: center;
}

.splide__arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.splide__arrow {
    background: var(--terracotta);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    opacity: 0.8;
}

.splide__arrow:hover {
    background: var(--ocra);
    transform: scale(1.1);
    opacity: 1;
}

.splide__arrow svg {
    fill: white;
    width: 20px;
    height: 20px;
}

.splide__arrow--prev {
    left: 0;
}

.splide__arrow--next {
    right: 0;
}

.splide__pagination {
    bottom: -1rem;
}

.splide__pagination__page {
    background: var(--moro);
    opacity: 0.3;
    width: 8px;
    height: 8px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
    background: var(--terracotta);
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .splide__arrow {
        display: none;
    }
}

/* ==========================================================================
   12. Contact Section
   ========================================================================== */

.contact {
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .contact {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    padding-right: clamp(0, 3vw, 3rem);
}

.contact-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--terracotta);
    margin-bottom: var(--spacing-lg);
}

.contact-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    margin-top: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: var(--terracotta);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(164, 92, 64, 0.2);
}

.contact-value {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.contact-map {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   13. Gallery Page Styles
   ========================================================================== */

.gallery-content {
    padding: var(--spacing-xxl) 0;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--moro);
    border: 2px solid var(--moro);
    border-radius: 25px;
    font-family: var(--nunito);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Gallery Grid - Pagina Galleria */
.gallery-content .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: var(--spacing-xxl);
}

.gallery-content .gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-content .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-content .gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 2;
}

.gallery-content .gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 2;
}

.gallery-content .gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: 0.5;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.gallery-content .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-family: var(--forum);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.gallery-zoom-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--terracotta);
}

.gallery-content .gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Video Section */
.video-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, rgba(214, 173, 96, 0.1), rgba(29, 78, 137, 0.1));
}

.video-section-title {
    font-family: var(--forum);
    font-size: 2.5rem;
    color: var(--terracotta);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.video-section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--ocra);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.video-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: var(--spacing-lg);
}

.video-title {
    font-family: var(--forum);
    font-size: 1.4rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-sm);
}

.video-description {
    font-size: 0.95rem;
    color: var(--moro);
    line-height: 1.6;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background-color: var(--terracotta);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background-color: var(--terracotta);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
}

.lightbox-title {
    font-family: var(--forum);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lightbox-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Statistics Section */
.stats-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--crema);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    padding: var(--spacing-lg);
}

.stat-number {
    font-family: var(--forum);
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--verde-oliva);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   14. Storia Page Styles
   ========================================================================== */

/* Timeline Section */
.timeline-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--crema);
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--terracotta), var(--ocra));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xxl);
    padding-left: 3rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--terracotta);
    border-radius: 50%;
    border: 3px solid var(--crema);
    z-index: 2;
}

.timeline-year {
    font-family: var(--forum);
    font-size: 2rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.timeline-content {
    background-color: rgba(246, 244, 241, 0.5);
    padding: var(--spacing-xl);
    border-radius: 15px;
    border-left: 4px solid var(--ocra);
}

.timeline-title {
    font-family: var(--forum);
    font-size: 1.8rem;
    color: var(--blu-mare);
    margin-bottom: var(--spacing-md);
}

.timeline-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--moro);
    margin-bottom: var(--spacing-md);
}

/* Story Content Sections */
.story-section {
    padding: var(--spacing-xxl) 0;
}

.story-section:nth-child(even) {
    background-color: rgba(214, 173, 96, 0.05);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.story-content h2 {
    font-family: var(--forum);
    font-size: 2.5rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.story-content h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--ocra);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--moro);
    margin-bottom: var(--spacing-lg);
}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Family Section */
.family-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, rgba(29, 78, 137, 0.1), rgba(121, 132, 120, 0.1));
}

.family-grid {
    display: grid;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.family-grid-founders {
    grid-template-columns: repeat(2, minmax(280px, 400px));
    justify-content: center;
}

.family-grid-generation {
    grid-template-columns: repeat(3, minmax(250px, 380px));
    justify-content: center;
}

.family-member {
    background-color: var(--crema);
    padding: var(--spacing-xl);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.family-member:hover {
    transform: translateY(-10px);
}

.family-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-lg);
    overflow: hidden;
    border: 4px solid var(--ocra);
}

.family-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.family-name {
    font-family: var(--forum);
    font-size: 1.5rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-sm);
}

.family-role {
    font-size: 1rem;
    color: var(--verde-oliva);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.family-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--moro);
}

/* Menu Heritage Section */
.menu-heritage {
    padding: var(--spacing-xxl) 0;
    background-color: var(--crema);
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.heritage-dish {
    background-color: var(--crema);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border-left: 4px solid var(--terracotta);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 64, 58, 0.1);
}

.heritage-dish:hover {
    background-color: rgba(214, 173, 96, 0.1);
    transform: translateX(10px);
}

.heritage-dish h3 {
    font-family: var(--forum);
    font-size: 1.5rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-sm);
}

.heritage-dish p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--moro);
}

/* Call to Action */
.cta-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--terracotta), var(--ocra));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.cta-title {
    font-family: var(--forum);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   15. Menu Page Styles
   ========================================================================== */

.menu-content {
    padding: var(--spacing-xxl) var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: var(--spacing-xxl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s ease-out forwards;
}

.menu-section-title {
    font-family: var(--forum);
    font-size: 2.5rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.menu-section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--ocra);
}

.menu-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--verde-oliva);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.menu-item {
    background-color: var(--crema);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--ocra);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.menu-item-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: var(--spacing-md);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.menu-item-name {
    font-family: var(--forum);
    font-size: 1.4rem;
    color: var(--moro);
    flex: 1;
    margin-right: var(--spacing-md);
}

.menu-item-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--terracotta);
    white-space: nowrap;
}

.menu-item-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--moro);
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.menu-item-allergens {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px dotted rgba(74, 64, 58, 0.2);
}

.allergen-label {
    font-size: 0.85rem;
    color: var(--verde-oliva);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.allergen-list {
    font-size: 0.85rem;
    color: var(--moro);
    opacity: 0.8;
}

.allergen-icon {
    margin-right: 0.25rem;
}

.menu-item-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(214, 173, 96, 0.2);
    color: var(--verde-oliva);
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tag.spicy {
    background-color: rgba(164, 92, 64, 0.2);
    color: var(--terracotta);
}

.tag.vegetarian {
    background-color: rgba(121, 132, 120, 0.2);
    color: var(--verde-oliva);
}

.tag.signature {
    background-color: rgba(29, 78, 137, 0.2);
    color: var(--blu-mare);
}

/* Wine Section */
.wine-section {
    background-color: rgba(29, 78, 137, 0.05);
    padding: var(--spacing-xxl);
    margin: var(--spacing-xxl) calc(-1 * var(--spacing-xl));
}

.wine-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.wine-category {
    text-align: center;
}

.wine-category-title {
    font-family: var(--forum);
    font-size: 1.8rem;
    color: var(--blu-mare);
    margin-bottom: var(--spacing-lg);
}

.wine-list {
    text-align: left;
}

.wine-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px dotted rgba(29, 78, 137, 0.2);
}

.wine-item:last-child {
    border-bottom: none;
}

.wine-name {
    font-size: 1rem;
    color: var(--moro);
}

.wine-info {
    font-size: 0.85rem;
    color: var(--verde-oliva);
    font-style: italic;
}

.wine-price {
    font-weight: 600;
    color: var(--terracotta);
    white-space: nowrap;
}

/* Special Banner */
.special-banner {
    background: linear-gradient(135deg, var(--terracotta), var(--ocra));
    color: white;
    padding: var(--spacing-xl);
    border-radius: 15px;
    text-align: center;
    margin: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.special-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.special-banner-content {
    position: relative;
    z-index: 2;
}

.special-banner-title {
    font-family: var(--forum);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.special-banner-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* ==========================================================================
   16. Contatti Page Styles
   ========================================================================== */

/* Main Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xxl) var(--spacing-xl);
}

/* Contact Info Section */
.contact-info-section {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: rgba(246, 244, 241, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-detail:hover {
    background-color: rgba(214, 173, 96, 0.1);
    transform: translateX(5px);
}

.contact-detail .contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--terracotta);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.contact-content h3 {
    font-family: var(--forum);
    font-size: 1.2rem;
    color: var(--moro);
    margin-bottom: 0.5rem;
}

.contact-content p {
    font-size: 1rem;
    color: var(--verde-oliva);
    line-height: 1.6;
}

.contact-content a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: var(--ocra);
    text-decoration: underline;
}

/* Hours Section */
.hours-section {
    background-color: rgba(29, 78, 137, 0.05);
    padding: var(--spacing-xl);
    border-radius: 15px;
    margin-top: var(--spacing-lg);
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px dotted rgba(29, 78, 137, 0.2);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: var(--blu-mare);
}

.hours-item .time {
    color: var(--moro);
}

.hours-item .closed {
    color: #dc3545;
    font-style: italic;
}

.special-note {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: rgba(214, 173, 96, 0.2);
    border-radius: 10px;
    text-align: center;
    font-style: italic;
    color: var(--verde-oliva);
}

/* Contact Form */
.contact-form-section {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--moro);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(74, 64, 58, 0.2);
    border-radius: 10px;
    font-family: var(--nunito);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(246, 244, 241, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--terracotta);
    background-color: white;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.form-note {
    font-size: 0.9rem;
    color: var(--verde-oliva);
    margin-top: var(--spacing-md);
    font-style: italic;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.map-section {
    padding: var(--spacing-xxl) 0;
    background-color: white;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.map-wrapper {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: var(--spacing-xl);
    pointer-events: none;
}

.map-overlay h3 {
    font-family: var(--forum);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Social Section */
.social-section {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xxl);
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--moro);
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: var(--moro);
}

.social-card svg {
    width: 30px;
    height: 30px;
    margin-right: var(--spacing-md);
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

footer {
    background-color: var(--moro);
    color: white;
    padding: clamp(3rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem) clamp(1.5rem, 3vw, 2rem);
}

@media (prefers-color-scheme: dark) {
    footer {
        background-color: #0A0807;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--forum);
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--ocra);
    margin-bottom: var(--spacing-md);
    display: block;
}

.footer-desc {
    font-size: clamp(0.875rem, 1.5vw, 0.9rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-family: var(--forum);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--ocra);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--ocra);
}

.footer-hours {
    list-style: none;
}

.footer-hours li {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(0.875rem, 1.5vw, 0.9rem);
    opacity: 0.9;
}

.footer-hours .day {
    font-weight: 600;
    color: var(--ocra);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--ocra);
    transform: translateY(-3px);
}

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

.footer-bottom {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(1rem, 2vw, 1.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    opacity: 0.8;
}

.footer-links {
    margin-top: var(--spacing-sm);
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    font-size: clamp(0.75rem, 1.2vw, 0.8rem);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--ocra);
}

.developer-credit {
    margin-top: var(--spacing-md);
    font-size: clamp(0.75rem, 1.2vw, 0.8rem);
    opacity: 0.7;
}

.developer-credit a {
    color: var(--ocra);
    text-decoration: none;
}

.developer-credit a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   18. Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* ==========================================================================
   19. Responsive Utilities
   ========================================================================== */

/* Tablet adjustments */
@media (max-width: 1024px) {
    .hero-content {
        width: 100%;
        transform: translate(-50%, -50%) !important;
    }

    .gallery-content .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-content .gallery-item.large,
    .gallery-content .gallery-item.wide {
        grid-column: span 1;
        aspect-ratio: 1;
    }
    
    .gallery-content .gallery-item.tall {
        grid-row: span 1;
        aspect-ratio: 1;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
    }

    .menu-content {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .wine-categories {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }

    .header-actions {
        display: none;
    }

    .hero-content {
        width: 100%;
        left: inherit;
        transform: translate(0%, -30%) !important;
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .dishes {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .family-grid-founders,
    .family-grid-generation {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-content .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .lightbox-close {
        top: -40px;
        right: -40px;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-info {
        bottom: -80px;
        padding: 0 1rem;
    }

    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .story-hero-title {
        font-size: 2rem;
    }
    
    .story-hero-subtitle {
        font-size: 1rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-item::before {
        left: -1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }

    .menu-hero-title {
        font-size: 2rem;
    }
    
    .menu-hero-subtitle {
        font-size: 1rem;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .menu-section-title {
        font-size: 2rem;
    }
    
    .special-banner {
        margin: var(--spacing-xl) 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .map-wrapper {
        height: 300px;
    }

    .immediate-contact {
        display: none;
    }

    .story-narrative {
        padding: 0;
    }

    .story-container {
        padding: 0 var(--spacing-lg);
    }
}

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

/* ==========================================================================
   20. Accessibility
   ========================================================================== */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --ocra: #FFD700;
        --terracotta: #FF6347;
        --blu-mare: #0066CC;
        --verde-oliva: #228B22;
    }
    
    :focus-visible {
        outline-width: 4px;
    }
}

/* ==========================================================================
   21. Print Styles
   ========================================================================== */

@media print {
    header,
    footer,
    .btn,
    .certifications,
    .menu-button,
    .lang-switch,
    .lightbox,
    .gallery-filters,
    .filter-btn,
    .special-banner,
    .social-section,
    .cta-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    .hero,
    .page-hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    .hero-content,
    .page-hero-content {
        position: static;
        transform: none;
        color: black;
    }
    
    .section-title {
        color: black;
        page-break-after: avoid;
    }
    
    .dish,
    .menu-item,
    .timeline-item,
    .family-member,
    .heritage-dish {
        page-break-inside: avoid;
    }
    
    .testimonial {
        page-break-inside: avoid;
    }

    .menu-item-image,
    .gallery-item img,
    .story-image img,
    .family-photo img {
        display: none;
    }
}



