/**
 * REI — Pagina Obiettivo Trasparenza (Tutela utenti)
 * Settima REI Static Page. Stile coerente con Autolettura Luce/Gas:
 * sfondo decorativo con scudi, hero con eyebrow chip, sezione cards bianca,
 * CTA finale con bottone scuro stile Gruppo Nazionale.
 *
 * @since 1.9.0
 */

body.rei-static-page--trasparenza,
body.rei-static-page--obiettivo-trasparenza { background: var(--rei-cream, #F4F8F6); }

.rei-trasp { position: relative; min-height: 60vh; overflow: hidden; padding-bottom: 80px; }
.rei-trasp__container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ===== SFONDO DECORATIVO ===== */
.rei-trasp__bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    overflow: hidden;
}
.rei-trasp__glow {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(120px); opacity: 0.25;
}
.rei-trasp__glow--tl { top: -200px; left: -180px; background: radial-gradient(circle, #20A47B 0%, transparent 70%); }
.rei-trasp__glow--tr { top: -150px; right: -200px; background: radial-gradient(circle, #D1E000 0%, transparent 70%); opacity: 0.18; }
.rei-trasp__glow--bl { bottom: -240px; left: -160px; background: radial-gradient(circle, #D1E000 0%, transparent 70%); opacity: 0.18; }
.rei-trasp__glow--br { bottom: -200px; right: -180px; background: radial-gradient(circle, #20A47B 0%, transparent 70%); }

.rei-trasp__particle {
    position: absolute; opacity: 0.13;
    animation: rei-trasp-float 4s ease-in-out infinite;
}
.rei-trasp__particle svg { width: 100%; height: 100%; display: block; }
@keyframes rei-trasp-float {
    0%   { transform: scale(0.5) rotate(-6deg); opacity: 0.05; }
    50%  { transform: scale(1.1) rotate(5deg);  opacity: 0.22; }
    100% { transform: scale(0.5) rotate(-6deg); opacity: 0.05; }
}
@media (prefers-reduced-motion: reduce) {
    .rei-trasp__particle { animation: none; opacity: 0.11; }
}

/* 14 particelle, posizioni distribuite (verde + 3 accenti gialli) */
.rei-trasp__particle--1  { top:  3%; left:  1%; width: 200px; height: 200px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); }
.rei-trasp__particle--2  { top: 11%; right: 2%; width: 225px; height: 225px; color: #D1E000; filter: drop-shadow(0 0 24px rgba(209,224,0,0.5)); }
.rei-trasp__particle--3  { top: 23%; left:  6%; width: 170px; height: 170px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 0.8s; }
.rei-trasp__particle--4  { top: 30%; right: 7%; width: 150px; height: 150px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 1.2s; }
.rei-trasp__particle--5  { top: 40%; left:  2%; width: 190px; height: 190px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 2s; }
.rei-trasp__particle--6  { top:  7%; left: 43%; width: 160px; height: 160px; color: #D1E000; filter: drop-shadow(0 0 24px rgba(209,224,0,0.5)); animation-delay: 0.5s; }
.rei-trasp__particle--7  { top: 51%; right: 3%; width: 215px; height: 215px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 1.5s; }
.rei-trasp__particle--8  { top: 35%; left: 29%; width: 150px; height: 150px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 3s; }
.rei-trasp__particle--9  { top: 61%; left:  8%; width: 180px; height: 180px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 2.2s; }
.rei-trasp__particle--10 { top: 69%; right: 20%; width: 165px; height: 165px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 0.9s; }
.rei-trasp__particle--11 { top: 47%; left: 47%; width: 170px; height: 170px; color: #D1E000; filter: drop-shadow(0 0 24px rgba(209,224,0,0.5)); animation-delay: 1.8s; }
.rei-trasp__particle--12 { top: 79%; left: 31%; width: 200px; height: 200px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 2.6s; }
.rei-trasp__particle--13 { top: 87%; right: 5%; width: 185px; height: 185px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 1.1s; }
.rei-trasp__particle--14 { top: 92%; left:  4%; width: 155px; height: 155px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 3.4s; }

/* ===== EYEBROW CHIP ===== */
.rei-trasp__eyebrow {
    display: inline-block;
    background: #E4F6F0; color: #20A47B;
    border: 1px solid #D2F0E6;
    padding: 6px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    margin: 0 0 24px;
}

/* ===== UNDERLINES (riuso pattern luce/gas) ===== */
/* ===== UNDERLINES =====
   v1.11.1: rimossa la definizione locale di .rei-underline / --yellow / --green.
   Vince la regola globale animata di style.css con IntersectionObserver
   (background-image gradient che si "dipinge" da sinistra a destra quando
   l'elemento entra in viewport). */
/* ===== HERO ===== */
.rei-trasp__hero {
    padding: 72px 0 56px;
}
.rei-trasp__title {
    font-size: 56px; line-height: 1.05; font-weight: 800;
    margin: 0 0 32px; color: #157155;
    letter-spacing: -0.02em;
}
.rei-trasp__title-green { color: #20A47B; }
.rei-trasp__intro {
    max-width: 920px;
    font-size: 16px; line-height: 1.7; color: #3C3C3B;
}
.rei-trasp__intro p { margin: 0 0 18px; }
.rei-trasp__intro p:last-child { margin-bottom: 0; }
.rei-trasp__intro strong { font-weight: 700; color: #157155; }

/* ===== SEZIONE INIZIATIVE — CARDS ===== */
.rei-trasp__iniziative {
    padding: 32px 0 72px;
}
.rei-trasp__h2 {
    font-size: 34px; line-height: 1.15; font-weight: 800;
    margin: 0 0 40px; color: #157155; letter-spacing: -0.01em;
}
.rei-trasp__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rei-trasp__card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    border: 1px solid rgba(32,164,123,0.12);
    box-shadow: 0 26px 64px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column;
}
.rei-trasp__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 80px rgba(0,0,0,0.36), 0 14px 30px rgba(0,0,0,0.20);
}
.rei-trasp__card-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #20A47B 0%, #20A47B 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    margin: 0 0 22px;
    box-shadow: 0 12px 24px -6px rgba(32,164,123,0.55);
}
.rei-trasp__card-icon svg { width: 30px; height: 30px; }
.rei-trasp__card-title {
    font-size: 19px; line-height: 1.3; font-weight: 700;
    color: #157155; margin: 0 0 14px;
}
.rei-trasp__card-text {
    color: #4a5568; font-size: 14.5px; line-height: 1.65; flex: 1;
}
.rei-trasp__card-text p { margin: 0; }

/* ===== CTA FINALE ===== */
.rei-trasp__cta {
    background: linear-gradient(135deg, #20A47B 0%, #20A47B 100%);
    color: #fff;
    padding: 64px 0;
    position: relative; z-index: 2;
    text-align: center;
}
.rei-trasp__cta-question {
    font-size: 17px; line-height: 1.6;
    max-width: 800px; margin: 0 auto 24px;
    opacity: 0.95;
}
.rei-trasp__cta-question strong { font-weight: 700; }
.rei-trasp__cta-headline {
    font-size: 30px; line-height: 1.25; font-weight: 800;
    margin: 0 0 32px; color: #fff;
    letter-spacing: -0.01em;
}
/* override underline su sfondo verde: arancio chiaro per contrasto */
.rei-trasp__cta-headline .rei-underline--green {
    background: linear-gradient(transparent 80%, rgba(255,224,102,0.55) 80%);
}
.rei-trasp__cta-button {
    display: inline-flex; align-items: center; gap: 10px;
    background: #157155; color: #fff;
    padding: 16px 32px; border-radius: 999px;
    font-size: 15.5px; font-weight: 700;
    text-decoration: none;
    box-shadow: 0 24px 56px -6px rgba(21,113,85,0.72), 0 8px 18px rgba(0,0,0,0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
.rei-trasp__cta-button:hover {
    transform: translateY(-2px);
    background: #157155;
    box-shadow: 0 32px 64px -8px rgba(21,113,85,0.82), 0 10px 22px rgba(0,0,0,0.28);
}
.rei-trasp__cta-button svg { transition: transform 0.2s; }
.rei-trasp__cta-button:hover svg { transform: translateX(4px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .rei-trasp__title { font-size: 44px; }
    .rei-trasp__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .rei-trasp__container { padding: 0 20px; }
    .rei-trasp__hero { padding: 48px 0 32px; }
    .rei-trasp__title { font-size: 34px; }
    .rei-trasp__intro { font-size: 15px; }
    .rei-trasp__iniziative { padding: 24px 0 56px; }
    .rei-trasp__h2 { font-size: 26px; margin-bottom: 28px; }
    .rei-trasp__cards { grid-template-columns: 1fr; gap: 18px; }
    .rei-trasp__card { padding: 26px 22px; }
    .rei-trasp__cta { padding: 48px 0; }
    .rei-trasp__cta-headline { font-size: 24px; }
    .rei-trasp__cta-button { width: 100%; justify-content: center; }
}

/* v1.29.2: stacco card finale dalla bandiera tricolore — override mobile */
@media (max-width: 720px) {
    .rei-trasp { padding-bottom: 40px !important; }
}
