/* ==========================================================================
   FM IMPIANTI — Unified Premium Design System (CSS centralizzato)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables (Light & Dark Theme)
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary: #F97316;
    --primary-light: #FF9D5C;
    --primary-glow: rgba(249, 115, 22, 0.3);
    --secondary: #1E3A5F;
    --secondary-dark: #0A1628;
    --accent: #3B82F6;
    
    /* Backgrounds */
    --bg-light: #FAFBFD;
    --bg-warm: #FFF8F3;
    --bg-card: #FFFFFF;
    --bg-footer: #0A1628;
    
    /* Text Colors */
    --text-main: #1E293B;
    --text-muted: #64748B;
    
    /* Glassmorphism & Borders */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --border-color: rgba(0, 0, 0, 0.05);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 25px 50px rgba(0, 0, 0, 0.06);
    --shadow-hero: 0 40px 80px rgba(0, 0, 0, 0.1);
    
    /* Semantic Colors */
    --wa-green: #25D366;
    --danger: #ef4444;
    
    /* Transitions & Motion */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    scroll-behavior: smooth;
}

[data-theme="dark"] {
    /* Color Palette Overrides */
    --secondary: #3B82F6;
    --secondary-dark: #070B13;
    --accent: #60A5FA;
    
    /* Backgrounds Overrides */
    --bg-light: #0B0F19;
    --bg-warm: #181109;
    --bg-card: #131B2E;
    --bg-footer: #05080E;
    
    /* Text Overrides */
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    
    /* Glassmorphism Overrides */
    --glass: rgba(11, 15, 25, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Shadows Overrides */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-premium: 0 25px 50px rgba(0, 0, 0, 0.4);
    --shadow-hero: 0 40px 80px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   2. Global Resets & Base Styles
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    transition: color 0.4s ease;
}

/* Anti-flicker Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    animation: loaderPulse 1s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

a {
    text-decoration: none;
    color: inherit;
}
a:visited {
    color: inherit;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation (Light/Dark Mode Ready)
   -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
    padding: 10px 5%;
    box-shadow: var(--shadow-medium);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    color: var(--secondary);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-text span {
    display: block;
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.06);
}

.nav-cta {
    background: var(--secondary) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.nav-cta:hover {
    background: var(--primary) !important;
    box-shadow: var(--primary-glow) !important;
    transform: translateY(-2px);
}

/* Back button in landing pages header */
.btn-back {
    text-decoration: none;
    color: var(--secondary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-back:hover {
    background: var(--primary-glow);
    transform: translateX(-3px);
}

/* Mobile toggle & Navigation Overlay */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 1001;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.nav-overlay a {
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.nav-overlay a:hover {
    color: var(--primary);
    transform: translateX(10px);
}

/* Theme Switcher Toggle (Sole/Luna) */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    color: var(--secondary);
    padding: 8px;
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: rgba(249, 115, 22, 0.08);
    color: var(--primary);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 6px;
    margin-left: 15px;
    align-items: center;
}

.lang-switch a {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--border-color);
    transition: var(--transition);
}

.lang-switch a.active, .lang-switch a:hover {
    color: #fff;
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   4. Promo Bar & Banners
   -------------------------------------------------------------------------- */
.promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #1E3A5F 0%, #0A1628 100%);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.82rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.promo-bar-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-bar-badge {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: promoPulse 2s ease-in-out infinite;
}

.promo-bar-text {
    color: rgba(255, 255, 255, 0.9);
}

.promo-bar-link {
    color: var(--primary-light);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.promo-bar-link:hover {
    color: #fff;
    text-decoration: underline;
}

.promo-bar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.promo-bar-close:hover {
    color: #fff;
}

@keyframes promoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

header {
    top: 40px !important;
}

body.promo-closed header {
    top: 0 !important;
}

body {
    padding-top: 106px !important;
}

body.promo-closed {
    padding-top: 80px !important;
}

/* --------------------------------------------------------------------------
   5. Hero Sections (Homepage & Service/Landing Pages)
   -------------------------------------------------------------------------- */
/* Homepage Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-warm) 50%, var(--bg-card) 100%);
    transition: background 0.4s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
    animation: meshFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    animation: meshFloat 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px,-20px) scale(1.05); }
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.3s ease-out, opacity 0.3s;
    opacity: 0;
}

.hero:hover .hero-glow {
    opacity: 1;
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: decoFloat 6s ease-in-out infinite;
}

.hero-deco-1 { top: 15%; left: 8%; width: 12px; height: 12px; background: var(--primary); opacity: 0.2; }
.hero-deco-2 { top: 30%; left: 45%; width: 8px; height: 8px; background: var(--accent); opacity: 0.15; animation-delay: 1s; }
.hero-deco-3 { bottom: 25%; left: 5%; width: 18px; height: 18px; border: 2px solid var(--primary); opacity: 0.12; animation-delay: 2s; }
.hero-deco-4 { top: 20%; right: 10%; width: 6px; height: 6px; background: var(--secondary); opacity: 0.1; animation-delay: 0.5s; }

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.hero-content {
    padding: 0 8% 0 10%;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 35px;
    backdrop-filter: blur(10px);
    animation: badgeSlideIn 0.8s var(--bounce) 0.5s both;
}

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

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    line-height: 1.08;
    margin-bottom: 30px;
    color: var(--secondary-dark);
    letter-spacing: -0.03em;
    animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

[data-theme="dark"] .hero h1 {
    color: #fff;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #FF6B35, var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.hero p {
    max-width: 520px;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    line-height: 1.8;
    animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.hero-image-wrap {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px 60px 0;
}

.hero-image-container {
    width: 100%;
    height: 85vh;
    max-height: 700px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-hero);
    animation: heroImgIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.hero-image-container:hover img {
    transform: scale(1.03);
}

.hero-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.5), transparent);
    pointer-events: none;
}

.hero-image-float {
    position: absolute;
    bottom: 40px;
    left: 30px;
    z-index: 3;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 18px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-medium);
    animation: floatBadgeIn 1s var(--bounce) 1.5s both;
}

.hero-image-float-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}

.hero-image-float-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
}

[data-theme="dark"] .hero-image-float-text {
    color: #fff;
}

.hero-image-float-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

@keyframes heroImgIn {
    from { opacity: 0; transform: translateX(60px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

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

/* Service/Landing Page Hero */
.service-hero {
    position: relative;
    height: 80vh;
    min-height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 1.5s ease, filter 1s ease;
}

.service-hero .hero-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 0 5%;
}

.service-hero .hero-overlay h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #fff !important;
}

.service-hero .hero-overlay p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 500;
}

