/* ================================================
   RESET & ROOT VARIABLES
   ================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #e8001c;
    --red-dark: #b0001a;
    --red-glow: rgba(232, 0, 28, 0.55);
    --red-soft: rgba(232, 0, 28, 0.12);
    --bg-void: #050508;
    --bg-deep: #0c0c10;
    --bg-card: #111118;
    --bg-card2: #16161e;
    --border: rgba(255, 255, 255, 0.06);
    --border-red: rgba(232, 0, 28, 0.35);
    --text: #f0f0f5;
    --text-muted: #8888a0;
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --t: 0.3s ease;
    --t-slow: 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-void);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

img {
    display: block;
}

/* ================================================
   TYPOGRAPHY HELPERS
   ================================================ */
.red-neon {
    color: var(--red);
    text-shadow: 0 0 25px var(--red-glow), 0 0 50px rgba(232, 0, 28, 0.25);
    font-style: normal;
}

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid var(--border-red);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.sec-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #fff;
}

.sec-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 4rem;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--t);
    box-shadow: 0 4px 20px var(--red-glow);
    position: relative;
    overflow: hidden;
}

.btn-red::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--t);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px var(--red-glow);
    color: #fff;
}

.btn-red:hover::before {
    opacity: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--t);
}

.btn-ghost:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 20px var(--red-soft);
}

.w-full {
    width: 100%;
    justify-content: center;
}

/* ================================================
   CTA COMPONENTS
   ================================================ */

/* Hero primary CTA — Richiedi Preventivo */
.btn-hero-primary {
    font-size: 1.15rem;
    padding: 1rem 2.2rem;
    position: relative;
    box-shadow: 0 6px 30px rgba(232, 0, 28, 0.55);
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 6px 30px rgba(232, 0, 28, 0.55);
    }

    50% {
        box-shadow: 0 8px 45px rgba(232, 0, 28, 0.85);
    }
}

.btn-badge {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-left: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero secondary CTA — Chiama Ora */
.btn-hero-call {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    transition: all var(--t);
    cursor: pointer;
}

.btn-hero-call i {
    font-size: 1.3rem;
    color: #4ddb94;
}

.btn-hero-call:hover {
    border-color: #4ddb94;
    background: rgba(77, 219, 148, 0.1);
    color: #4ddb94;
    box-shadow: 0 0 20px rgba(77, 219, 148, 0.2);
}

/* Navbar — Chiama Ora link */
.nav-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: #4ddb94 !important;
    transition: all var(--t);
}

.nav-tel i {
    font-size: 1rem;
}

.nav-tel:hover {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(77, 219, 148, 0.6);
}

.nav-tel::after {
    display: none !important;
}

/* ================================================
   STICKY CTA BAR (Mobile only)
   ================================================ */
.sticky-cta {
    display: none;
    /* visibile solo su mobile via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    background: rgba(5, 5, 8, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all var(--t);
    color: #fff;
}

.sticky-btn i {
    font-size: 1.2rem;
}

.sticky-call {
    background: rgba(77, 219, 148, 0.18);
    color: #4ddb94;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-call:hover {
    background: rgba(77, 219, 148, 0.3);
    color: #fff;
}

.sticky-quote {
    background: var(--red);
    color: #fff;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.sticky-quote:hover {
    background: var(--red-dark);
}

@media (max-width: 768px) {
    .sticky-cta {
        display: grid;
    }

    /* Padding bottom al body per non coprire contenuto */
    body {
        padding-bottom: 60px;
    }

    /* Nascondi nav-tel in navbar su mobile - viene già nella sticky */
    .nav-tel {
        display: none;
    }
}


/* ================================================
   SPLASH SCREEN
   ================================================ */
#splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-void);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#splash.out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#splash-canvas {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.splash-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    text-align: center;
}

.splash-ring {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px solid rgba(232, 0, 28, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 80px rgba(232, 0, 28, 0.1);
    animation: ringPulse 3s ease-in-out infinite;
}

.splash-ring::after {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(232, 0, 28, 0.15);
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
}

.splash-icons-row {
    display: flex;
    gap: 1.5rem;
}

.s-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: iconBurst 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) forwards;
    box-shadow: 0 0 20px rgba(232, 0, 28, 0.2);
}

