/*
Theme Name: ArcheoHero
Theme URI: https://archeoclubcaltagirone.it
Author: grimike
Author URI: https://archeoclubcaltagirone.it
Description: Tema WordPress per Archeoclub d'Italia APS — Sede di Caltagirone. Design moderno con hero slider, portfolio, collaborazioni, team e rassegna stampa. Include dark mode, customizer avanzato e sistema personalizzazione colori.
Version: 5.4.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: archeohero
Tags: custom-logo, custom-menu, dark-mode, featured-images, theme-options, translation-ready

ArcheoHero Theme - Un tema WordPress per la tutela e valorizzazione del patrimonio culturale.
Creato per Archeoclub d'Italia APS — Sede di Caltagirone.
*/

/* ==========================================================================
   ROOT VARIABLES - Light Mode (Default)
   Palette: Carminio / Oro Antico / Verde Oliva
   ========================================================================== */

:root {
    /* Primary: Carminio */
    --archeo-primary: #9B1B30;
    --archeo-primary-dark: #7A1526;
    --archeo-primary-light: #C4475A;
    
    /* Secondary: Oro Antico */
    --archeo-secondary: #B8860B;
    --archeo-secondary-dark: #8B6914;
    --archeo-secondary-light: #D4A84B;
    
    /* Accent: Verde Oliva */
    --archeo-accent: #4A6741;
    --archeo-accent-dark: #3A5233;
    --archeo-accent-light: #6B8F5E;
    
    /* Extended: Terracotta / Sabbia */
    --archeo-rosa: #D4A84B;
    --archeo-rosa-dark: #B8860B;
    --archeo-rosa-light: #E8C97A;
    --archeo-fucsia: #B8860B;
    --archeo-fucsia-dark: #8B6914;
    --archeo-fucsia-light: #D4A017;
    
    /* Extended: Carminio / Verde Intensi */
    --archeo-viola: #9B1B30;
    --archeo-viola-dark: #7A1526;
    --archeo-viola-light: #C4475A;
    --archeo-blu: #556B2F;
    --archeo-blu-dark: #3D4E22;
    --archeo-blu-light: #7A8F50;
    
    /* Neutral */
    --archeo-dark: #1a1a2e;
    --archeo-gray: #5f6b7a;
    --archeo-light: #f5f2ed;
    --archeo-white: #ffffff;
    --archeo-border: #e0ddd6;
    --archeo-gray-light: #b8b5ae;
    --archeo-warm-bg: #faf8f4;
    
    /* Status Colors */
    --archeo-error: #ef4444;
    --archeo-success: #22c55e;
    --archeo-warning: #f59e0b;
    
    /* Typography */
    --archeo-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --archeo-font-secondary: 'Poppins', sans-serif;
    --archeo-font-display: 'Fahkwang', sans-serif;
    
    /* Font Sizes */
    --archeo-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --archeo-text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --archeo-text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --archeo-text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    --archeo-text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
    --archeo-text-2xl: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    
    /* Spacing */
    --archeo-space-xs: 0.5rem;
    --archeo-space-sm: 1rem;
    --archeo-space-md: 2rem;
    --archeo-space-lg: 4rem;
    --archeo-space-xl: 6rem;
    
    /* Gradients - Carminio / Oro Antico / Verde Oliva */
    --archeo-gradient-hero: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 50%, var(--archeo-accent) 100%);
    --archeo-gradient-primary: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    --archeo-gradient-secondary: linear-gradient(135deg, var(--archeo-secondary) 0%, var(--archeo-accent) 100%);
    --archeo-gradient-accent: linear-gradient(135deg, var(--archeo-secondary-light) 0%, var(--archeo-primary) 100%);
    --archeo-gradient-warm: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    --archeo-gradient-soft: linear-gradient(135deg, var(--archeo-secondary-light) 0%, var(--archeo-rosa-light) 100%);
    --archeo-gradient-primary-hover: linear-gradient(135deg, var(--archeo-primary-light) 0%, var(--archeo-secondary-light) 100%);
    --archeo-gradient-primary-light: linear-gradient(135deg, var(--archeo-primary-light) 0%, var(--archeo-secondary) 100%);
    
    /* RGB values for rgba() usage */
    --archeo-primary-rgb: 155, 27, 48;
    --archeo-secondary-rgb: 184, 134, 11;
    --archeo-accent-rgb: 85, 107, 47;
    
    /* Transitions */
    --archeo-transition: 0.3s ease;
    
    /* Shadows */
    --archeo-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --archeo-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --archeo-shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --archeo-shadow-primary: 0 4px 15px rgba(155, 27, 48, 0.3);
    --archeo-shadow-secondary: 0 4px 15px rgba(184, 134, 11, 0.3);
    --archeo-shadow-accent: 0 4px 15px rgba(85, 107, 47, 0.3);
    
    /* Border Radius */
    --archeo-radius-sm: 0.375rem;
    --archeo-radius-md: 0.5rem;
    --archeo-radius-lg: 1rem;
}

