/* ========================================
   siComunica - Main Stylesheet
   Palette: #eb9d43 (arancio), #1a1a1a (nero), #555 (grigio), #fff (bianco)
   ======================================== */

:root {
    --primary: #eb9d43;
    --primary-dark: #d4872e;
    --primary-light: rgba(235, 157, 67, 0.1);
    --dark: #1a1a1a;
    --gray: #555;
    --gray-light: #888;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

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

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

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header .underline {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Label */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-label-light {
    color: var(--primary);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.15rem;
}

.btn-primary {
    background: #eb9d43;
    color: #ffffff;
}

.btn-primary:hover {
    background: #d4872e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 157, 67, 0.3);
}

.btn-outline {
    background: transparent;
    color: #eb9d43;
    border: 2px solid #eb9d43;
}

.btn-outline:hover {
    background: #eb9d43;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-light {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 600;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #1a1a1a;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ========================================
   Button Variants - CTA Innovativi
   ======================================== */

/* --- 1. MAGNETIC GLOW (Hero Slider) --- */
.btn-glow {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(235, 157, 67, 0.5);
    padding: 18px 42px;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(235, 157, 67, 0.15), inset 0 0 20px rgba(235, 157, 67, 0.05);
    animation: glow-pulse 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(235, 157, 67, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-glow:hover {
    border-color: #eb9d43;
    color: #ffffff;
    box-shadow: 0 0 40px rgba(235, 157, 67, 0.5), inset 0 0 30px rgba(235, 157, 67, 0.1);
    transform: translateY(-3px) scale(1.02);
    letter-spacing: 0.8px;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow i {
    transition: transform 0.4s ease;
}

.btn-glow:hover i {
    transform: translateX(5px);
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(235, 157, 67, 0.15), inset 0 0 20px rgba(235, 157, 67, 0.05);
        border-color: rgba(235, 157, 67, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(235, 157, 67, 0.35), inset 0 0 25px rgba(235, 157, 67, 0.08);
        border-color: rgba(235, 157, 67, 0.85);
    }
}

/* Glow dentro lo slider: gestione animazione entrata */
.slide-content .btn-glow {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s, border-color 0.4s ease, box-shadow 0.4s ease, letter-spacing 0.4s ease;
    animation: none;
}

.slide-content.animate .btn-glow {
    opacity: 1;
    transform: translateY(0);
    animation: glow-pulse 3s ease-in-out infinite 1s;
}

.slide-content.animate .btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
}

/* --- 2. SLIDE FILL + ARROW (Sezioni principali) --- */
.btn-slide {
    background: transparent;
    color: #eb9d43;
    border: 2px solid #eb9d43;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #eb9d43;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-slide:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 157, 67, 0.3);
}

.btn-slide:hover::before {
    width: 100%;
}

.btn-slide i {
    transition: transform 0.4s ease;
}

.btn-slide:hover i {
    transform: translateX(5px);
}

/* Slide su sfondi scuri */
.btn-slide-on-dark {
    color: #ffffff;
    border-color: #eb9d43;
}

.btn-slide-on-dark:hover {
    color: #ffffff;
}

/* Slide bianco su sfondi colorati (CTA band arancione) */
.btn-slide-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 14px 32px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-slide-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ffffff;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-slide-light:hover {
    color: #eb9d43;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-slide-light:hover::before {
    width: 100%;
}

.btn-slide-light i {
    transition: transform 0.4s ease;
}

.btn-slide-light:hover i {
    transform: translateX(5px);
}

/* --- 3. TEXT UNDERLINE + ARROW (CTA secondari) --- */
.btn-underline {
    background: transparent;
    border: none;
    padding: 8px 4px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    border-radius: 0;
    transition: color 0.3s ease;
}

.btn-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #eb9d43;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-underline:hover {
    color: #eb9d43;
    transform: none;
    box-shadow: none;
}

.btn-underline:hover::after {
    width: 100%;
}

.btn-underline i {
    transition: transform 0.4s ease;
    font-size: 0.85em;
}

.btn-underline:hover i {
    transform: translateX(6px);
}

/* Underline su sfondi scuri */
.btn-underline-light {
    color: #ffffff;
}

.btn-underline-light:hover {
    color: #eb9d43;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand a {
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.brand-logo-light {
    display: block;
}

.brand-logo-dark {
    display: none;
}

.navbar.scrolled .brand-logo {
    height: 36px;
}

.navbar.scrolled .brand-logo-light {
    display: none;
}

.navbar.scrolled .brand-logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    height: 1.4em;
    line-height: 1.4em;
}

.nav-link span {
    display: block;
    transition: transform 0.35s ease;
}

.nav-link span::after {
    content: attr(data-text);
    display: block;
    color: #eb9d43;
}

.nav-link:hover span {
    transform: translateY(-1.4em);
}

.nav-link.active {
    color: #eb9d43;
}

.navbar.scrolled .nav-link {
    color: #1a1a1a;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #eb9d43;
}

.nav-cta-mobile-item {
    display: none;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-cta .btn {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Navbar CTA: stile adattivo light/dark */
.nav-cta .btn-slide {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-cta .btn-slide::before {
    background: #ffffff;
}

.nav-cta .btn-slide:hover {
    color: #1a1a1a;
}

.navbar.scrolled .nav-cta .btn-slide {
    color: #eb9d43;
    border-color: #eb9d43;
}

.navbar.scrolled .nav-cta .btn-slide::before {
    background: #eb9d43;
}

.navbar.scrolled .nav-cta .btn-slide:hover {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle {
    color: #1a1a1a;
}

/* ========================================
   Hero Slider
   ======================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
    background: #1a1a1a;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Slide uscente: resta visibile sotto quella nuova durante il crossfade */
.slide.prev {
    opacity: 1;
    z-index: 1;
    transition: none;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
}

/* Crossfade animazione immagini multiple */
.slide-bg-anim {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide-bg-anim.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 2rem;
    max-width: 850px;
    margin: 0 auto;
}

.slide-content.slide-align-left {
    align-items: flex-start;
    text-align: left;
    margin: 0 0 0 5%;
}

.slide-content.slide-align-right {
    align-items: flex-end;
    text-align: right;
    margin: 0 5% 0 auto;
}

.slide-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #eb9d43;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-content h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s, background 0.3s ease, box-shadow 0.3s ease;
}

.slide-content.animate .slide-label,
.slide-content.animate h1,
.slide-content.animate p,
.slide-content.animate .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slider-dot.active,
.slider-dot:hover {
    background: #eb9d43;
    transform: scale(1.2);
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-light);
}

/* ========================================
   L'Agenzia Section (Home)
   ======================================== */

.agenzia-section {
    background: var(--white);
}

.agenzia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.agenzia-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.agenzia-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.agenzia-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenzia-placeholder i {
    font-size: 4rem;
    color: #ccc;
}

.agenzia-content h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.agenzia-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.agenzia-content .btn {
    margin-top: 0.5rem;
}

/* ========================================
   CTA Band (Arancione)
   ======================================== */

.cta-band {
    background: #eb9d43;
    padding: 3.5rem 0;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-band-text h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.25rem;
}

.cta-band-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* CTA Band button: usa btn-slide-light */

/* ========================================
   Servizi Mosaic (Home)
   ======================================== */

.servizi-mosaic-section {
    padding: 0;
}

.mosaic-header {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
}

.mosaic-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #1a1a1a;
    margin-top: 0.5rem;
}

.mosaic-footer {
    text-align: center;
    padding: 2.5rem 1rem 3.5rem;
}

.servizi-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.mosaic-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.mosaic-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.mosaic-card:hover .mosaic-bg {
    transform: scale(1.08);
}

.mosaic-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.mosaic-card:hover .mosaic-overlay {
    opacity: 0.25;
}

.mosaic-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: #ffffff;
}

.mosaic-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mosaic-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animazione automatica quando la card entra in vista */
.mosaic-card.visible .mosaic-content h3 {
    opacity: 1;
    transform: translateY(0);
}

.mosaic-card.visible .mosaic-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger: ogni card appare dopo la precedente */
.mosaic-card:nth-child(1).visible h3 { transition-delay: 0.2s; }
.mosaic-card:nth-child(1).visible .mosaic-desc { transition-delay: 0.4s; }
.mosaic-card:nth-child(2).visible h3 { transition-delay: 0.35s; }
.mosaic-card:nth-child(2).visible .mosaic-desc { transition-delay: 0.55s; }
.mosaic-card:nth-child(3).visible h3 { transition-delay: 0.5s; }
.mosaic-card:nth-child(3).visible .mosaic-desc { transition-delay: 0.7s; }
.mosaic-card:nth-child(4).visible h3 { transition-delay: 0.2s; }
.mosaic-card:nth-child(4).visible .mosaic-desc { transition-delay: 0.4s; }
.mosaic-card:nth-child(5).visible h3 { transition-delay: 0.35s; }
.mosaic-card:nth-child(5).visible .mosaic-desc { transition-delay: 0.55s; }
.mosaic-card:nth-child(6).visible h3 { transition-delay: 0.5s; }
.mosaic-card:nth-child(6).visible .mosaic-desc { transition-delay: 0.7s; }

/* ========================================
   About Intro (Chi Siamo page)
   ======================================== */

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

.about-lead {
    font-size: 1.2rem;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-intro-main p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-intro-services {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-service-block {
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #eb9d43;
}

.about-service-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.about-service-block h3 i {
    color: #eb9d43;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.about-service-block p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* About Mission Block (integrato nella sezione Chi Siamo) */

.about-mission-block {
    margin-top: 2rem;
}

.about-mission-block h2 {
    margin-bottom: 1.25rem;
}

.about-mission-block p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-mission-block p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Logo Carousel (Clienti)
   ======================================== */

.logo-carousel-section {
    padding: 3rem 0 3.5rem;
    background: #f0f0f0;
}

.logo-carousel-section h3 {
    text-align: center;
    color: #aaa;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.logo-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.logo-carousel {
    display: flex;
    align-items: center;
    animation: logo-scroll 20s linear infinite;
    width: max-content;
}

.logo-carousel:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    width: 180px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
}

.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-item img {
    max-width: 140px;
    max-height: 50px;
    object-fit: contain;
    opacity: 0.45;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes logo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Contact CTA Section (Home bottom)
   ======================================== */

.contact-cta-section {
    padding: 5rem 0;
    background: #ffffff;
}

.contact-cta-inner {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.contact-cta-inner h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.contact-cta-inner p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ========================================
   CTA Section (legacy)
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Chi Siamo Page
   ======================================== */

.page-hero {
    background: #1a1a1a;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-hero h1 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    margin-bottom: 0.25rem;
}

.team-info .role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-info p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Testimonial */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    color: var(--gray);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author .name {
    font-weight: 600;
    color: var(--dark);
}

.testimonial-author .company {
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* ========================================
   Servizi Page
   ======================================== */

.servizio-detail-section {
    padding: 4rem 0;
}

.servizio-detail-section.section-alt {
    background: #f8f9fa;
}

.servizio-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.servizio-detail.reverse .servizio-detail-text {
    order: 2;
}

.servizio-detail.reverse .servizio-detail-features {
    order: 1;
}

.servizio-detail-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #eb9d43;
    margin-bottom: 0.75rem;
}

.servizio-detail-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #1a1a1a;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.servizio-detail-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.btn-servizio-cta {
    margin-top: 1.5rem;
}

.servizio-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(235, 157, 67, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.servizio-detail-icon i {
    font-size: 3.5rem;
    color: var(--primary);
}

.servizio-detail-img {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.servizio-detail-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.servizio-detail-features {
    padding-top: 0;
}

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

.features-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    font-size: 1rem;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

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

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #eb9d43;
}

/* ========================================
   Contact Page
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

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

.contact-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

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

.contact-info-box {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius);
}

.contact-info-box h3 {
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-item .info-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-info-item .info-text p,
.contact-info-item .info-text a {
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Alert messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

/* ========================================
   Footer
   ======================================== */

.footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 3rem;
}

.footer-brand-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand-logo img {
    height: 40px;
    width: auto;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

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

.footer-social a:hover {
    background: #eb9d43;
    color: #ffffff;
}

.footer-social a[aria-label="LinkedIn"] {
    background: #0077B5;
    color: #ffffff;
}

.footer-social a[aria-label="LinkedIn"]:hover {
    background: #005f8e;
    color: #ffffff;
}

.footer-social a[aria-label="WhatsApp"] {
    background: #25D366;
    color: #ffffff;
}

.footer-social a[aria-label="WhatsApp"]:hover {
    background: #1ebe5d;
    color: #ffffff;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #eb9d43;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: #eb9d43;
    width: 16px;
}

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

.footer-contact a:hover {
    color: #eb9d43;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

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

.footer-bottom a:hover {
    color: #eb9d43;
}

/* ========================================
   Back to Top & WhatsApp
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eb9d43;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #d4872e;
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #128c7e;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ========================================
   Scroll Animations
   ======================================== */

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   Privacy Page
   ======================================== */

.privacy-content {
    padding: 2rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.privacy-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-content ul {
    color: var(--gray);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.privacy-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.75rem;
}

.cookie-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: var(--gray);
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: 0.65rem 1rem;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.cookie-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.cookie-table code {
    font-family: monospace;
    font-size: 0.8rem;
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    color: #333;
}

.btn-cookie-reset {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: transparent;
    border: 2px solid #eb9d43;
    color: #eb9d43;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cookie-reset:hover {
    background: #eb9d43;
    color: #fff;
}

/* ========================================
   Portfolio - Loghi Clienti
   ======================================== */

.portfolio-loghi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin: 3rem 0 2rem;
}

.portfolio-logo-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: var(--transition);
}

.portfolio-logo-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.portfolio-logo-item img {
    max-width: 140px;
    max-height: 70px;
    width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.portfolio-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.portfolio-logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(235, 157, 67, 0.92);
    padding: 0.45rem 0.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.portfolio-logo-item:hover .portfolio-logo-overlay {
    transform: translateY(0);
}

.portfolio-logo-nome {
    display: block;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.portfolio-logo-anni {
    display: block;
    color: rgba(255,255,255,0.88);
    font-size: 0.7rem;
    margin-top: 0.1rem;
}

.portfolio-nota {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 2rem;
    font-style: italic;
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 0.85rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   Utility
   ======================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Form check */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #eb9d43;
}

/* Honeypot */
.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
    /* --- Fullscreen Overlay Menu --- */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 999;
        box-shadow: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* Disable text-roll effect on mobile */
    .nav-link {
        color: #ffffff;
        padding: 0.75rem 0;
        font-size: 1.35rem;
        font-weight: 600;
        letter-spacing: 2px;
        border-bottom: none;
        width: auto;
        text-align: center;
        overflow: visible;
        height: auto;
        line-height: normal;
        opacity: 0;
        transform: translateY(20px);
        transition: color 0.3s ease;
    }

    .nav-link span {
        transition: none;
    }

    .nav-link span::after {
        display: none;
    }

    .nav-link:hover span {
        transform: none;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #eb9d43;
    }

    /* Staggered fade-in per le voci menu */
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu li:nth-child(1) .nav-link { transition: color 0.3s ease, opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s; }
    .nav-menu li:nth-child(2) .nav-link { transition: color 0.3s ease, opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s; }
    .nav-menu li:nth-child(3) .nav-link { transition: color 0.3s ease, opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s; }
    .nav-menu li:nth-child(4) .nav-link { transition: color 0.3s ease, opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s; }
    .nav-menu li:nth-child(5) .nav-link { transition: color 0.3s ease, opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s; }

    /* Fix: .navbar.scrolled non deve sovrascrivere il colore bianco nel menu mobile overlay */
    .navbar.scrolled .nav-link {
        color: #ffffff;
    }
    .navbar.scrolled .nav-link:hover,
    .navbar.scrolled .nav-link.active {
        color: #eb9d43;
    }

    /* Hamburger toggle */
    .nav-toggle {
        display: block;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .nav-toggle.active {
        transform: rotate(90deg);
    }

    .nav-toggle.active .fa-bars::before {
        content: '\f00d';
    }

    .nav-cta {
        display: none;
    }

    /* CTA nel menu mobile */
    .nav-cta-mobile-item {
        display: list-item;
        margin-top: 1rem;
        opacity: 0;
        transform: translateY(20px);
        transition: color 0.3s ease, opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
    }

    .nav-menu.active .nav-cta-mobile-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-cta-mobile-item .btn-slide {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.6);
        font-size: 1rem;
        padding: 0.75rem 2rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .nav-cta-mobile-item .btn-slide::before {
        background: #ffffff;
    }

    .nav-cta-mobile-item .btn-slide:hover {
        color: #1a1a1a;
    }

    /* Blocca scroll quando menu aperto */
    body.menu-open {
        overflow: hidden;
    }

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

    .servizio-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .servizio-detail.reverse .servizio-detail-text,
    .servizio-detail.reverse .servizio-detail-features {
        order: unset;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .servizi-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-visual {
        order: -1;
    }

    .ai-cosmic {
        width: 250px;
        height: 250px;
    }

    .ai-icon-main {
        font-size: 3.5rem;
    }

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

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

    .cta-band-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 65vh;
        min-height: 400px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .servizi-mosaic {
        grid-template-columns: 1fr;
    }

    .mosaic-card {
        height: 280px;
    }

    .servizi-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-loghi-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-logo-item {
        min-height: 160px;
    }

    .portfolio-logo-item img {
        max-width: 260px;
        max-height: 110px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 6rem 0 3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .agenzia-image img,
    .agenzia-placeholder {
        height: 280px;
    }

    .cta-band {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        min-height: 350px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .logo-item {
        width: 120px;
        padding: 0 1rem;
    }

    .servizi-mosaic {
        grid-template-columns: 1fr;
    }

    .mosaic-card {
        height: 260px;
    }
}

/* ========================================
   COOKIE BANNER
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-inner p {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #ccc;
    min-width: 260px;
}

.cookie-banner-inner a {
    color: #eb9d43;
    text-decoration: underline;
}

.cookie-banner-inner a:hover {
    color: #d4872e;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cookie-btn-reject {
    background: transparent;
    border-color: #555;
    color: #ccc;
}

.cookie-btn-reject:hover {
    border-color: #ccc;
    color: #fff;
}

.cookie-btn-settings {
    background: transparent;
    border-color: #eb9d43;
    color: #eb9d43;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cookie-btn-settings:hover {
    background: rgba(235,157,67,0.15);
    color: #eb9d43;
}

.cookie-btn-accept {
    background: #eb9d43;
    border-color: #eb9d43;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #d4872e;
    border-color: #d4872e;
}

.cookie-banner.hiding {
    animation: cookieSlideDown 0.35s ease forwards;
}

@keyframes cookieSlideDown {
    from { transform: translateY(0); }
    to   { transform: translateY(110%); }
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1.25rem;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