@keyframes iconBurst {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.splash-logo-wrap {
    opacity: 0;
    transform: scale(0.85);
    animation: logoFade 0.8s ease 2s forwards;
}

@keyframes logoFade {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-logo-img {
    height: 110px;
    width: auto;
    /* No white background */
    padding: 0;
    filter: drop-shadow(0 0 30px rgba(232, 0, 28, 0.7));
    animation: logoGlow 2s ease-in-out infinite 2.5s;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(232, 0, 28, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 45px rgba(232, 0, 28, 1));
    }
}

.splash-tagline {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.6s ease 2.5s forwards;
}

.splash-bar-track {
    width: 280px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.4s ease 2.8s forwards;
}

.splash-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--red-dark), var(--red), #ff4455);
    box-shadow: 0 0 10px var(--red-glow);
    border-radius: 2px;
    animation: barFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) 3s forwards;
}

@keyframes barFill {
    0% {
        width: 0%
    }

    60% {
        width: 70%
    }

    100% {
        width: 100%
    }
}

.splash-pct {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeUp 0.4s ease 2.8s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
    }
}

/* ================================================
   NAVBAR
   ================================================ */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: transparent;
    transition: background var(--t), padding var(--t), border-color var(--t);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    padding: 0.7rem 0;
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo {
    height: 60px;
    width: auto;
    /* No white background - logo now dark-friendly */
    padding: 0;
    border-radius: 0;
    transition: all var(--t);
    filter: drop-shadow(0 0 12px rgba(232, 0, 28, 0.4));
}

.nav-logo:hover {
    filter: drop-shadow(0 0 22px rgba(232, 0, 28, 0.7));
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.nav-cta) {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    transition: color var(--t);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
    transition: width var(--t);
}

.nav-links a:not(.nav-cta):hover {
    color: #fff;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--red);
    color: #fff !important;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    transition: all var(--t);
    box-shadow: 0 0 20px rgba(232, 0, 28, 0.4);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px var(--red-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--t);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   HERO
   ================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--bg-void);
}

#hero-canvas {
    position: absolute;
    inset: 0;
}

.hero-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 0, 28, 0.12) 0%, transparent 70%);
    top: -100px;
    left: -150px;
    pointer-events: none;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 0, 28, 0.07) 0%, transparent 70%);
    bottom: 0;
    right: -100px;
    pointer-events: none;
    animation: floatGlow 10s ease-in-out infinite 2s;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.hero-inner {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d97e;
    box-shadow: 0 0 10px #00d97e;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.0;
    color: #fff;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
}

.hero-title .line-reveal {
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
    animation: lineUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.line-reveal.d2 {
    animation-delay: 0.15s;
}

.line-reveal.d3 {
    animation-delay: 0.3s;
}

.line-reveal.d4 {
    animation-delay: 0.45s;
}

.line-reveal.d5 {
    animation-delay: 0.6s;
}

@keyframes lineUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
    opacity: 0;
    animation: lineUp 0.8s ease 0.45s forwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    opacity: 0;
    animation: lineUp 0.8s ease 0.6s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: lineUp 0.8s ease 0.75s forwards;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hstat {
    text-align: left;
}

.hstat-num {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.hstat span {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}

.hstat p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hstat-div {
    width: 1px;
    height: 50px;
    background: var(--border);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(8px)
    }
}

/* ================================================
   SECTIONS SHARED
   ================================================ */
.section {
    padding: 7rem 0;
}

.dark-section {
    background: var(--bg-deep);
}

/* ================================================
   REVEAL ANIMATION
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--t-slow), transform 0.9s var(--t-slow);
}

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

/* ================================================
   CHI SIAMO
   ================================================ */
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.acard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}

.acard::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    transform: scaleX(0);
    transition: transform var(--t);
}

.acard:hover {
    border-color: var(--border-red);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.acard:hover::before {
    transform: scaleX(1);
}

.acard-icon {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.acard h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.acard p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ================================================
   SERVIZI
   ================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.scard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--t);
    cursor: default;
}

.scard-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    box-shadow: 0 0 12px var(--red-glow);
}

.scard:hover {
    border-color: var(--border-red);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(232, 0, 28, 0.05);
    background: var(--bg-card2);
}

