/* ============================================================
   RELL S.R.L. — pages.css
   Stili specifici per le singole pagine
   ============================================================ */

/* ── HERO HOME ───────────────────────────────────────────── */
.hero-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}
.hero-home__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}
.hero-home__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(42,48,64,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42,48,64,0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.hero-home__content {
    position: relative;
    z-index: 2;
    padding-block: var(--space-20);
}
.hero-home__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.hero-home__eyebrow-dot {
    width: 8px; height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}
.hero-home__eyebrow-text {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-accent-light);
}
.hero-home__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: var(--weight-black);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
    margin-bottom: var(--space-6);
}
.hero-home__title em {
    font-style: normal;
    color: var(--color-accent);
}
.hero-home__subtitle {
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    color: var(--color-text-muted);
    max-width: 55ch;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
}
.hero-home__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-16);
}
.hero-home__trust {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}
.hero-home__trust-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.hero-home__trust-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-black);
    color: var(--color-text);
    line-height: 1;
}
.hero-home__trust-label {
    font-size: var(--text-xs);
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}
.hero-home__trust-sep { width: 1px; height: 40px; background: var(--color-border); }
.hero-home__image {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50%;
    z-index: 0;
}
.hero-home__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
    mask-image: linear-gradient(90deg, transparent 0%, black 40%);
}

/* ── CHI SIAMO PAGE ──────────────────────────────────────── */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}
.about-intro__image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.about-intro__image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}
.about-intro__badge {
    position: absolute;
    bottom: var(--space-6);
    right: var(--space-6);
    background: rgba(10,12,15,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    text-align: center;
}
.about-intro__badge-year {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    color: var(--color-accent);
    line-height: 1;
}
.about-intro__badge-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}
.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.about-value-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border-top: 3px solid var(--color-accent);
}
.about-value-card__num {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    color: var(--color-surface-3);
    line-height: 1;
    margin-bottom: var(--space-4);
}
.about-value-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}
.about-value-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 100%; }

/* ── SERVICE DETAIL PAGE ─────────────────────────────────── */
.service-detail__hero { position: relative; }
.service-detail__overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
    align-items: start;
}
.service-detail__sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
}
.service-detail__sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border-top: 3px solid var(--color-accent);
}
.service-detail__sidebar-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-5);
}
.service-detail__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.service-detail__feature {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.service-detail__feature:hover { background: var(--color-surface-2); }
.service-detail__feature-icon { color: var(--color-accent-light); flex-shrink: 0; margin-top: 2px; }
.service-detail__feature-icon svg { width: 16px; height: 16px; }
.service-detail__feature-text { font-size: var(--text-sm); color: var(--color-text-muted); }
.service-detail__feature-text strong { display: block; color: var(--color-text); font-size: var(--text-sm); }
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-5);
}
.advantage-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}
.advantage-card__icon {
    width: 40px; height: 40px;
    background: var(--color-accent-glow);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent-light);
}
.advantage-card__icon svg { width: 20px; height: 20px; }
.advantage-card__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); margin-bottom: var(--space-1); }
.advantage-card__desc { font-size: var(--text-xs); color: var(--color-text-muted); max-width: 100%; }
.applications-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-3);
}
.application-tag {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.application-tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── SETTORI PAGE ────────────────────────────────────────── */
.sectors-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}
.sector-feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    transition: border-color var(--transition-base), transform var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.sector-feature-card:hover {
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
}
.sector-feature-card__header { display: flex; align-items: center; gap: var(--space-4); }
.sector-feature-card__icon {
    width: 56px; height: 56px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent-light);
    flex-shrink: 0;
}
.sector-feature-card__icon svg { width: 26px; height: 26px; }
.sector-feature-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
}
.sector-feature-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 100%; }
.sector-feature-card__tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.sector-feature-card__tag {
    padding: var(--space-1) var(--space-3);
    background: var(--color-surface-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}

/* ── CONTATTI PAGE ───────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-12);
    align-items: start;
}
.contact-info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
}
.contact-info-card__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-6);
}
.contact-info-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-icon {
    width: 40px; height: 40px;
    background: var(--color-accent-glow);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent-light);
    flex-shrink: 0;
}
.contact-info-icon svg { width: 18px; height: 18px; }
.contact-info-label { font-size: var(--text-xs); color: var(--color-text-dim); text-transform: uppercase; letter-spacing: var(--tracking-wider); margin-bottom: var(--space-1); }
.contact-info-value { font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-info-value strong { color: var(--color-text); font-size: var(--text-base); }
.contact-form-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}
.contact-form-wrap__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}
.contact-form-wrap__subtitle { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-8); max-width: 100%; }
.map-placeholder {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    height: 200px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
    color: var(--color-text-dim);
    font-size: var(--text-sm);
}
.map-placeholder svg { width: 32px; height: 32px; color: var(--color-accent-light); }
.map-embed {
    margin-top: var(--space-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    line-height: 0;
}

/* ── PREVENTIVO PAGE ─────────────────────────────────────── */
.quote-layout { max-width: 860px; margin-inline: auto; }
.quote-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
}
.quote-step-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent-light);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.quote-step-title__num {
    width: 28px; height: 28px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: #fff;
    flex-shrink: 0;
}

/* ── THANK YOU PAGE ──────────────────────────────────────── */
.thankyou-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: var(--space-20);
    text-align: center;
}
.thankyou-card {
    max-width: 520px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl, 24px);
    padding: var(--space-12) var(--space-10);
}
.thankyou-icon {
    width: 72px; height: 72px;
    background: rgba(34,197,94,0.12);
    border: 2px solid rgba(34,197,94,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--space-6);
    color: var(--color-success);
}
.thankyou-icon svg { width: 32px; height: 32px; }
.thankyou-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-black);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}
.thankyou-text { color: var(--color-text-muted); margin-bottom: var(--space-8); max-width: 100%; }
.thankyou-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ── PRIVACY / POLICY PAGES ──────────────────────────────── */
.policy-content {
    max-width: 820px;
    margin-inline: auto;
    padding-block: var(--space-16);
}
.policy-content h2 { font-size: var(--text-2xl); margin-top: var(--space-12); margin-bottom: var(--space-4); }
.policy-content h3 { font-size: var(--text-xl); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.policy-content p, .policy-content li { font-size: var(--text-base); color: var(--color-text-muted); max-width: 100%; }
.policy-content ul { list-style: disc; padding-left: var(--space-6); margin-top: var(--space-3); }
.policy-content li { margin-bottom: var(--space-2); }
