/* SEM Energia - Premium Corporate Design System */
:root {
    --sem-green: #00CD8E;
    --sem-green-glow: rgba(0, 205, 142, 0.4);
    --sem-navy: #1D2B4A;
    --sem-dark: #0F172A;
    --sem-light: #F1F5F9;
    --sem-white: #FFFFFF;
    --text-primary: #1E293B;
    --text-muted: #64748B;
    --text-footer: #CBD5E1;
    /* High contrast footer text */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #00CD8E 0%, #00A3D7 100%);
    --gradient-dark: linear-gradient(135deg, #1D2B4A 0%, #0F172A 100%);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --transition-premium: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--sem-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    /* Do NOT use max-width:100vw — vw includes scrollbar and causes left strip */
}

/* Allineamento e Giustificazione universale dei testi lunghi */
.dual-col p,
.card-v3 p,
.care-box p,
.info-banner-grid p,
.footer-v3 p,
.section > .container > div > p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    /* Guard: never bleed past viewport */
    box-sizing: border-box;
}

/* Header & Glass Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-premium);
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
    /* Allow flex children to shrink */
}

.logo img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
    max-width: 160px;
}

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

.main-nav {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--sem-white);
    /* Default to white for hero visibility */
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.header.scrolled .main-nav a {
    color: var(--sem-navy);
    /* Switch to navy when scrolled on white bg */
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sem-green);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.btn-area {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px var(--sem-green-glow);
    transition: var(--transition-premium);
}

.btn-area:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--sem-green-glow);
}

/* Hero Section - Cinematic Video */
.hero-v3 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--sem-dark);
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.2);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: brightness(0.7) contrast(1.2) saturate(1.1);
    /* Cinematic sunlit depth */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%);
    /* Cinematic vignette */
}

/* Sub-page Hero Refinement */
.hero-sub {
    position: relative;
    padding: 180px 0 100px;
    background: var(--sem-navy);
    color: white;
    overflow: hidden;
}

.hero-sub .hero-bg {
    opacity: 0.4;
}

.hero-sub .hero-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 800px;
}

.hero-v3 h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-v3 .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-v3 p {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 45px;
    font-weight: 400;
}

/* Featured Sections */
.section {
    padding: 120px 0;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 205, 142, 0.1);
    color: var(--sem-green);
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.title-reveal {
    overflow: hidden;
}

.title-reveal h2 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

/* Grid Cards */
.grid-reveal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card-v3 {
    background: var(--sem-white);
    padding: 50px;
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Allinea tutti gli elementi a partire dall'alto */
    height: 100%; /* Si adatta al contenuto ma mantiene uguali altezze nel grid */
}

.card-v3:hover {
    transform: translateY(-15px) scale(1.02);
}

.card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-v3:hover::before {
    opacity: 1;
}

.icon-v3 {
    width: 80px;
    height: 80px;
    background: var(--sem-light);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 30px;
    transition: var(--transition-premium);
}

.card-v3:hover .icon-v3 {
    background: var(--sem-navy);
    color: white;
    transform: rotate(10deg);
}

