/* ===================================
   PIZZIAMO?! - STYLE.CSS
   Mobile-First Responsive Design
   =================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body menu open state */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Lazy loading images */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #f5f5f5;
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image.error {
    opacity: 0.5;
    background-color: #ffeaea;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: #fffaf5;
    color: #333;
    line-height: 1.6;
    font-size: var(--font-body);
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* CSS VARIABLES */
:root {
    /* Colors */
    --primary: #e50000;
    --primary-dark: #c50000;
    --primary-light: rgba(229, 0, 0, 0.1);
    --secondary: #ffcd00;
    --secondary-dark: #e6b800;
    --secondary-light: rgba(255, 205, 0, 0.2);
    --primary-bright: #ff3b3b;
    --light: #fff8ee;
    --dark: #2c2c2c;
    --gray: #f5f5f5;
    --gray-light: #f8f9fa;
    --gray-dark: #666;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 50px;
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 15px;
    --border-radius-xl: 25px;
    --border-radius-circle: 50%;
    
    /* Shadows */
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 15px rgba(229, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Container */
    --container-width: 1200px;
    
    /* Typography Scale - Desktop */
    --font-h1: 3rem;           /* 48px - Page titles */
    --font-h2: 2.5rem;         /* 40px - Section titles */
    --font-h3: 2rem;           /* 32px - Sub-section titles */
    --font-h4: 1.5rem;         /* 24px - Card titles */
    --font-h5: 1.25rem;        /* 20px - Small titles */
    --font-body-lg: 1.125rem;  /* 18px - Large body text */
    --font-body: 1rem;         /* 16px - Normal body text */
    --font-body-sm: 0.875rem;  /* 14px - Small body text */
    --font-caption: 0.75rem;   /* 12px - Very small text */
}

/* UTILITY CLASSES */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 min(5%, 20px);
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
    box-shadow: 0 6px 15px rgba(255, 205, 0, 0.25);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 205, 0, 0.3);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.2rem;
    width: 100%;
}

/* HEADER */
header {
    background-color: var(--light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 200;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-contact-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#logo-container {
    height: 60px;
    width: auto;
    display: flex;
    align-items: center;
}

#logo-container img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: var(--font-body-sm);
    color: var(--dark);
}

.address, .phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    color: var(--primary);
    flex-shrink: 0;
    font-style: normal;
    /* Touch targets minimi per elementi cliccabili */
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Touch targets espansi per icone cliccabili */
.icon[onclick],
a .icon,
button .icon {
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

/* Admin trigger con allineamento speciale */
.icon.admin-access-trigger {
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Regole generali per touch targets mobile */
@media (max-width: 768px) {
    /* Assicura che tutti i pulsanti abbiano touch targets adeguati */
    button,
    .btn,
    [role="button"],
    input[type="button"],
    input[type="submit"],
    input[type="reset"] {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Links cliccabili */
    a:not(.btn) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    /* Elementi interattivi generici */
    [onclick],
    [role="button"],
    .clickable {
        min-width: 44px;
        min-height: 44px;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Previeni zoom automatico iOS su form inputs - FONDAMENTALE */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important; /* iOS non fa zoom se >= 16px */
        min-height: 44px;
    }
    
    /* Font size minimo per leggibilità mobile - Mai sotto 14px */
    body,
    .small-text,
    .text-sm,
    .contact-info span,
    .breadcrumb {
        font-size: 14px !important;
        line-height: 1.4;
    }
}

/* MAIN NAVIGATION */
.header-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 0 var(--spacing-md);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff4d1 0%, #ffe39a 100%);
    border: 1px solid rgba(255, 205, 0, 0.45);
    text-align: center;
    box-shadow: 0 8px 18px rgba(255, 59, 59, 0.08);
    flex: 0 1 200px;
}

.header-notice-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--primary);
    line-height: 1.1;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition-normal);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line {
    width: 28px;
    height: 4px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: var(--transition-normal);
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    padding: 0;
    z-index: 1000;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    transform: translate3d(0, 0, 0);
}

/* Mobile nav header */
.mobile-nav-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    text-align: center;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.mobile-nav-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
}

.mobile-nav-header h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.mobile-nav-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Navigation links */
.mobile-nav-content {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
}

.mobile-nav li {
    margin-bottom: var(--spacing-xs);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: var(--spacing-md) var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
    border-left: 4px solid transparent;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary);
    background-color: var(--primary-light);
    border-left-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.mobile-nav .icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.mobile-contact-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid #eee;
}

.mobile-contact-info h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
}

.mobile-contact-info p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--spacing-xs) 0;
}

.mobile-contact-info .icon {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* SECTIONS */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: var(--font-h2);
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
    position: relative;
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* FOOTER */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--spacing-xl) 5% var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-column {
    flex: 0 1 300px;
    text-align: center;
}

.footer-column h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-xs);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
    white-space: nowrap;
}

.footer-column a {
    text-decoration: none;
    color: #ddd;
    transition: var(--transition-normal);
    display: inline-block;
}