/* Header transition during scroll on landing pages */
.scrolled-header .hero-bg img {
    transform: scale(1.1) translateY(60px);
    filter: blur(12px);
    opacity: 0.15;
}

.scrolled-header .hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.scrolled-header .hero-overlay h1 {
    transform: scale(0.4) translateY(0);
    color: var(--secondary) !important;
    margin: 0;
    text-shadow: none;
    font-weight: 800;
}

.scrolled-header .hero-overlay p {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. Buttons & Micro-Interactions
   -------------------------------------------------------------------------- */
.button-group {
    display: flex;
    gap: 16px;
    align-items: center;
    animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.btn {
    padding: 18px 36px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-p {
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    color: #fff;
    box-shadow: 0 8px 30px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

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

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

.btn-p:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--border-color);
    padding: 16px 30px;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   7. Sections & Content Layouts
   -------------------------------------------------------------------------- */
.section {
    padding: clamp(80px, 10vw, 130px) 0;
}

.section-divider {
    height: 1px;
    max-width: 200px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-header {
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--secondary);
    letter-spacing: -0.03em;
}

[data-theme="dark"] .section-header h2 {
    color: #fff;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 550px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered p {
    margin: 15px auto 0;
}

/* Trust Bar */
.trust-bar {
    padding: 50px 5%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.trust-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.04), rgba(249, 115, 22, 0.01));
    border: 1px solid rgba(249, 115, 22, 0.08);
    transition: var(--transition);
}

.trust-item:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.04));
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.08);
}

.trust-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

/* Brand Logos Section */
.brands-section {
    padding: 50px 5%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.brands-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 30px;
}