.scard:hover .scard-line {
    transform: scaleX(1);
}

.scard-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid var(--border-red);
    border-radius: 16px;
    margin-bottom: 1.4rem;
    transition: all var(--t);
}

.scard:hover .scard-icon {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 30px var(--red-glow);
    transform: scale(1.05);
}

.scard h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.scard p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================================
   OFFERTE
   ================================================ */
/* ================================================
   OFFERTE — Slider con dots e swipe
   ================================================ */

/* Wrapper esterno: sfondo + bordo decorativo, NO overflow:hidden
   così lo slider non viene tagliato */
.offer-wrapper {
    background: linear-gradient(135deg, #0e0e14, #151520);
    border: 1px solid var(--border-red);
    border-radius: 16px;
    padding: 3rem 3rem 2rem;
    position: relative;
    box-shadow: 0 0 60px rgba(232, 0, 28, 0.08);
}

/* Ribbon "PROMO" angolo in alto a destra — clip solo sul ribbon */
.offer-wrapper::before {
    content: 'PROMO';
    position: absolute;
    top: 24px;
    right: -35px;
    background: var(--red);
    color: #fff;
    padding: 5px 50px;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    transform: rotate(45deg);
    box-shadow: 0 0 20px var(--red-glow);
    z-index: 2;
    pointer-events: none;
}

/* Slider: contenitore con overflow:hidden per scorrimento orizzontale */
.offer-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    min-height: 400px; /* Garantisce che lo slider sia visibile anche durante il caricamento */
}
@media (max-width: 768px) {
    .offer-slider {
        min-height: 520px; /* Più alto su mobile causa orientamento verticale */
    }
}

/* Track: flex row che trasla */
.offer-track {
    display: flex;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Singola card — occupa esattamente il 100% del slider */
.offer-card {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    position: relative;
    user-select: none;
    box-sizing: border-box;
}

/* Intestazione card */
.offer-header {
    margin-bottom: 1rem;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid var(--border-red);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 0.8rem;
}

.offer-title {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Body: lista componenti + box prezzo */
.offer-body {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 1.5rem;
}

.offer-list {
    list-style: none;
    flex: 1;
    min-width: 0;
}

.offer-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    line-height: 1.4;
}

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

.offer-list li i {
    color: var(--red);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Box prezzo */
.offer-price-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    text-align: center;
    width: 280px;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(232, 0, 28, 0.1);
}

.price-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.price-amount {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    text-shadow: 0 0 30px var(--red-glow);
}

.price-euro {
    font-size: 1rem;
    color: var(--text-muted);
    vertical-align: super;
}

.price-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    line-height: 1.5;
}

.price-cta {
    margin-top: 1.2rem;
}

/* Hint swipe testuale sotto i dots */
.offer-swipe-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0.6;
}

/* Dots */
.offer-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2rem;
    position: relative;
    z-index: 5;
}

.offer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.offer-dot:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.2);
}

.offer-dot.active {
    background: var(--red);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 12px var(--red-glow);
    border-color: transparent;
}