/* ==========================================================================
   DARK MODE VARIABLES
   ========================================================================== */

body.dark-mode,
html.dark-mode body {
    --archeo-primary: #E07088;           /* Carminio chiaro, alto contrasto su scuro */
    --archeo-primary-dark: #9B1B30;
    --archeo-primary-light: #F0A0B0;
    
    --archeo-secondary: #F0C860;         /* Oro luminoso */
    --archeo-secondary-dark: #B8860B;
    --archeo-secondary-light: #F5DFA0;
    
    --archeo-accent: #9BC08C;            /* Verde chiaro, leggibile */
    --archeo-accent-dark: #4A6741;
    --archeo-accent-light: #B0D8A0;
    
    --archeo-rosa: #F5DFA0;
    --archeo-rosa-dark: #F0C860;
    --archeo-fucsia: #F0C860;
    --archeo-viola: #E07088;
    --archeo-blu: #9BC08C;
    
    --archeo-dark: #f2efe9;              /* Testo principale — quasi bianco caldo */
    --archeo-gray: #c0bdb6;             /* Testo secondario — grigio leggibile */
    --archeo-light: #1c1c30;             /* Superficie card/widget */
    --archeo-white: #0e0e1a;             /* Sfondo pagina — più scuro e profondo */
    --archeo-border: #2a2a42;            /* Bordi */
    --archeo-gray-light: #908d86;
    --archeo-warm-bg: #141425;           /* Sfondo sezioni alternate */
    
    --archeo-shadow-sm: 0 1px 3px rgba(0,0,0,0.6);
    --archeo-shadow-md: 0 4px 6px rgba(0,0,0,0.5);
    --archeo-shadow-lg: 0 10px 25px rgba(0,0,0,0.7);
    --archeo-shadow-primary: 0 4px 15px rgba(224, 112, 136, 0.25);
    --archeo-shadow-secondary: 0 4px 15px rgba(240, 200, 96, 0.2);
    --archeo-shadow-accent: 0 4px 15px rgba(155, 192, 140, 0.2);
    --archeo-primary-rgb: 224, 112, 136;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--archeo-font-primary);
    font-size: var(--archeo-text-base);
    line-height: 1.6;
    color: var(--archeo-dark);
    background-color: var(--archeo-white);
    transition: background-color var(--archeo-transition), color var(--archeo-transition);
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--archeo-font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--archeo-space-sm);
    color: var(--archeo-dark);
}

h1 { font-size: var(--archeo-text-2xl); }
h2 { font-size: var(--archeo-text-xl); }
h3 { font-size: var(--archeo-text-lg); }
h4, h5, h6 { font-size: var(--archeo-text-base); }

p {
    margin-bottom: var(--archeo-space-sm);
    line-height: 1.8;
}

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

a:hover, a:focus {
    color: var(--archeo-secondary);
    outline: 2px solid transparent;
}