.brands-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.brands-grid img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.35);
    transition: var(--transition);
}

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

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    opacity: 0.25;
    letter-spacing: 1px;
    transition: var(--transition);
    user-select: none;
}

.brand-text:hover {
    opacity: 0.7;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-info p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 45px;
    padding: 35px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.stat-item h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 80px;
}

.value-card {
    background: var(--bg-card);
    padding: 40px 35px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    color: #fff;
    transform: scale(1.05) rotate(-3deg);
}

.value-card h4 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

[data-theme="dark"] .value-card h4 {
    color: #fff;
}

.value-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   8. Services Components
   -------------------------------------------------------------------------- */
.services-section {
    background: var(--secondary-dark);
    color: #fff;
    border-radius: 60px;
    margin: 0 20px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .services-section {
    border-radius: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(249, 115, 22, 0.08), transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.05), transparent 50%);
    pointer-events: none;
}

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

.services-section .section-header h2 {
    color: #fff;
}

.services-section .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 80px rgba(249, 115, 22, 0.05);
}

.service-img {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.08);
}

.service-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.8), transparent);
}

.service-body {
    padding: 35px 30px;
}

.service-body h3 {
    font-family: 'Outfit';
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}

.service-body p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.service-card:hover .service-arrow {
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    border-color: transparent;
    color: #fff;
    transform: translateX(5px);
}

.horizontal-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.horizontal-card .service-img {
    height: 100%;
    min-height: 350px;
}

.horizontal-card .service-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 40px;
}

/* --------------------------------------------------------------------------
   9. Grohe SAT Section & Map
   -------------------------------------------------------------------------- */
.grohe-section {
    background: var(--bg-card);
    position: relative;
    overflow: visible;
    transition: background 0.4s ease;
}

.grohe-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(249, 115, 22, 0.03) 100%);
}

.grohe-flex {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

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

.grohe-logo-wrap {
    display: inline-flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 16px;
    background: var(--border-color);
    margin-bottom: 30px;
}

.grohe-logo-wrap img {
    height: 40px;
    display: block;
}

.grohe-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .grohe-content h2 {
    color: #fff;
}

.grohe-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

.grohe-map-wrap {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 4px solid var(--bg-card);
    outline: 1px solid var(--border-color);
}

.grohe-map-wrap iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* --------------------------------------------------------------------------
   10. Booking, Forms & Contact Grid
   -------------------------------------------------------------------------- */
.booking-section {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.1), transparent 70%);
    pointer-events: none;
}

.booking-inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.booking-section h2 {
    color: #fff !important;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.booking-section > .container > .booking-inner > p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.form-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 45px;
    border-radius: 32px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.form-card form {
    display: grid;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

select.form-input {
    appearance: none;
    cursor: pointer;
}

select.form-input option {
    background: var(--secondary-dark);
    color: #fff;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0;
}

.privacy-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.privacy-check label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.privacy-check label a {
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--primary-glow);
}

.booking-note {
    margin-top: 30px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Dedicated Contacts Page Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
    background: var(--bg-card);
    border-radius: 60px 60px 0 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -30px 60px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100%;
    transition: background 0.4s ease;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.contact-methods {
    display: grid;
    gap: 20px;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px 30px;
    background: var(--bg-card);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.method-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.method-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    font-size: 1.6rem;
    color: var(--primary);
}

.method-card h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.method-card p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

[data-theme="dark"] .method-card p {
    color: #fff;
}

.method-card.wa-card {
    border-color: rgba(37, 211, 102, 0.2);
}

.method-card.wa-card:hover {
    border-color: #25D366;
}

.method-card.wa-card .method-icon {
    background: rgba(37, 211, 102, 0.1);
}

.method-card.wa-card .method-icon i {
    color: #25D366;
}

.orari-card {
    padding: 24px 28px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.orari-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.orari-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.orari-row:last-child {
    border-bottom: none;
}

.orari-day {
    font-weight: 600;
    color: var(--secondary);
}

[data-theme="dark"] .orari-day {
    color: #fff;
}

.orari-time {
    color: var(--text-muted);
}

.contact-form-container {
    background: var(--bg-card);
    padding: 50px 45px;
    border-radius: 32px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

[data-theme="dark"] .contact-form-container h3 {
    color: #fff;
}

.contact-form-container > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

[data-theme="dark"] .form-group label {
    color: #fff;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-main);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

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

.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.privacy-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.privacy-row label {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.privacy-row a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.map-wrapper {
    margin-top: 70px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 420px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --------------------------------------------------------------------------
   11. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-section {
    padding: 100px 5%;
    background: var(--bg-light);
    transition: background 0.4s ease;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--secondary);
    margin-bottom: 10px;
}

[data-theme="dark"] .testimonials-header h2 {
    color: #fff;
}

.testimonials-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 35px 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.85;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
}

[data-theme="dark"] .testimonial-name {
    color: #fff;
}

.testimonial-loc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
    padding: 14px 24px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-soft);
}

.google-badge img {
    height: 22px;
}

.google-badge span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.google-badge .g-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   12. Regional Landing Specific Styles
   -------------------------------------------------------------------------- */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.content-body h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--secondary);
}

[data-theme="dark"] .content-body h2 {
    color: #fff;
}

.content-body p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.85;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-main);
}