/* Brands Section */
.brand-marquee {
    background: linear-gradient(135deg, rgba(0, 205, 142, 0.05) 0%, #ffffff 100%);
    padding: 100px 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.brand-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.brand-list img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: none; /* Logos in color for better prestige */
    opacity: 0.8;
    transition: all 0.4s ease;
}

.brand-list img:hover {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
}

.brand-logo {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.brand-logo img {
    max-height: 100%;
    max-width: 180px;
    object-fit: contain;
}

/* Content Enrichment */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Fix gaps */
.section-full {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Institutional Blocks */
.dual-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.care-box {
    background: var(--sem-green);
    color: white;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 20px 40px var(--sem-green-glow);
    text-align: center;
}

.care-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 20px 0;
    display: block;
}

/* Accordion for Placet */
.accordion-v3 {
    margin: 20px 0;
}

.acc-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
}

.acc-header {
    padding: 24px 30px;
    cursor: pointer;
    background: var(--sem-light);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-content {
    padding: 0 30px;
    max-height: 0;
    transition: all 0.5s;
    overflow: hidden;
}

.acc-item.active .acc-content {
    padding: 30px;
    max-height: 1000px;
}

/* =============================================
   NAMED RESPONSIVE GRID CLASSES
   (replaces problematic inline-style grids)
   ============================================= */

/* Home Info Banner: 2-col text + image */
.info-banner-grid {
    background: var(--gradient-dark);
    padding: 80px;
    border-radius: 60px;
    color: white;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.info-banner-img {
    text-align: right;
}

/* Hero CTA button group: flex row */
.hero-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Partner onboarding 2-col layout */
.onboarding-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 80px;
}

/* Footer legal data grid */
.legal-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 60px;
}

/* Footer Base */
.footer-v3 {
    background: var(--sem-dark);
    padding: 100px 0 50px;
    color: var(--text-footer);
}

.footer-v3 h4 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.footer-links li a {
    color: var(--text-footer);
    text-decoration: none;
    transition: 0.3s;
    font-size: 13.5px;
}

.footer-links li a:hover {
    color: var(--sem-green);
    padding-left: 5px;
}


/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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


/* =============================================
   GLOBAL OVERFLOW GUARDS
   ============================================= */
/* Prevent ANY element from causing horizontal bleed */
section,
footer,
header,
.hero-v3,
.hero-sub,
.section,
.brand-marquee {
    max-width: 100%;
    overflow-x: hidden;
}

/* Images, videos, iframes: never wider than container */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* Tables: scroll internally rather than bleed */
table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* =============================================
   HAMBURGER MENU (all pages)
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--sem-navy);
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When nav is white (over hero): white bars */
.header:not(.scrolled) .hamburger span {
    background: white;
}

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

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

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

/* =============================================
   LAPTOP / LARGE TABLET  (max 1280px)
   ============================================= */
@media (max-width: 1280px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }

    .hero-v3 h1 {
        font-size: clamp(2.8rem, 5.5vw, 5rem);
    }

    .title-reveal h2 {
        font-size: clamp(2rem, 3.5vw, 3.2rem);
    }
}

/* =============================================
   TABLET  (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .section {
        padding: 80px 0;
    }

    /* Nav */
    .main-nav {
        gap: 24px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .btn-area {
        padding: 12px 22px;
        font-size: 14px;
    }

    /* Hero */
    .hero-v3 h1 {
        font-size: clamp(2.6rem, 5vw, 4rem);
    }

    .hero-v3 p {
        font-size: 1.15rem;
    }

    /* Cards */
    .grid-reveal {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 28px;
    }

    .card-v3 {
        padding: 36px;
        min-height: auto;
    }

    /* Footer */
    .legal-footer {
        gap: 40px !important;
    }

    /* Dual-col layouts */
    .dual-col {
        gap: 50px;
    }
}