a:focus-visible {
    outline: 2px solid var(--archeo-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.archeo-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.site-content {
    padding-top: 80px; /* Altezza header standard */
}

/* Front page senza padding top per slider full-height */
.home .site-content,
.front-page .site-content {
    padding-top: 0;
}

main {
    display: block;
    width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.archeo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: var(--archeo-font-secondary);
    font-size: var(--archeo-text-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--archeo-radius-md);
    cursor: pointer;
    transition: all var(--archeo-transition);
    min-height: 44px;
    gap: 0.5rem;
}

.archeo-btn-primary {
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 27, 48, 0.3);
}

.archeo-btn-primary:hover, .archeo-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 27, 48, 0.4);
    color: white;
}

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

.archeo-btn-secondary:hover, .archeo-btn-secondary:focus {
    background: var(--archeo-primary);
    color: white;
    transform: translateY(-2px);
}

.archeo-btn-solid {
    background: var(--archeo-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 27, 48, 0.3);
}

.archeo-btn-solid:hover, .archeo-btn-solid:focus {
    background: var(--archeo-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 27, 48, 0.4);
}

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

.archeo-btn-outline:hover, .archeo-btn-outline:focus {
    background: var(--archeo-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--archeo-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all var(--archeo-transition);
    z-index: 1000;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    display: flex;
    align-items: center;
}

.header-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-family: var(--archeo-font-display);
    font-weight: 700;
}

.site-title a {
    color: var(--archeo-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color var(--archeo-transition);
}

.site-title a:hover {
    color: var(--archeo-primary);
}

.custom-logo-link img {
    max-height: 70px;
    width: auto;
    display: block;
    transition: max-height var(--archeo-transition);
}

.site-header.sticky .custom-logo-link img {
    max-height: 45px;
}

.main-navigation {
    flex: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
    align-items: center;
}

.primary-menu a {
    color: var(--archeo-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    transition: color var(--archeo-transition);
    font-size: 1rem;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--archeo-primary), var(--archeo-secondary));
    transition: width var(--archeo-transition);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after {
    width: 100%;
}

.primary-menu a:hover {
    color: var(--archeo-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--archeo-radius-sm);
    transition: all var(--archeo-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.dark-mode-toggle:hover {
    background: var(--archeo-light);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode .icon-light { display: inline; }
.dark-mode .icon-dark { display: none; }
body:not(.dark-mode) .icon-light { display: none; }
body:not(.dark-mode) .icon-dark { display: inline; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--archeo-dark);
    transition: all var(--archeo-transition);
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--archeo-white);
    padding: calc(60px + 2rem) 2rem 2rem;
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity var(--archeo-transition), transform var(--archeo-transition);
    pointer-events: none;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--archeo-light);
}

.mobile-menu-list a {
    display: block;
    padding: 1rem 0;
    color: var(--archeo-dark);
    font-size: var(--archeo-text-lg);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--archeo-transition);
}

.mobile-menu-list a:hover {
    color: var(--archeo-primary);
}