.feature-list i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 3px;
}

.sidebar {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 30px;
    position: sticky;
    top: 100px;
    height: fit-content;
    border: 1px solid var(--border-color);
}

.sidebar h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

[data-theme="dark"] .sidebar h3 {
    color: #fff;
}

.btn-call {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    background: var(--secondary);
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition);
    justify-content: center;
    width: 100%;
}

.btn-call:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    background: var(--primary);
}

.btn-call-tech {
    background: var(--danger);
}

.btn-call-tech:hover {
    background: #dc2626;
}

.btn-call-wa {
    background: var(--wa-green);
}

.btn-call-wa:hover {
    background: #20ba5a;
}

/* Page container for landing pages */
.page-container {
    max-width: 1100px;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 5;
    background: var(--bg-card);
    box-shadow: 0 -30px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* FAQ Details in Landing Pages */
.details-grid details {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 16px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.details-grid details[open] {
    border-color: var(--primary);
    background: var(--bg-card);
}

.details-grid summary {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .details-grid summary {
    color: #fff;
}

.details-grid summary::-webkit-details-marker {
    display: none;
}

.details-grid details p {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Floating contact icons */
.fixed-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-icon {
    width: 58px;
    height: 58px;
    background: var(--bg-card);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.c-icon:hover {
    transform: translateY(-4px) scale(1.05);
    color: var(--primary);
}

.c-icon.wa {
    background: #25D366;
    color: #fff;
    border-color: transparent;
}

.c-icon.wa:hover {
    background: #20ba5a;
    color: #fff;
}

/* --------------------------------------------------------------------------
   13. Footer (Light/Dark Mode Ready)
   -------------------------------------------------------------------------- */
footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    transition: background-color 0.4s ease;
}

footer .container {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 30px !important;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 22px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.88rem;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.legal-info {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
}

.footer-logo {
    height: 55px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    object-fit: contain;
    display: block;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    transition: var(--transition) !important;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary-light) !important;
    transform: translateY(-3px) !important;
}

.operazioni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.operazioni-grid li {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.operazioni-grid i {
    color: var(--primary);
    font-size: 0.7rem;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* WhatsApp Floating Button */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.wa-float::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* Premium active scale feedback for tactile experience on mobile */
.btn:active, 
.nav-cta:active, 
.btn-submit:active, 
.theme-toggle-btn:active, 
.mobile-toggle:active, 
.wa-float:active, 
.method-card:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

.wa-float svg {
    display: block;
}

/* --------------------------------------------------------------------------
   14. Animations (Micro-interactions)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes revealFallback {
    to { opacity: 1; transform: none; }
}

.reveal, .reveal-left, .reveal-right {
    animation: revealFallback 0s 1.5s forwards;
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    animation: none;
}

/* --------------------------------------------------------------------------
   15. Media Queries & Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        padding: 140px 5% 40px;
        order: 1;
    }
    
    .hero-image-wrap {
        padding: 20px;
        order: 2;
    }
    
    .hero-image-container {
        height: 50vh;
        max-height: 400px;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .button-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-section {
        margin: 0;
        border-radius: 40px 40px 0 0;
    }
    
    .horizontal-card {
        grid-template-columns: 1fr;
    }
    
    .horizontal-card .service-img {
        min-height: 250px;
    }
    
    .grohe-flex {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-image-float {
        display: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    footer .footer-grid {
        text-align: center;
    }
    
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .operazioni-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .fixed-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .wa-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    
    .wa-float svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 12px 5%;
    }
    
    .logo img {
        height: 44px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero-image-container {
        height: 40vh;
        border-radius: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .service-img {
        height: 220px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .trust-bar-inner {
        gap: 30px;
    }
    
    .trust-item {
        font-size: 0.8rem;
    }
    
    .values-grid {
        gap: 16px;
    }
    
    .value-card {
        padding: 30px 25px;
    }
    
    .stats {
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 2.2rem;
    }
    
    .top-bar {
        font-size: 0.72rem;
        gap: 12px;
        padding: 7px 5%;
    }
    
    .brands-grid {
        gap: 28px;
    }
    
    .brands-grid img {
        height: 24px;
    }
    
    .testimonials-section {
        padding: 60px 5%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .testimonial-card {
        padding: 28px 22px;
    }
    
    /* Contact Page mobile styles */
    .main-container {
        padding: 50px 5%;
        border-radius: 40px 40px 0 0;
    }
    
    .method-card {
        padding: 20px;
        gap: 16px;
    }
    
    .method-card p {
        font-size: 0.95rem;
    }
    
    .contact-form-container {
        padding: 28px 20px;
        border-radius: 24px;
    }
    
    .map-wrapper {
        height: 300px;
        border-radius: 24px;
        margin-top: 40px;
    }
    
    .btn-submit {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    .method-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .method-icon i {
        font-size: 1.3rem;
    }
    
    .method-card h4 {
        font-size: 0.72rem;
    }
    
    .method-card p {
        font-size: 0.88rem;
        word-break: break-word;
    }
    
    .orari-card {
        padding: 18px 16px;
    }
    
    .contact-form-container h3 {
        font-size: 1.3rem;
    }
    
    .form-group input, .form-group textarea, .form-group select {
        padding: 13px 14px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Page-Specific Layouts
   ========================================================================== */

/* Sticky Section / Header scroll titles */
.sticky-title-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.scrolled .sticky-title-wrapper,
body.scrolled .sticky-title-wrapper {
    opacity: 1;
    transform: translateY(0);
}
.sticky-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-align: center;
}

/* Chi Siamo: History Section */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 80px 0;
    align-items: center;
}
.history-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: url('../hero_bg_unbranded.webp') center/cover;
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}
.history-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 25px;
}
.history-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .history-image {
        aspect-ratio: 3/2;
    }
}

/* Grohe SAT & Service Details */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}
.urgency-card {
    background: var(--bg-warm);
    border: 1px solid var(--primary-light);
    padding: 25px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    color: var(--primary);
}
[data-theme="dark"] .urgency-card {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.2);
}
.urgency-card i {
    font-size: 2.5rem;
    color: var(--primary);
}
.form-container {
    background: var(--bg-light);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-main);
}
/* Duplicate .sidebar and .btn-call removed — defined above */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 30px;
    }
    .sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
        padding: 30px;
    }
}

