/* ! Main */
body{
background-color: rgba(var(--white-muted-rgb), 0.35);
}

:root {
/* ! Brand colors */
--phonetastico-color: #ff3131;

/* Menu */
--menu-bg: #FFFFFF;
--menu-color:  #0B0D12;

/* White System */
--white-premium: #FFFFFF;
--white-soft: #f5f5f7;
--white-muted: #EEF1F6;

/* Black Premium System */
--black-premium: #0B0D12;   /* hero, background principale */
--black-soft: #12141A;      /* section scure */
--black-muted: #1A1D24;     /* card scure */

/* Blue Trust */
--blue-premium: #0A3D91;    /* colore principale di fiducia */
--blue-soft: #E9F0FB;       /* sfondi chiari */
--blue-accent: #2e75e8;     /* CTA, link, focus */
--blue-deep: #081F4D;       /* testi scuri o sfondi profondi */
--blue-muted: #2B4C7E;      /* testi secondari */

/* Neutral Grays */
--gray-light: #E5E7EB;
--gray-medium: #6B7280;
--gray-dark: #1F2937;
--gray-deep: #111827;

/* Status Colors */
--success-trust: #16A34A;   /* verde fiducia */
--warning-soft: #F59E0B;    /* arancione warning */
--error-soft: #DC2626;      /* rosso errore */

/* Shadow System */
--shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
--shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.15);
--shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.25);

/* ! RGB colors */
/* Menu */
--menu-bg-rgb: 29, 29, 31;
--menu-color-rgb: 255, 255, 255;

/* White System */
--white-premium-rgb: 255, 255, 255;
--white-soft-rgb: 245, 245, 247;
--white-muted-rgb: 238, 241, 246;

/* Black Premium System */
--black-premium-rgb: 11, 13, 18;
--black-soft-rgb: 18, 20, 26;
--black-muted-rgb: 26, 29, 36;

/* Blue Trust */
--blue-premium-rgb: 10, 61, 145;
--blue-soft-rgb: 233, 240, 251;
--blue-accent-rgb: 31, 106, 225;
--blue-deep-rgb: 8, 31, 77;
--blue-muted-rgb: 43, 76, 126;

/* Neutral Grays */
--gray-light-rgb: 229, 231, 235;
--gray-medium-rgb: 107, 114, 128;
--gray-dark-rgb: 31, 41, 55;
--gray-deep-rgb: 17, 24, 39;

/* Status Colors */
--success-trust-rgb: 22, 163, 74;
--warning-soft-rgb: 245, 158, 11;
--error-soft-rgb: 220, 38, 38;

/* Shadow System */
--shadow-soft-rgb: 0, 0, 0, 0.1;
--shadow-medium-rgb: 0, 0, 0, 0.15;
--shadow-deep-rgb: 0, 0, 0, 0.25;
}
/* ─── HERO ─── */
.repair-hero {
width: 100%;
min-height: 520px;
background-color: var(--white-premium);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 100px 24px 80px;
text-align: center;
border-bottom: 1px solid var(--gray-light);
position: relative;
}

.repair-hero::before {
content: '';
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
background-size: 48px 48px;
pointer-events: none;
}

.repair-hero h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 860;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black-premium);
    max-width: 700px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.repair-hero h2 em {
font-style: normal;
color: var(--blue-accent);
text-decoration: underline;
}

.repair-hero p {
font-size: 18px;
color: var(--gray-medium);
max-width: 480px;
line-height: 1.6;
position: relative;
z-index: 4;
margin-bottom: 10px;
}

.repair-hero .lottie-animation{
    position: absolute;
    bottom: -100px;
    z-index: 3;
    mask-image: linear-gradient(to top, #000 5%, transparent);  
}

/* ─── TIMELINE SECTION ─── */
.timeline-section {
width: 100%;
max-width: 960px;
margin: 0 auto;
padding: 100px 24px 120px;
}

.section-header {
text-align: center;
margin-bottom: 80px;
}

.section-header h2 {
font-size: clamp(1.8rem, 3vw, 2.6rem);
font-weight: 800;
letter-spacing: -0.025em;
color: var(--black-premium);
margin-bottom: 12px;
}

.section-header p {
font-size: 17px;
color: var(--gray-medium);
max-width: 440px;
margin: 0 auto;
line-height: 1.6;
}

/* ─── TIMELINE ─── */
.timeline {
position: relative;
display: flex;
flex-direction: column;
gap: 0;
}

.timeline::before {
content: '';
position: absolute;
left: 39px;
top: 20px;
bottom: 20px;
width: 1px;
background: linear-gradient(to bottom, transparent, var(--gray-light) 8%, var(--gray-light) 92%, transparent);
}

.timeline-item {
display: grid;
grid-template-columns: 80px 1fr;
gap: 0 32px;
padding: 0 0 64px;
position: relative;
opacity: 0;
transform: translateY(24px);
transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
opacity: 1;
transform: translateY(0);
}

.timeline-item:last-child {
padding-bottom: 0;
}

/* Numero step */
.step-number {
display: flex;
flex-direction: column;
align-items: center;
gap: 0;
padding-top: 4px;
}

.step-dot {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--white-premium);
border: 1.5px solid var(--gray-light);
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 700;
color: var(--gray-medium);
flex-shrink: 0;
position: relative;
z-index: 1;
transition: all 0.3s ease;
}