/* Header States */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.site-header.scroll-down {
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scroll-up {
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #1a1a2e;
    color: #d4d0c9;
    margin-top: var(--archeo-space-xl);
    width: 100%;
    padding: 0;
}

body.dark-mode .site-footer {
    background: #0a0a14;
    color: #b8b5ae;
}

.footer-widgets {
    padding: var(--archeo-space-lg) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-widget-area {
    display: grid;
    gap: var(--archeo-space-md);
}

.footer-columns-1 { grid-template-columns: 1fr; }
.footer-columns-2 { grid-template-columns: repeat(2, 1fr); }
.footer-columns-3 { grid-template-columns: repeat(3, 1fr); }
.footer-columns-4 { grid-template-columns: repeat(4, 1fr); }

.footer-widget .widget-title {
    color: #ffffff;
    margin-bottom: var(--archeo-space-sm);
}

.footer-widget a {
    color: #cbd5e1;
    transition: color var(--archeo-transition);
}

.footer-widget a:hover {
    color: #ffffff;
}

.site-info {
    padding: var(--archeo-space-md) 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #cbd5e1;
    font-size: var(--archeo-text-sm);
    text-decoration: none;
    transition: color var(--archeo-transition);
}

.footer-menu a:hover {
    color: #ffffff;
}

/* ==========================================================================
   CARDS & COMPONENTS
   ========================================================================== */

.team-card, .collab-card, .press-card, .service-card {
    background: var(--archeo-white);
    border-radius: var(--archeo-radius-lg);
    box-shadow: var(--archeo-shadow-md);
    transition: transform var(--archeo-transition), box-shadow var(--archeo-transition);
    height: 100%;
}

body.dark-mode .team-card,
body.dark-mode .collab-card,
body.dark-mode .press-card,
body.dark-mode .service-card {
    background: var(--archeo-light);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.team-card:hover, .collab-card:hover, .press-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--archeo-shadow-lg);
}

body.dark-mode .team-card:hover,
body.dark-mode .collab-card:hover,
body.dark-mode .press-card:hover,
body.dark-mode .service-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.archeo-reveal {
    opacity: 0;
}

.archeo-reveal.revealed {
    animation: revealIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.archeo-stagger-item {
    opacity: 0;
}

.archeo-stagger-item.stagger-animate {
    animation: staggerIn 0.6s ease-out forwards;
}

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

.archeo-fade-in {
    opacity: 0;
}

.archeo-fade-in.fade-in-visible {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.archeo-tilt-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.archeo-magnetic-btn {
    transition: transform 0.3s ease;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--archeo-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--archeo-transition);
    z-index: 999;
    font-size: 1.5rem;
    box-shadow: var(--archeo-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--archeo-secondary);
    transform: translateY(-3px);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    width: 0;
    z-index: 2000;
    transition: width 0.1s linear;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.mt-sm { margin-top: var(--archeo-space-sm); }
.mt-md { margin-top: var(--archeo-space-md); }
.mt-lg { margin-top: var(--archeo-space-lg); }

.mb-sm { margin-bottom: var(--archeo-space-sm); }
.mb-md { margin-bottom: var(--archeo-space-md); }
.mb-lg { margin-bottom: var(--archeo-space-lg); }

.py-section {
    padding-top: var(--archeo-space-lg);
    padding-bottom: var(--archeo-space-lg);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* ==========================================================================
   ACCESSIBILITY & 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;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }

    .primary-menu {
        gap: 2rem;
    }

    .header-actions {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 0;
    }

    .header-wrapper {
        gap: 1rem;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-title {
        font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    }

    .custom-logo-link img {
        max-height: 50px;
    }

    .site-header.sticky .custom-logo-link img {
        max-height: 45px;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .dark-mode-toggle, .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .archeo-container {
        padding: 0 1rem;
    }

    .py-section {
        padding-top: var(--archeo-space-md);
        padding-bottom: var(--archeo-space-md);
    }

    .footer-columns-3, .footer-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 0 15px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    .footer-columns-2 {
        grid-template-columns: 1fr;
    }

    .footer-menu {
        justify-content: center;
    }
}

/* ==========================================================================
   SPONSOR / ADV BANNER
   ========================================================================== */

.archeo-sponsors-banner {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.archeo-sponsors-frontpage {
    padding: 3rem 1.5rem;
    background: var(--archeo-white);
    border-top: 1px solid var(--archeo-border, #e2e8f0);
}
.archeo-sponsors-footer {
    padding: 2rem 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem;
}
.sponsors-banner-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--archeo-gray, #94a3b8);
    margin: 0 0 1.25rem;
    font-weight: 600;
}
.archeo-sponsors-footer .sponsors-banner-title {
    color: rgba(255,255,255,0.4);
}
.sponsors-banner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.sponsors-banner-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0.65;
}
.sponsors-banner-item:hover {
    opacity: 1;
    transform: scale(1.05);
}
.sponsors-banner-logo {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(80%);
    transition: filter 0.3s;
}
.sponsors-banner-item:hover .sponsors-banner-logo {
    filter: grayscale(0%);
}
.archeo-sponsors-footer .sponsors-banner-logo {
    filter: grayscale(100%) brightness(1.5);
    max-height: 36px;
}
.archeo-sponsors-footer .sponsors-banner-item:hover .sponsors-banner-logo {
    filter: grayscale(0%) brightness(1);
}
.sponsors-banner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--archeo-gray, #94a3b8);
    padding: 0.5rem 1rem;
    border: 1px solid var(--archeo-border, #e2e8f0);
    border-radius: 6px;
}
.archeo-sponsors-footer .sponsors-banner-name {
    color: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.1);
}

/* Dark mode sponsor */
body.dark-mode .archeo-sponsors-frontpage {
    background: var(--archeo-light);
    border-color: rgba(255,255,255,0.06);
}
body.dark-mode .sponsors-banner-logo {
    filter: grayscale(80%) brightness(1.3);
}
body.dark-mode .sponsors-banner-item:hover .sponsors-banner-logo {
    filter: grayscale(0%) brightness(1);
}

@media (max-width: 768px) {
    .sponsors-banner-logos { gap: 1.25rem; }
    .sponsors-banner-logo { max-height: 36px; max-width: 100px; }
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE FIXES
   ========================================================================== */

@media (max-width: 768px) {
    /* Reduce section padding globally */
    section { padding-top: clamp(2.5rem, 6vw, 5rem) !important; padding-bottom: clamp(2.5rem, 6vw, 5rem) !important; }
    
    /* Fix hero paddings */
    .progetto-hero, .cosa-facciamo-hero, .chi-siamo-hero, .sost-hero .hero-content,
    .arch-hero, .press-room-hero, .archive-hero { padding-top: 90px !important; padding-bottom: 50px !important; }
    
    /* Fix containers */
    .service-container, .servizi-container, .intro-container, .collab-container,
    .team-container, .valori-container, .metodo-container, .pers-content-container,
    .sost-container, .archeo-container { padding-left: 1rem !important; padding-right: 1rem !important; }
    
    /* Fix grids to 1 or 2 columns */
    .valori-grid, .metodo-grid, .beni-grid, .vantaggi-grid, .quote-grid, .info-grid,
    .collab-stats-grid, .servizi-grid, .press-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
    
    /* Fix intro stats */
    .intro-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 1rem !important; }
    .stat-number { font-size: 1.5rem !important; }
    
    /* Fix hero titles */
    .hero-title { font-size: clamp(1.75rem, 5vw, 2.5rem) !important; }
    .hero-subtitle { font-size: clamp(0.9rem, 2vw, 1.1rem) !important; }
    
    /* Fix location cards */
    .location-nive-card { flex-direction: column !important; }
    .location-nive-left { flex-direction: column !important; align-items: center !important; text-align: center; }
    .location-nive-actions { flex-direction: column !important; width: 100%; gap: 0.5rem !important; }
    .location-nive-btn { width: 100%; justify-content: center; }
    
    /* Fix press layout */
    .press-room-layout { grid-template-columns: 1fr !important; }
    .press-room-sidebar { order: -1; }
    
    /* Fix CTA buttons */
    .cta-buttons { flex-direction: column !important; align-items: center !important; }
    .cta-btn-primary, .cta-btn-secondary { width: 100% !important; max-width: 300px; justify-content: center; text-align: center; }
    
    /* Fix info card */
    .info-card-items { grid-template-columns: 1fr 1fr !important; }
    .info-card-actions { flex-direction: column !important; }
    
    /* Fix nav */
    .pers-nav { flex-direction: column !important; text-align: center; gap: 0.75rem !important; }
}

@media (max-width: 480px) {
    .valori-grid, .collab-stats-grid, .vantaggi-grid, .quote-grid, .info-grid,
    .beni-stats, .servizi-grid, .press-grid { grid-template-columns: 1fr !important; }
    
    .intro-stats { grid-template-columns: 1fr !important; text-align: center; }
    
    /* Smaller card padding */
    .valore-card, .sost-card { padding: 1.25rem !important; }
    
    /* Fix tables */
    .info-card-items { grid-template-columns: 1fr !important; }
}
/* ========================================================================== */
/* ACCESSIBILITY (WCAG 2.1 AA)                                               */
/* ========================================================================== */

/* Skip link — visible on focus */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #9B1B30;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 100000;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #B8860B;
    outline-offset: 2px;
}

/* Focus ring — visible on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #B8860B;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reduce motion if user prefers */
@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;
    }
}