/* Notizie & Blog Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.article-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-card-body {
    padding: 28px;
}
.article-tag {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--secondary);
}
.article-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.article-meta i {
    font-size: 0.9rem;
}
.section-intro {
    text-align: center;
    margin-bottom: 50px;
}
.section-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}
.section-intro p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   8. Specific Page Layouts (Legal, Sitemap, Article & Promotions)
   -------------------------------------------------------------------------- */

/* Legal Pages (Cookie & Privacy Policy) */
.legal-container {
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.legal-container h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--secondary);
    margin-bottom: 30px;
}
.legal-container h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 40px;
    margin-bottom: 15px;
}
.legal-container p {
    margin-bottom: 20px;
    color: var(--text-main);
}
.legal-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.legal-container li {
    margin-bottom: 10px;
    color: var(--text-main);
}
@media (max-width: 900px) {
    .legal-container {
        padding: 40px 25px;
        margin-top: 100px;
    }
}
@media (max-width: 600px) {
    .legal-container h1 {
        font-size: 2rem;
    }
}

/* Sitemap Layout (`mappa-del-sito.html`) */
.sitemap-container {
    max-width: 1200px;
    margin: 120px auto 80px;
    padding: 0 20px;
}
.sitemap-header {
    text-align: center;
    margin-bottom: 60px;
}
.sitemap-header h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--secondary);
    margin-bottom: 15px;
}
.sitemap-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}
.sitemap-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.sitemap-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-glow);
}
.sitemap-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}
.sitemap-card-header i {
    font-size: 1.8rem;
    color: var(--primary);
}
.sitemap-card-header h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 700;
}
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sitemap-list li {
    position: relative;
    padding-left: 20px;
}
.sitemap-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    transition: var(--transition);
}
.sitemap-list li:hover::before {
    transform: translateX(3px);
}
.sitemap-list a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.sitemap-list a:hover {
    color: var(--primary);
}
@media (max-width: 768px) {
    .sitemap-container {
        margin: 90px auto 60px;
    }
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

/* Promotional Articles Layout */
.article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 30px 80px;
}
.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.article-meta-bar .tag {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}
.article-meta-bar span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.article-container h2 {
    font-size: 1.6rem;
    margin: 45px 0 18px;
    color: var(--secondary);
}
.article-container h3 {
    font-size: 1.2rem;
    margin: 30px 0 12px;
    color: var(--secondary);
}
.article-container p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 20px;
}
.article-container ul, .article-container ol {
    margin: 0 0 25px 20px;
}
.article-container li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-main);
}
.article-container strong {
    color: var(--secondary);
}
.cashback-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.cashback-table th {
    background: var(--secondary-dark);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}