.footer-column a:hover {
    color: var(--secondary);
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* FOCUS STYLES */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
a:focus,
.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(229, 0, 0, 0.1);
}

.logo:focus,
.main-nav a:focus,
.mobile-menu-toggle:focus,
.mobile-nav a:focus {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

.logo:focus-visible,
.main-nav a:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-nav a:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--secondary-light);
}

/* LOADING STATE */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* LARGE SCREENS */
@media (max-width: 1100px) {
    .logo-contact-container {
        max-width: 42%;
    }

    .header-notice {
        margin: 0 var(--spacing-sm);
        padding: 8px 12px;
        font-size: 0.82rem;
        flex-basis: 220px;
    }

    .main-nav ul {
        gap: var(--spacing-sm);
    }
    
    .main-nav a {
        font-size: 1rem;
        padding: 8px 10px;
    }
    
    #logo-container {
        height: 55px;
    }
    
    #logo-container img {
        max-width: 100px;
    }
    
    .contact-info {
        font-size: 0.875rem; /* Minimo 14px */
    }
}

/* MEDIUM SCREENS */
@media (max-width: 900px) {
    .main-nav ul {
        gap: var(--spacing-xs);
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 6px 8px;
    }

    .logo-contact-container {
        max-width: 48%;
    }

    .header-notice {
        flex-basis: 200px;
        font-size: 0.78rem;
        padding: 7px 10px;
    }
}

/* TABLET & MOBILE TRANSITION */
@media (max-width: 800px) {
    /* Hide main navigation */
    .main-nav {
        display: none !important;
    }

    header {
        padding: calc(8px + env(safe-area-inset-top)) 0 10px;
    }

    .header-container {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-areas:
            ". logo menu"
            "notice notice notice";
        align-items: center;
        row-gap: 8px;
        padding: 0 5%;
    }

    .logo-contact-container {
        grid-area: logo;
        justify-self: center;
        justify-content: center;
        width: auto;
        max-width: none;
        flex: none;
    }

    .header-notice {
        grid-area: notice;
        justify-self: center;
        width: min(100%, 420px);
        max-width: 420px;
        margin: 0;
        flex: none;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        grid-area: menu;
        position: static;
        justify-self: end;
        transform: none;
        width: 44px;
        height: 44px;
    }
}

/* TABLET */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 40px;
        --spacing-lg: 25px;
        
        /* Typography Scale - Tablet */
        --font-h1: 2.5rem;         /* 40px */
        --font-h2: 2rem;           /* 32px */
        --font-h3: 1.75rem;        /* 28px */
        --font-h4: 1.25rem;        /* 20px */
        --font-h5: 1.125rem;       /* 18px */
        --font-body-lg: 1rem;      /* 16px */
        --font-body: 0.938rem;     /* 15px */
        --font-body-sm: 0.813rem;  /* 13px */
        --font-caption: 0.688rem;  /* 11px */
    }
    
    .header-container {
        padding: 0 5%;
    }
    
    .logo-contact-container {
        position: static;
        transform: none;
        gap: 0;
    }

    .header-notice {
        padding: 8px 14px;
        max-width: 360px;
        font-size: 0.85rem;
    }
    
    /* Nascondi le informazioni di contatto su mobile */
    .contact-info {
        display: none;
    }
    
    #logo-container {
        height: 50px;
    }
    
    #logo-container img {
        max-width: 134px;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    
    .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }

    .footer-column {
        flex: 1 1 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
        font-weight: 600;
    }

    .footer-column ul {
        width: 100%;
        max-width: 320px;
        margin: 0;
        padding: 0;
    }
    
    .footer-column li {
        margin-bottom: var(--spacing-xs);
        font-size: 0.9rem;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    
    footer {
        padding: var(--spacing-lg) 5% var(--spacing-md);
        margin-top: var(--spacing-sm);
    }

    .copyright {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        font-size: 0.875rem; /* Minimo 14px */
        text-align: center;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    :root {
        --spacing-xl: 35px;
        --spacing-lg: 20px;
        --spacing-md: 15px;
        --spacing-sm: 8px;
        --spacing-xs: 4px;
        
        /* Typography Scale - Mobile */
        --font-h1: 2rem;           /* 32px */
        --font-h2: 1.75rem;        /* 28px */
        --font-h3: 1.5rem;         /* 24px */
        --font-h4: 1.125rem;       /* 18px */
        --font-h5: 1rem;           /* 16px */
        --font-body-lg: 0.938rem;  /* 15px */
        --font-body: 0.875rem;     /* 14px */
        --font-body-sm: 0.813rem;  /* 13px */
        --font-caption: 0.688rem;  /* 11px */
    }
    
    .container {
        padding: 0 4%;
    }
    
    .header-container {
        padding: 0 4%;
    }

    .header-notice {
        max-width: 100%;
        font-size: 0.78rem;
        padding: 7px 12px;
    }
    
    #logo-container {
        height: 48px;
    }
    
    #logo-container img {
        max-width: 128px;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    
    .contact-info span {
        font-size: 0.875rem; /* Minimo 14px */
    }
    
    .btn {
        padding: 12px var(--spacing-md);
        font-size: 0.95rem;
    }
    
    footer {
        padding: var(--spacing-md) 5% var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
    
    .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-sm);
        padding: 0;
    }

    .footer-column {
        flex: 1 1 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
        font-weight: 600;
    }
    
    .footer-column ul {
        width: 100%;
        max-width: 300px;
    }

    .footer-column li {
        margin-bottom: var(--spacing-xs);
        font-size: 0.875rem; /* Minimo 14px */
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    
    .copyright {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-xs);
        font-size: 0.875rem; /* Minimo 14px */
        text-align: center;
    }
    
    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }
    
    .hamburger-line {
        width: 24px;
        height: 3px;
        margin: 2px 0;
    }
    
    /* Mobile nav optimizations */
    .mobile-nav {
        width: 280px;
    }
    
    .mobile-nav-header {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    }
    
    .mobile-nav-header h3 {
        font-size: 1.2rem;
    }
    
    .mobile-nav a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }
    
    .mobile-contact-info {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }
    
    /* Logo leggermente più piccolo per schermi molto piccoli */
    #logo-container {
        height: 46px;
    }
    
    #logo-container img {
        max-width: 122px;
    }
}

