/* ===========================================
   Main Site Styles
   Design moderno e riutilizzabile
   =========================================== */

/* CSS Variables - valori di default, sovrascritti da PHP */
:root {
    --primary: #1a1a2e;
    --primary-light: #2d2d4a;
    --primary-dark: #0f0f1a;
    --secondary: #e94560;
    --secondary-light: #ff6b81;
    --accent: #e94560;

    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;

    --background: #ffffff;
    --background-alt: #f8f9fa;
    --background-dark: #1a1a2e;

    --border: #e0e0e0;
    --border-light: #f0f0f0;

    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

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

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

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

    --container-max: 1200px;
    --header-height: 80px;
}

/* ===========================================
   Reset & Base
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--secondary-light);
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile { display: inline-flex; }
}

/* ===========================================
   Buttons
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-on-secondary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--text-on-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--text-on-primary);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-on-primary);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

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

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ===========================================
   Top Bar
   =========================================== */
.top-bar {
    background: var(--topbar-bg, var(--primary));
    color: var(--text-on-topbar, var(--text-on-primary));
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-topbar, rgba(255,255,255,0.8));
    opacity: 0.85;
}

.top-bar-link:hover {
    opacity: 1;
}

.top-bar-link .icon {
    width: 14px;
    height: 14px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    padding: 0.15rem;
}

.lang-flag {
    display: block;
    padding: 0.2rem 0.55rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.lang-flag.active {
    background: var(--secondary);
    color: #fff;
}

.lang-flag:hover:not(.active) {
    color: #fff;
}

.social-link {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--secondary);
}

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

/* ===========================================
   Header
   =========================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg, var(--background));
    color: var(--text-on-header, var(--text));
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-header, var(--primary));
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-on-header, var(--text));
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
    background: rgba(233, 69, 96, 0.08);
}

.header-cta {
    display: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--text-on-header, var(--primary));
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-on-header, var(--primary));
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--secondary);
}

.mobile-nav-link.btn {
    margin-top: 1rem;
    text-align: center;
    border-bottom: none;
}

@media (min-width: 992px) {
    .main-nav { display: block; }
    .header-cta { display: inline-flex; }
    .mobile-toggle { display: none; }
    .mobile-nav { display: none !important; }
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
}

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

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

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header.text-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===========================================
   Intro Section
   =========================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .intro-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 50%;
    color: var(--secondary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===========================================
   Menu Preview Section
   =========================================== */
.section-menu-preview {
    background: var(--background-alt);
}

.menu-categories-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.menu-category-card {
    flex: 0 1 calc(50% - 0.75rem);
}

@media (min-width: 768px) {
    .menu-category-card {
        flex: 0 1 calc(25% - 1.125rem);
    }
}

.menu-category-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.menu-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.menu-category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.menu-category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===========================================
   Events Section
   =========================================== */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.event-card {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.event-content {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    padding: 0.75rem;
    background: var(--secondary);
    color: #fff;
    border-radius: var(--radius-sm);
    min-width: 60px;
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.event-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.icon-sm {
    width: 14px;
    height: 14px;
}

/* ===========================================
   Gallery Preview
   =========================================== */
.gallery-grid-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: var(--transition);
}

.gallery-item-preview:hover::after {
    background: rgba(0,0,0,0.2);
}

/* ===========================================
   Info Section
   =========================================== */
.section-info {
    background: var(--background-alt);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
}

.info-icon svg {
    width: 32px;
    height: 32px;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.hours-list li.closed {
    color: var(--text-muted);
}

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

.address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    padding: 0.5rem 0;
}

.contact-list a {
    color: var(--text);
}

.contact-list a:hover {
    color: var(--secondary);
}

/* ===========================================
   CTA Section
   =========================================== */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ===========================================
   Footer
   =========================================== */
.main-footer {
    background: var(--footer-bg, var(--primary));
    color: var(--text-on-footer, rgba(255,255,255,0.8));
}

.footer-top {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

.footer-social a:hover {
    background: var(--secondary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}

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

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
}

.footer-nav a:hover {
    color: var(--secondary);
}

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

.footer-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-hours .day {
    color: rgba(255,255,255,0.7);
}

.footer-hours .time {
    color: #fff;
}

.footer-hours li.closed .time {
    color: rgba(255,255,255,0.5);
}

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

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-contact .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
}

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

/* ===========================================
   Page Specific
   =========================================== */
.page-content {
    padding: 3rem 0;
}

.page-header {
    position: relative;
    text-align: center;
    padding: 4rem 0;
    background: var(--pageheader-bg, linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%));
    color: var(--text-on-pageheader, #fff);
    margin-bottom: 3rem;
}

.page-header-image {
    background-size: cover;
    background-position: center;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ===========================================
   Forms
   =========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

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

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

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================
   Animations
   =========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===========================================
   Mobile Optimizations
   =========================================== */

/* Safe area for notched devices (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    .mobile-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Touch-friendly tap targets (minimum 44x44px) */
@media (max-width: 768px) {
    /* Top bar: telefono ed email su 2 righe */
    .top-bar-content {
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
    }
    .top-bar-left {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .top-bar-right {
        justify-content: center;
    }

    .btn,
    .nav-link,
    .mobile-nav-link,
    .social-link,
    .top-bar-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Prevent text selection on interactive elements */
    .btn,
    .mobile-toggle,
    .category-tab {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    /* Better tap highlighting */
    .btn,
    a,
    button {
        -webkit-tap-highlight-color: rgba(233, 69, 96, 0.2);
    }

    /* Prevent zoom on input focus (iOS) */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Smooth momentum scrolling */
    .mobile-nav,
    .category-nav-inner {
        -webkit-overflow-scrolling: touch;
    }

    /* Active states for touch */
    .btn:active {
        transform: scale(0.98);
    }

    .product-card:active {
        transform: scale(0.99);
    }
}

/* Reduce motion for users who prefer it */
@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;
    }
}

/* Dark mode support (optional - follows system preference) */
@media (prefers-color-scheme: dark) {
    /* Uncommenting below would enable automatic dark mode
    :root {
        --background: #1a1a2e;
        --background-alt: #2d2d4a;
        --text: #ffffff;
        --text-light: #cccccc;
        --border: #3d3d5c;
    }
    */
}

/* Header style variants */
.header-sticky  { position: sticky; top: 0; }
.header-fixed   { position: fixed;  top: 0; left: 0; right: 0; width: 100%; }
.header-static  { position: static; box-shadow: none; }

/* Compensazione spazio per header fixed */
body:has(.header-fixed) .main-content { padding-top: var(--header-height); }

/* Footer style variants */
.footer-minimal .footer-top { display: none; }
.footer-minimal .footer-bottom { border-top: none; }

/* Print styles */
@media print {
    .top-bar,
    .main-header,
    .mobile-nav,
    .footer,
    .btn {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