.cashback-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-main);
}
.cashback-table tr:last-child td {
    border-bottom: none;
}
.cashback-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .cashback-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
.cashback-amount {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}
.highlight-box {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.03));
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    padding: 25px 30px;
    margin: 30px 0;
}
.highlight-box p {
    margin-bottom: 0;
}
.cta-box {
    background: linear-gradient(135deg, #1E3A5F, #2d5a8e);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    color: #fff;
}
.cta-box h3 {
    color: #fff !important;
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.cta-box p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.cta-box .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-box a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}
.cta-box a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}
.cta-box a.btn-wa {
    background: #25D366;
}
.cta-box a.btn-wa:hover {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}
.grohe-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 20px 0;
}
.grohe-badge img {
    height: 22px;
}
.grohe-badge span {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary);
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    margin-top: 30px;
    transition: var(--transition);
}
.back-link:hover {
    gap: 12px;
}
@media (max-width: 768px) {
    .article-container {
        padding: 40px 20px 60px;
    }
    .cta-box {
        padding: 30px 20px;
    }
    .cashback-table {
        font-size: 0.85rem;
    }
    .cashback-table th, .cashback-table td {
        padding: 10px 12px;
    }
}

/* Promo Estate — Mobile Responsive */
@media (max-width: 768px) {
    .promo-estate-section {
        padding: 50px 0 !important;
        overflow: visible !important;
    }
    .promo-estate-section .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .promo-estate-section h2 {
        font-size: 1.4rem !important;
    }
    .promo-estate-section .reveal-right > div {
        padding: 25px 20px !important;
        border-radius: 18px !important;
    }
    .promo-estate-section input,
    .promo-estate-section select,
    .promo-estate-section textarea {
        font-size: 0.9rem !important;
        padding: 11px 14px !important;
    }
    .promo-estate-section button[type="submit"] {
        padding: 13px !important;
        font-size: 0.95rem !important;
    }
}

/* ==========================================================================
   MOBILE GLOBAL FIX — Header, Landing Pages, Typography, Spacing
   ========================================================================== */