/* Loading spinner */
.offer-loading {
    text-align: center;
    font-size: 2rem;
    color: var(--red);
    animation: spin 1s linear infinite;
    padding: 3rem 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Tablet ── */
@media (max-width: 900px) {
    .offer-wrapper {
        padding: 2.5rem 2rem 1.8rem;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .offer-wrapper {
        padding: 2rem 1.4rem 1.6rem;
    }

    .offer-body {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .offer-price-box {
        width: 100%;
        padding: 1.5rem 1.2rem;
    }

    .price-amount {
        font-size: 4rem;
    }

    .offer-list li {
        font-size: 0.92rem;
    }

    .offer-title {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    }
}

/* ================================================
   PARTNER
   ================================================ */
/* ================================================
   PARTNERS — Layout a griglia uniforme e responsivo
   ================================================ */
.partners-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.plogo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Contenitore immagine a dimensioni fisse uguali per tutti */
.plogo-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    transition: all var(--t);
    overflow: hidden;
}

/* Logo con sfondo bianco (jpg/svg con sfondo) */
.plogo-img-wrap.plogo-bg-white {
    background: #ffffff;
    padding: 8px 12px; /* Ridotto il padding per ingrandire il logo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.85;
}

/* Logo con sfondo trasparente (png/svg trasparente) */
.plogo-img-wrap.plogo-bg-transparent {
    background: transparent;
    padding: 6px;
    opacity: 0.85;
    /* filtro per rendere visibili loghi scuri su sfondo scuro */
    filter: brightness(0) invert(1);
}

.plogo-img-wrap.plogo-bg-transparent .plogo-img {
    filter: none;
}

.plogo:hover .plogo-img-wrap {
    opacity: 1;
    transform: translateY(-5px);
}

.plogo:hover .plogo-img-wrap.plogo-bg-white {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15), 0 0 20px var(--red-glow);
}

.plogo:hover .plogo-img-wrap.plogo-bg-transparent {
    filter: brightness(0) invert(1) drop-shadow(0 0 12px var(--red-glow));
}

.plogo-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.plogo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 0.4rem;
    white-space: normal;
    /* permette il wrap del testo */
    word-break: break-word;
    text-align: center;
    line-height: 1.3;
    max-width: 130px;
}

.plogo-divider {
    display: none;
    /* sostituito dalla griglia */
}

/* ── Tablet: 2 colonne ── */
@media (max-width: 900px) {
    .partners-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        padding: 2.5rem 2rem;
    }

    .plogo-img-wrap {
        width: 150px;
        height: 72px;
    }
}

/* ── Smartphone ── */
@media (max-width: 480px) {
    .partners-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem 1rem;
        padding: 2rem 1.2rem;
    }

    .plogo-img-wrap {
        width: 120px;
        height: 60px;
        border-radius: 8px;
    }

    .plogo-sub {
        font-size: 0.62rem;
        letter-spacing: 0.8px;
        max-width: 115px;
    }
}


/* ================================================
   CONTATTI
   ================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-intro {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.9rem;
    transition: all var(--t);
    cursor: pointer;
    color: var(--text);
}

.contact-link-card:hover {
    border-color: var(--border-red);
    transform: translateX(8px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    background: var(--bg-card2);
    color: var(--text);
}

.clc-icon {
    width: 46px;
    height: 46px;
    background: var(--red-soft);
    border: 1px solid var(--border-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--red);
    flex-shrink: 0;
    transition: all var(--t);
}

.contact-link-card:hover .clc-icon {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 20px var(--red-glow);
}

.ig-icon {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.15), rgba(255, 120, 60, 0.15));
    border-color: rgba(228, 64, 95, 0.35);
}

.instagram-card:hover .ig-icon {
    background: linear-gradient(135deg, #e4405f, #f77737);
    color: #fff;
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.5);
}

.instagram-card:hover {
    border-color: rgba(228, 64, 95, 0.5);
}

.clc-info {
    flex: 1;
}

.clc-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.clc-info strong {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.clc-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all var(--t);
}

.contact-link-card:hover .clc-arrow {
    color: var(--red);
    transform: translateX(4px);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-form h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
}

.contact-form h3 i {
    color: var(--red);
}

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

.fgroup {
    margin-bottom: 1.3rem;
}

.fgroup label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.fgroup input,
.fgroup textarea {
    width: 100%;
    background: var(--bg-void);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    transition: all var(--t);
    resize: none;
}

.fgroup input:focus,
.fgroup textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(232, 0, 28, 0.12);
}

.fgroup input::placeholder,
.fgroup textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* ================================================
   FOOTER
   ================================================ */
#footer {
    background: #030305;
    border-top: 1px solid var(--border);
    padding: 5rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .footer-logo {
    height: 65px;
    /* No white background */
    padding: 0;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 15px rgba(232, 0, 28, 0.35));
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--t);
    background: var(--bg-card);
}

.social-btn:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 15px rgba(232, 0, 28, 0.25);
    transform: translateY(-3px);
}

.footer-nav h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.footer-nav a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    transition: all var(--t);
}

.footer-nav a:hover {
    color: var(--red);
    padding-left: 4px;
}

.footer-piva {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.2);
}