/* Card contenuto */
.step-card {
background: var(--white-premium);
border: 1px solid var(--gray-light);
border-radius: 20px;
padding: 36px;
display: grid;
grid-template-columns: 1fr 280px;
gap: 32px;
align-items: center;
transition: box-shadow 0.3s ease, transform 0.3s ease;
position: relative;
overflow: hidden;
}

@supports(corner-shape: squircle){
    .step-card{
        border-radius: 50px;
        corner-shape: squircle;
    }
}

.step-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--gray-medium);
margin-bottom: 10px;
}

.step-card h3 {
font-size: clamp(1.4rem, 2.5vw, 1.9rem);
font-weight: 800;
letter-spacing: -0.02em;
color: var(--black-premium);
margin-bottom: 12px;
line-height: 1.2;
}

.step-card p {
font-size: 15px;
color: var(--gray-medium);
line-height: 1.7;
margin-bottom: 24px;
}

.step-detail-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 28px;
}

.step-detail-list li {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: var(--gray-dark);
}

.step-detail-list li::before {
content: '';
width: 5px; height: 5px;
border-radius: 50%;
background: var(--blue-accent);
flex-shrink: 0;
}

.step-img {
width: 100%;
height: 180px;
border-radius: 14px;
overflow: hidden;
background: var(--white-soft);
border: 1px solid var(--gray-light);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

@supports(corner-shape: squircle){
    .step-img{
        border-radius: 40px;
        corner-shape: squircle;
    }
}


.step-img img {
width: 100%; height: 100%;
object-fit: cover;
}

/* Step accent colors */
.step-card.accent-blue .step-dot-inner,
.step-card.accent-blue .step-label { color: var(--blue-accent); }

.step-card.accent-green .step-label { color: var(--success-trust); }
.step-card.accent-green .step-detail-list li::before { background: var(--success-trust); }

.step-card.accent-red .step-label { color: var(--phonetastico-color); }
.step-card.accent-red .step-detail-list li::before { background: var(--phonetastico-color); }

/* ─── GARANZIA BANNER ─── */
.guarantee-section {
width: 100%;
background-color: var(--black-premium);
padding: 80px 24px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 20px;
position: relative;
overflow: hidden;
}

.guarantee-section::before {
content: '';
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
background-size: 48px 48px;
}

.guarantee-badge {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--success-trust);
background: rgba(22,163,74,0.12);
border: 1px solid rgba(22,163,74,0.25);
border-radius: 999px;
padding: 5px 14px;
position: relative;
z-index: 1;
}

.guarantee-section h2 {
font-size: clamp(1.8rem, 3.5vw, 3rem);
font-weight: 860;
letter-spacing: -0.03em;
color: var(--white-premium);
max-width: 600px;
line-height: 1.15;
position: relative;
z-index: 1;
}

.guarantee-section p {
font-size: 17px;
color: rgba(255,255,255,0.5);
max-width: 480px;
line-height: 1.6;
position: relative;
z-index: 1;
}

.guarantee-section p strong {
color: var(--white-premium);
}

.guarantee-section p span{
    font-size: 9px;
}
.guarantee-section p span a{
    color: var(--white-muted);
    text-decoration: underline;
}
.guarantee-section p span a:hover{
    color: var(--blue-accent);
}

.guarantee-actions {
display: flex;
gap: 12px;
position: relative;
z-index: 1;
margin-top: 8px;
}

.cta-white {
background: var(--white-premium);
color: var(--black-premium);
}

.cta-white:hover {
background: var(--white-soft);
}

.guarantee-img {
width: 100%;
max-width: 600px;
height: 200px;
border-radius: 16px;
overflow: hidden;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.08);
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 1;
margin-top: 20px;
}

.guarantee-img img {
width: 100%; height: 100%;
object-fit: cover;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
.timeline::before { left: 19px; }

.timeline-item {
grid-template-columns: 48px 1fr;
gap: 0 16px;
}

.step-dot {
width: 28px; height: 28px;
font-size: 11px;
}

.step-card {
grid-template-columns: 1fr;
padding: 24px;
}

.step-img {
height: 150px;
}

.hero-actions {
flex-direction: column;
align-items: center;
}

.guarantee-actions {
flex-direction: column;
align-items: center;
}
}