/* --- Promo Bar + Header: prevent overlap --- */
@media (max-width: 768px) {
    .promo-bar {
        position: fixed;
        top: 0;
        padding: 6px 10px;
        font-size: 0.72rem;
        min-height: 32px;
        z-index: 1001;
    }
    
    .promo-bar-badge {
        font-size: 0.62rem;
        padding: 2px 7px;
    }

    .promo-bar-text {
        display: none;
    }
    
    .promo-bar-close {
        font-size: 1.1rem;
        padding: 0 4px;
    }
    
    header {
        top: 32px !important;
        padding: 10px 4% !important;
    }
    
    body {
        padding-top: 100px !important;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .logo-text {
        font-size: 0.9rem !important;
    }
    
    .logo-text span {
        font-size: 0.5rem !important;
    }
}

/* --- Service Hero: shorter on mobile --- */
@media (max-width: 768px) {
    .service-hero {
        height: 50vh !important;
        min-height: 280px !important;
    }
    
    .service-hero .hero-overlay h1 {
        font-size: 1.8rem !important;
    }
    
    .service-hero .hero-overlay p {
        font-size: 0.95rem !important;
    }
}

/* --- Landing page content: proper mobile spacing --- */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .container {
        padding: 0 16px !important;
    }
    
    .details-grid .content-body {
        padding: 0 !important;
    }
    
    .content-body h2 {
        font-size: 1.4rem !important;
        margin-bottom: 16px !important;
    }
    
    .content-body p {
        font-size: 0.95rem !important;
        margin-bottom: 18px !important;
    }
    
    .feature-list li {
        font-size: 0.9rem !important;
    }
    
    /* Sidebar: full-width card on mobile */
    .sidebar {
        position: static !important;
        width: 100% !important;
        border-radius: 20px !important;
        padding: 25px 20px !important;
    }
    
    .sidebar h3 {
        font-size: 1.1rem !important;
    }
    
    .btn-call {
        font-size: 0.9rem !important;
        padding: 12px 16px !important;
    }
}

/* --- FAQ details on mobile --- */
@media (max-width: 768px) {
    details {
        padding: 14px !important;
        margin-bottom: 10px !important;
    }
    
    details summary {
        font-size: 0.92rem !important;
    }
    
    details p {
        font-size: 0.88rem !important;
    }
}

/* --- Footer on mobile --- */
@media (max-width: 768px) {
    footer {
        padding: 50px 0 20px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .operazioni-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* --- Mobile nav overlay fix --- */
@media (max-width: 768px) {
    .nav-overlay {
        padding-top: 80px;
    }
    
    .nav-overlay a {
        font-size: 1.4rem !important;
    }
}

/* --- Container inline padding overrides for landing pages --- */
@media (max-width: 768px) {
    .container[style*="padding: 60px 30px"] {
        padding: 30px 16px !important;
    }
    
    div[style*="padding: 60px 30px"] {
        padding: 30px 16px !important;
    }
    
    div[style*="padding:60px 30px"] {
        padding: 30px 16px !important;
    }
    
    div[style*="padding: 40px 30px"] {
        padding: 24px 16px !important;
    }
    
    div[style*="padding:40px 30px"] {
        padding: 24px 16px !important;
    }
}

/* --- GLOBAL MOBILE OVERFLOW PREVENTION --- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Prevent content containers from exceeding viewport */
    .container,
    .page-container,
    .details-grid,
    .content-body,
    .sidebar,
    article,
    main,
    .article-container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Hero overlay: ensure titles are fully visible */
    .service-hero .hero-overlay {
        padding: 0 20px !important;
        width: 100% !important;
    }
    
    .service-hero .hero-overlay h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
    }
    
    .service-hero .hero-overlay p {
        font-size: 0.92rem !important;
        padding: 0 8px !important;
    }
    
    /* Force text wrapping */
    .content-body p,
    .content-body h2,
    .content-body li,
    .sidebar p,
    .sidebar h3,
    details p,
    details summary,
    .feature-list li {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Fix containers with heavy inline styles */
    .container[style] {
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        margin-top: -20px !important;
        padding: 20px 16px !important;
    }
    
    /* Inline-styled divs that act as containers */
    div[style*="max-width:1000px"],
    div[style*="max-width: 1000px"],
    div[style*="max-width:1100px"],
    div[style*="max-width: 1100px"] {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Fix the "Dove operiamo" grid on mobile */
    ul[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        padding: 0 !important;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix tables that might overflow */
    table {
        max-width: 100% !important;
        display: block;
        overflow-x: auto;
    }
}