/* SMALL MOBILE */
@media (max-width: 360px) {
    :root {
        --spacing-lg: 15px;
        --spacing-md: 12px;
        --spacing-sm: 6px;
        --spacing-xs: 3px;
        
        /* Typography Scale - Small Mobile */
        --font-h1: 1.75rem;        /* 28px */
        --font-h2: 1.5rem;         /* 24px */
        --font-h3: 1.25rem;        /* 20px */
        --font-h4: 1rem;           /* 16px */
        --font-h5: 0.938rem;       /* 15px */
        --font-body-lg: 0.875rem;  /* 14px */
        --font-body: 0.813rem;     /* 13px */
        --font-body-sm: 0.75rem;   /* 12px */
        --font-caption: 0.625rem;  /* 10px */
    }
    
    .container {
        padding: 0 3%;
    }
    
    .section {
        padding: var(--spacing-sm) 0;
    }
    
    
    .container {
        padding: 0 3%;
    }
    
    #logo-container {
        height: 44px;
    }
    
    #logo-container img {
        max-width: 116px;
    }
    
    .header-container {
        padding: 0 3%;
    }

    .header-notice {
        font-size: 0.72rem;
        padding: 6px 10px;
    }
    
    .contact-info {
        font-size: 0.65rem;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hamburger-line {
        width: 22px;
        height: 3px;
    }
    
    footer {
        padding: var(--spacing-md) 3% var(--spacing-sm);
        margin-top: var(--spacing-xs);
    }
    
    .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-sm);
        padding: 0;
        margin: 0;
    }

    .footer-column {
        flex: 1 1 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column h3 {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-xs);
        font-weight: 600;
    }
    
    .footer-column ul {
        width: 100%;
        max-width: 280px;
    }

    .footer-column li {
        margin-bottom: 3px;
        font-size: 0.875rem; /* Minimo 14px */
        line-height: 1.2;
    }
    
    .copyright {
        margin-top: var(--spacing-xs);
        padding-top: var(--spacing-xs);
        font-size: 0.875rem; /* Minimo 14px */
        text-align: center;
    }
}

/* ACCESSIBILITY */
@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;
    }
}

/* DEBUG MODE (commented out by default) */
/*
.mobile-menu-toggle {
    background-color: red !important;
    border: 2px solid blue !important;
}
*/

/* ===================================
   SHARED PAGE COMPONENTS
   (used in menu.html and chi-siamo.html)
   =================================== */

/* Page Hero */
.page-hero {
    background-color: var(--primary);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://firebasestorage.googleapis.com/v0/b/pizziamo-912b6.firebasestorage.app/o/badge%2Fpizza-patter.png?alt=media');
    opacity: 0.1;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: var(--font-h1);
    margin-bottom: var(--spacing-lg) !important;
    position: relative;
    display: inline-block;
}

.page-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.page-hero p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    align-items: center;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition-normal);
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.5;
}

/* Section Subtitle */
.section-subtitle {
    font-size: var(--font-h3);
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-md);
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('https://firebasestorage.googleapis.com/v0/b/pizziamo-912b6.firebasestorage.app/o/badge%2Fpizza-slice.png?alt=media') no-repeat center/contain;
    opacity: 0.1;
    transform: rotate(45deg);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: url('https://firebasestorage.googleapis.com/v0/b/pizziamo-912b6.firebasestorage.app/o/badge%2Fpizza-slice.png?alt=media') no-repeat center/contain;
    opacity: 0.1;
    transform: rotate(-135deg);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.cta-btn-primary {
    background-color: var(--white);
    color: var(--primary);
}

.cta-btn-primary:hover {
    background-color: var(--light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