/* =============================================
   MOBILE / SMALL TABLET  (max 768px)
   ============================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .title-reveal h2 {
        font-size: clamp(1.8rem, 6vw, 2.6rem) !important;
        letter-spacing: -0.5px;
    }

    /* ---- Named grid classes: collapse to 1 col ---- */
    .info-banner-grid {
        grid-template-columns: 1fr !important;
        padding: 36px 24px !important;
        border-radius: 28px !important;
        gap: 32px !important;
    }

    .info-banner-img {
        display: none;
    }

    /* hide decorative image on small screens */
    .onboarding-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        margin-top: 40px !important;
    }

    .hero-cta-group {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .hero-cta-group .btn-area {
        width: 100% !important;
        text-align: center !important;
    }

    .legal-footer {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    /* Footer */
    .footer-v3 {
        padding: 60px 0 30px;
    }

    .footer-v3 h4 {
        margin-bottom: 16px;
        font-size: 1rem;
    }

    .footer-links li {
        margin-bottom: 6px;
    }


    /* ---- Navigation ---- */
    .hamburger {
        display: flex;
    }

    .btn-area.nav-cta {
        display: none;
    }

    /* hide CTA button in header on mobile */

    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--sem-dark);
        z-index: 1050;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    nav.open {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .main-nav a {
        color: white !important;
        font-size: 1.6rem;
        font-weight: 700;
        padding: 12px 0;
        display: block;
    }

    .main-nav a::after {
        display: none;
    }

    /* Close X inside open menu */
    nav.open+.hamburger span {
        background: white;
    }

    /* ---- Heroes ---- */
    .hero-v3,
    .hero-sub {
        padding-top: 20px;
        min-height: 90vh;
    }

    .hero-v3 h1 {
        font-size: clamp(2.2rem, 9vw, 3.2rem) !important;
        letter-spacing: -1px;
    }

    .hero-sub h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    .hero-v3 p {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-content {
        max-width: 100%;
    }

    /* Hero CTA buttons: stack */
    .hero-v3 div[style*="display:flex"],
    .hero-sub div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .hero-v3 .btn-area,
    .hero-sub .btn-area {
        width: 100%;
        text-align: center;
    }

    /* ---- Cards and grids ---- */
    .grid-reveal {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .card-v3 {
        padding: 28px;
        min-height: auto;
    }

    .brand-list {
        gap: 40px;
    }

    .brand-logo img {
        max-height: 36px;
    }

    /* ---- Dual-col: all stacked ---- */
    .dual-col,
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Contact sticky sidebar: un-stick */
    .contact-info-block {
        position: static !important;
    }

    /* ---- Brand page ---- */
    .brand-full-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 32px !important;
        gap: 20px !important;
    }

    .brand-full-header h2 {
        font-size: 1.5rem !important;
    }

    .brand-offers-grid {
        grid-template-columns: 1fr !important;
    }

    .brand-offer-item {
        border-right: none !important;
        border-bottom: 1px solid #E2E8F0;
    }

    .brand-offer-item:last-child {
        border-bottom: none;
    }

    .brand-offer-item {
        padding: 28px !important;
    }

    .cta-banner {
        padding: 40px 28px !important;
    }

    .cta-banner h2 {
        font-size: 1.8rem !important;
    }

    /* ---- PLACET tabs ---- */
    .placet-tab-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .placet-tab-btn {
        padding: 16px 14px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .placet-tab-content {
        padding: 30px 20px !important;
    }

    .formula-box {
        font-size: 0.82rem;
        padding: 16px;
    }

    /* ---- Partner page ---- */
    .hub-model-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .hub-pillar {
        padding: 32px !important;
    }

    .partner-brands-row {
        gap: 16px !important;
    }

    .partner-brand-badge {
        padding: 20px 30px !important;
        min-width: 130px !important;
    }

    .steps-timeline {
        padding-left: 56px;
    }

    .step-number {
        left: -50px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
    }

    .step-item {
        padding: 22px 20px;
    }

    .contact-form-card {
        padding: 30px 22px !important;
    }

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

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

    .dark-cta-section {
        padding: 40px 24px !important;
    }

    .dark-cta-section h2 {
        font-size: 1.8rem !important;
    }

    /* ---- Contatti page ---- */
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .contact-info-block {
        border-radius: 20px !important;
        padding: 36px !important;
    }

    .info-item-value {
        font-size: 1.3rem !important;
        word-break: break-word;
    }

    .sede-cards {
        grid-template-columns: 1fr !important;
    }

    .sede-card {
        padding: 30px !important;
    }

    /* ---- Modulistica ---- */
    .moduli-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .modulo-card {
        padding: 30px !important;
    }

    .trasparenza-strip {
        grid-template-columns: 1fr !important;
        padding: 40px 28px !important;
        gap: 30px !important;
    }

    .trasparenza-strip h2 {
        font-size: 1.5rem !important;
    }

    .info-acc-header {
        padding: 18px 20px;
        font-size: 0.95rem;
    }

    /* ---- Footer ---- */
    .footer-v3 {
        padding: 60px 0 30px;
    }

    .legal-footer {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .footer-links {
        margin-bottom: 10px;
    }

    /* ---- Home Specifics ---- */
    .care-box {
        padding: 40px 28px !important;
        border-radius: 24px;
    }

    .care-number {
        font-size: 2.2rem !important;
    }

    /* Responsive stats infographic row */
    .stats-row,
    div[style*="repeat(4,"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
}

/* =============================================
   SMALL MOBILE  (max 480px)
   ============================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-v3 h1 {
        font-size: clamp(1.9rem, 9vw, 2.6rem) !important;
    }

    .hero-sub h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    }

    .logo img {
        height: 36px;
    }

    .section {
        padding: 48px 0;
    }

    .title-reveal h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    }

    .btn-area {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .partner-brand-badge {
        padding: 16px 20px !important;
        min-width: 110px !important;
    }

    .info-item-value {
        font-size: 1.15rem !important;
    }

    .stats-row,
    div[style*="repeat(4,"] {
        grid-template-columns: 1fr !important;
    }
}

.hero-sub h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
}

.logo img {
    height: 36px;
}

.section {
    padding: 48px 0;
}

.title-reveal h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
}

.btn-area {
    padding: 14px 24px;
    font-size: 0.95rem;
}

.partner-brand-badge {
    padding: 16px 20px !important;
    min-width: 110px !important;
}

.info-item-value {
    font-size: 1.15rem !important;
}

.stats-row,
div[style*="repeat(4,"] {
    grid-template-columns: 1fr !important;
}
}

/* Disclaimer Strip */
.disclaimer-strip {
    background: #F8FAFC;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.disclaimer-card {
    background: white;
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,18,50,0.05);
    border: 1px solid rgba(0,0,0,0.04);
}

.disclaimer-strip .container {
    max-width: 1000px;
}

.disclaimer-tag {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sem-green);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* FAQ Premium Card */
.faq-box {
    background-color: #1D2B4A !important; /* Solid fallback */
    background: var(--gradient-dark) !important;
    border-radius: 40px;
    padding: 80px;
    box-shadow: 0 40px 90px rgba(0,18,50,0.25);
    color: white !important;
    position: relative;
    overflow: hidden;
}

.faq-box::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,205,142,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.faq-box h2 {
    color: white !important;
}

.faq-box .section-tag {
    background: rgba(255,255,255,0.1) !important;
    color: var(--sem-green) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.faq-box .acc-header {
    background: white !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    color: var(--sem-navy) !important; /* Testo Scuro */
    font-weight: 700 !important;
    padding: 20px 30px !important;
    border-radius: 12px !important;
}

.faq-box .acc-header span {
    color: var(--sem-navy) !important; /* Forza colore scuro */
}

.faq-box .acc-header:hover {
    background: #f8fafc !important;
}

.faq-box .acc-item.active .acc-header {
    background: var(--sem-green) !important; /* Sfondo verde per l'attiva */
    color: white !important; /* Testo bianco solo sull'attiva verde */
}

.faq-box .acc-item.active .acc-header span {
    color: white !important;
}

.faq-box .acc-content {
    background: white !important;
    color: var(--text-primary) !important; /* Testo Scuro per la risposta */
    padding: 0 30px 25px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.faq-box .acc-content p,
.faq-box .acc-content strong,
.faq-box .acc-content li,
.faq-box .acc-content a {
    color: var(--text-primary) !important;
}

.faq-box .acc-item {
    background: white !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    overflow: hidden;
}

@media (max-width: 768px) {
    .faq-box {
        padding: 40px 20px;
        border-radius: 24px;
    }
}

.disclaimer-main {
    font-size: 1.15rem;
    color: var(--sem-navy);
    line-height: 1.6;
    text-align: center !important; /* Forza allineamento al centro */
}

.disclaimer-main strong {
    color: var(--sem-navy);
    font-weight: 900;
}

@media (max-width: 768px) {
    .disclaimer-strip {
        padding: 40px 20px;
    }
    .disclaimer-main {
        font-size: 1.15rem;
    }
}