/* ========================================================================== */
/* BREADCRUMB                                                                 */
/* ========================================================================== */

.archeo-breadcrumb {
    padding: 0.6rem 1.5rem;
    background: rgba(0,0,0,0.03);
    font-size: 0.8rem;
    max-width: 100%;
    overflow-x: auto;
}
.archeo-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}
.archeo-breadcrumb li {
    display: inline-flex;
    align-items: center;
}
.archeo-breadcrumb a {
    color: #9B1B30;
    text-decoration: none;
    font-weight: 600;
}
.archeo-breadcrumb a:hover {
    text-decoration: underline;
}
.archeo-breadcrumb span[aria-current] {
    color: #5f6b7a;
}
.bc-sep {
    color: #d9d4cc;
    margin: 0 0.3rem;
}
body.dark-mode .archeo-breadcrumb {
    background: rgba(255,255,255,0.03);
}
body.dark-mode .archeo-breadcrumb a {
    color: #E07088;
}
body.dark-mode .archeo-breadcrumb span[aria-current] {
    color: #c0bdb6;
}
body.dark-mode .bc-sep {
    color: #2a2a42;
}

/* ========================================================================== */
/* SOCIAL SECTION (homepage)                                                  */
/* ========================================================================== */

.home-social-section {
    padding: 4rem 0;
    background: #faf8f4;
}
.social-btns-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.social-embeds-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Social buttons (shared) */
.duo-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    transition: all 0.2s;
}
.duo-social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.dsb-ig { background: linear-gradient(135deg, #E1306C, #F77737); }
.dsb-fb { background: #1877F2; }
.dsb-yt { background: #FF0000; }
.dsb-tk { background: #000; }
.dsb-wa { background: #25D366; }

/* Embeds */
.duo-embed-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0ece4;
}
.duo-embed-item iframe { max-width: 100% !important; }
.duo-embed-link {
    display: block;
    padding: 0.6rem 1rem;
    background: #faf8f4;
    border: 1px solid #d9d4cc;
    border-radius: 8px;
    text-decoration: none;
    color: #9B1B30;
    font-weight: 600;
    font-size: 0.82rem;
}

/* Dark mode */
body.dark-mode .home-social-section { background: #0e0e1a; }
body.dark-mode .duo-embed-item { border-color: #2a2a42; }
body.dark-mode .duo-embed-link { background: #0e0e1a; border-color: #2a2a42; color: #E07088; }

/* ========================================================================== */
/* SOCIAL WALL (legacy)                                                       */
/* ========================================================================== */

.home-social-wall {
    padding: 4rem 0;
    background: #fff;
}
.sw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem auto 0;
    max-width: 1000px;
}
.sw-embed {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d9d4cc;
}
.sw-embed iframe {
    max-width: 100% !important;
    border-radius: 12px;
}
.sw-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: #faf8f4;
    border: 1px solid #d9d4cc;
    border-radius: 12px;
    text-decoration: none;
    color: #9B1B30;
    font-weight: 600;
    transition: all 0.2s;
}
.sw-link-card:hover {
    border-color: #9B1B30;
    background: rgba(155,27,48,0.03);
}
.sw-icon { font-size: 2rem; }
.sw-follow {
    text-align: center;
    margin-top: 1.5rem;
}
.sw-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #E1306C, #F77737, #FCAF45);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.3s;
}
.sw-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225,48,108,0.3);
}

body.dark-mode .home-social-wall { background: #1c1c30; }
body.dark-mode .sw-embed { border-color: #2a2a42; }
body.dark-mode .sw-link-card { background: #0e0e1a; border-color: #2a2a42; color: #E07088; }