.footer-legal-info {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal-info p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.footer-legal-info strong {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.25);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-area-served {
    width: 100%;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    letter-spacing: 0.5px;
}

.footer-area-served i {
    color: rgba(232, 0, 28, 0.5);
    margin-right: 4px;
}

/* ================================================
   AREA SERVITA
   ================================================ */
.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.area-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.area-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--t);
    box-shadow: 0 0 10px var(--red-glow);
}

.area-card:hover {
    border-color: var(--border-red);
    transform: translateY(-4px);
    background: var(--bg-card2);
}

.area-card:hover::after {
    transform: scaleY(1);
}

.area-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: var(--red-soft);
    border: 1px solid var(--border-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--red);
    transition: all var(--t);
    margin-bottom: 0.4rem;
}

.area-card:hover .area-icon {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 15px var(--red-glow);
}

.area-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.area-card p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Tablet: 2 colonne ── */
@media (max-width: 900px) {
    .area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile: card orizzontali full-width ── */
@media (max-width: 600px) {
    .area-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .area-card {
        flex-direction: row;
        /* icona a sx, testo a dx */
        align-items: center;
        padding: 1.1rem 1.2rem;
        gap: 1rem;
        border-radius: 10px;
        transform: none !important;
        /* no translateY su mobile */
    }

    .area-card::after {
        /* linea accent in basso invece che a sx */
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: 2px;
        transform: scaleX(0);
        transform-origin: left;
    }

    .area-card:hover::after {
        transform: scaleX(1);
    }

    .area-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        font-size: 1.3rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .area-card-text {
        flex: 1;
        min-width: 0;
    }

    .area-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
    }

    .area-card p {
        font-size: 0.82rem;
        line-height: 1.5;
        /* tronca testo long su schermi piccoli */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.area-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.area-note i {
    color: var(--red);
}

.area-note a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ================================================
   RESPONSIVE — MOBILE FIRST COMPLETE
   sm  < 480px  (phone)
   md  < 768px  (tablet portrait)
   lg  < 1024px (tablet landscape / small desktop)
   ================================================ */

/* ── Tablet landscape & piccoli desktop ── */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2.6rem, 6vw, 5rem);
    }

    .about-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Tablet portrait ── */
@media (max-width: 768px) {

    /* Navbar mobile */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 8, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
        backdrop-filter: blur(16px);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a:not(.nav-cta) {
        font-size: 1.6rem;
    }

    .nav-cta {
        font-size: 1.2rem;
        padding: 0.7rem 2rem;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-btns .btn-red,
    .hero-btns .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .hstat-div {
        display: none;
    }

    .hstat-num {
        font-size: 2.2rem;
    }

    /* Sezioni */
    .section {
        padding: 4.5rem 0;
    }

    .sec-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

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

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

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

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

    .offer-body {
        flex-direction: column;
    }

    .offer-price-box {
        width: 100%;
        min-width: unset;
    }

    /* partners: handled by new grid rules */

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Splash */
    .splash-icons-row {
        gap: 0.8rem;
    }

    .s-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        border-radius: 8px;
    }

    .splash-ring {
        width: 260px;
        height: 260px;
    }

    .splash-logo-img {
        height: 60px;
    }
}

/* ── Smartphone ── */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        padding-top: 70px;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.05;
    }

    .hero-badge {
        font-size: 0.72rem;
    }

    .scroll-hint {
        display: none;
    }

    /* Servizi: 1 colonna su telefono */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .scard {
        padding: 1.6rem;
    }

    .scard-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 12px;
    }

    /* About cards vertical */
    .about-cards {
        grid-template-columns: 1fr;
    }

    .acard {
        padding: 1.5rem;
    }

    /* Offer */
    .offer-wrapper {
        padding: 2rem 1.5rem;
    }

    .offer-wrapper::before {
        display: none;
    }

    .price-amount {
        font-size: 4rem;
    }

    /* partners: handled by new grid rules */

    /* Contatti */
    .contact-form {
        padding: 1.8rem 1.2rem;
    }

    .contact-link-card {
        padding: 1rem;
    }

    .clc-info strong {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        height: 45px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    /* Splash */
    .splash-icons-row {
        gap: 0.6rem;
    }

    .s-icon {
        width: 38px;
        height: 38px;
        font-size: 1.0rem;
    }

    .splash-tagline {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .splash-bar-track {
        width: 220px;
    }
}