/**
 * REI — Pagina Agevolazioni meteo a favore dell'utenza (Tutela utenti)
 * Diciottesima REI Static Page. Form di richiesta rimborso con upload doc.
 *
 * Standing rules v1.21.4 applicate:
 * - Filigrane pulse 4s (scale+rotate+opacity)
 * - Intro card soft verde + box contatti soft giallo
 * - Form section con sfondo soft (pattern adattato per fondo chiaro)
 * - Shine ::before su tutte le card piene
 * - Ombre dual-layer profonde
 * - 14 particelle posizioni standard (icona wallet)
 *
 * @since 1.23.0
 */

body.rei-static-page--rimborso-cmor,
body.rei-static-page--rimborsi-cmor { background: var(--rei-cream, #F4F8F6); }

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

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

/* Filigrane animate pulse 4s (pattern Servizi v1.20.0) */
.rei-meteo__particle { position: absolute; opacity: 0.13; animation: rei-meteo-float 4s ease-in-out infinite; }
.rei-meteo__particle svg { width: 100%; height: 100%; display: block; }
@keyframes rei-meteo-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-meteo__particle { animation: none; opacity: 0.11; } }

/* 14 particelle posizioni standard */
.rei-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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-meteo__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 ===== */
.rei-meteo__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;
}

/* ===== HERO ===== */
.rei-meteo__hero { padding: 72px 0 32px; }
.rei-meteo__title {
    font-size: 56px; line-height: 1.05; font-weight: 800;
    margin: 0 0 32px; color: #157155;
    letter-spacing: -0.02em;
}
.rei-meteo__title-green { color: #20A47B; }

.rei-meteo__subtitle {
    font-size: 17px;
    font-weight: 600;
    color: #3C3C3B;
    margin: -16px 0 28px;
    letter-spacing: 0.02em;
    max-width: 760px;
}

/* ===== INTRO (Hero card piena soft-verde con shine v1.21.4) ===== */
.rei-meteo__intro {
    max-width: 960px;
    border-radius: 18px;
    padding: 26px 30px;
    background: linear-gradient(135deg, #E4F6F0 0%, #D2F0E6 100%);
    border: 2px solid #20A47B;
    color: #157155;
    box-shadow: 0 26px 64px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.14);
    position: relative;
    overflow: hidden;
    font-size: 16px; line-height: 1.75;
}
.rei-meteo__intro::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(32,164,123,0.20) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.rei-meteo__intro:hover::before { opacity: 1; }
.rei-meteo__intro p { margin: 0; position: relative; z-index: 1; color: #3C3C3B; }
.rei-meteo__intro p + p { margin-top: 14px; }
.rei-meteo__intro strong { font-weight: 800; color: #157155; }

/* ===== H2 ===== */
.rei-meteo__h2 {
    font-size: 26px; line-height: 1.2; font-weight: 800;
    margin: 0 0 16px; color: #20A47B; letter-spacing: -0.01em;
}

/* ===== BLOCCO TESTO ===== */
.rei-meteo__block {
    max-width: 960px;
    margin: 0 0 32px;
}
.rei-meteo__block:last-child { margin-bottom: 0; }

.rei-meteo__rich {
    font-size: 16px; line-height: 1.75; color: #3C3C3B;
}
.rei-meteo__rich p { margin: 0 0 14px; }
.rei-meteo__rich p:last-child { margin-bottom: 0; }
.rei-meteo__rich strong { font-weight: 700; color: #157155; }
.rei-meteo__rich em { font-style: italic; color: #3C3C3B; }
.rei-meteo__rich a {
    color: #20A47B;
    text-decoration: underline;
    font-weight: 600;
}
.rei-meteo__rich a:hover { color: #157155; }
.rei-meteo__rich ul {
    margin: 0 0 14px 0;
    padding-left: 28px;
}
.rei-meteo__rich ul li {
    margin: 0 0 8px;
    padding-left: 8px;
    line-height: 1.7;
}
.rei-meteo__rich ul li::marker { color: #20A47B; }

/* ===== SEZIONI ===== */
.rei-meteo__info { padding: 16px 0 32px; }

/* ===== FORM SECTION (soft verde con shine + form moderno) ===== */
.rei-meteo__form-section {
    margin: 32px auto 32px;
    max-width: 1136px;
    border-radius: 18px;
    padding: 48px 32px;
    background: linear-gradient(135deg, #E4F6F0 0%, #D2F0E6 100%);
    border: 2px solid #20A47B;
    box-shadow: 0 26px 64px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.14);
    position: relative;
    overflow: hidden;
}
.rei-meteo__form-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(32,164,123,0.20) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.rei-meteo__form-section:hover::before { opacity: 1; }
.rei-meteo__form-section > .rei-meteo__container { padding: 0; position: relative; z-index: 1; }

.rei-meteo__form-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #20A47B;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.rei-meteo__form-intro {
    font-size: 16px; line-height: 1.65; color: #3C3C3B;
    margin: 0 0 28px;
    max-width: 760px;
}
.rei-meteo__form-intro p { margin: 0 0 10px; }
.rei-meteo__form-intro p:last-child { margin-bottom: 0; }

.rei-meteo__feedback {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1rem;
}
.rei-meteo__feedback.is-ok    { background: #D2F0E6; color: #157155; border-left: 4px solid #20A47B; }
.rei-meteo__feedback.is-error { background: #fff0f0; color: #D63638; border-left: 4px solid #D63638; }

/* Honeypot anti-spam */
.rei-meteo__hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; pointer-events: none !important; }

.rei-meteo__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    margin-bottom: 22px;
}

.rei-meteo__field { display: flex; flex-direction: column; }
.rei-meteo__field label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #157155;
    margin-bottom: 6px;
}
.rei-meteo__field .req { color: #D63638; font-weight: 700; }
.rei-meteo__field input[type="text"],
.rei-meteo__field input[type="email"],
.rei-meteo__field input[type="tel"] {
    border: 0;
    border-bottom: 2px solid #157155;
    background: transparent;
    padding: 8px 0 6px;
    font-size: 1rem;
    color: #157155;
    font-family: inherit;
    transition: border-color 0.2s ease;
}
.rei-meteo__field input:focus {
    outline: none;
    border-bottom-color: #20A47B;
}
.rei-meteo__field input[type="file"] {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #3C3C3B;
}
.rei-meteo__field input[type="file"]::file-selector-button {
    background: #157155;
    color: #fff;
    border: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    margin-right: 12px;
    transition: background 0.2s ease;
}
.rei-meteo__field input[type="file"]::file-selector-button:hover { background: #20A47B; }
.rei-meteo__hint {
    display: block;
    font-size: 0.8rem;
    color: #D63638;
    margin-top: 6px;
    font-style: italic;
}

.rei-meteo__privacy {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    margin-bottom: 18px;
}
.rei-meteo__privacy-label {
    color: #157155;
    font-size: 0.95rem;
}
.rei-meteo__privacy-label a { color: #20A47B; text-decoration: underline; font-weight: 700; }
.rei-meteo__privacy-opts { display: flex; gap: 18px; }
.rei-meteo__privacy-opts label { display: flex; align-items: center; gap: 6px; color: #157155; font-weight: 600; cursor: pointer; }
.rei-meteo__privacy-opts input[type="radio"] { accent-color: #20A47B; }

.rei-meteo__submit-wrap { text-align: center; padding-top: 8px; }
.rei-meteo__submit {
    display: inline-block;
    background: linear-gradient(135deg, #20A47B 0%, #20A47B 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 14px 56px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 24px -6px rgba(32,164,123,0.55);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.rei-meteo__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(32,164,123,0.7);
}

/* ===== CONTATTI ===== */
.rei-meteo__contatti { padding: 16px 0 0; }

/* ===== BOX EVIDENZA (card soft gialla con shine, pattern v1.21.4) ===== */
.rei-meteo__box {
    display: flex; align-items: flex-start; gap: 22px;
    border-radius: 18px;
    padding: 26px 30px;
    margin: 8px 0 0;
    max-width: 960px;
    background: linear-gradient(135deg, #F4F8F6 0%, #EDF5D2 100%);
    border: 2px solid #D1E000;
    color: #157155;
    box-shadow: 0 26px 64px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.14);
    position: relative;
    overflow: hidden;
}
.rei-meteo__box::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(209,224,0,0.20) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.rei-meteo__box:hover::before { opacity: 1; }
.rei-meteo__box-icon {
    width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #D1E000 0%, #B5C400 100%);
    box-shadow: 0 12px 24px -6px rgba(209,224,0,0.6);
    position: relative; z-index: 1;
}
.rei-meteo__box-body { position: relative; z-index: 1; }
.rei-meteo__box-title {
    font-size: 19px; font-weight: 800;
    color: #157155;
    margin: 0 0 10px; line-height: 1.3;
}
.rei-meteo__box-text { color: #3C3C3B; font-size: 15px; line-height: 1.65; }
.rei-meteo__box-text p { margin: 0 0 8px; }
.rei-meteo__box-text p:last-child { margin-bottom: 0; }
.rei-meteo__box-text strong { color: #157155; font-weight: 700; }
.rei-meteo__box-text a {
    color: #20A47B;
    text-decoration: underline;
    font-weight: 700;
    word-break: break-all;
}
.rei-meteo__box-text a:hover { color: #157155; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rei-meteo__container { padding: 0 20px; }
    .rei-meteo__hero { padding: 48px 0 24px; }
    .rei-meteo__title { font-size: 34px; }
    .rei-meteo__intro { font-size: 15px; padding: 20px 22px; }
    .rei-meteo__h2 { font-size: 22px; margin-bottom: 12px; }
    .rei-meteo__block { margin-bottom: 24px; }
    .rei-meteo__info { padding: 12px 0 24px; }
    .rei-meteo__contatti { padding: 12px 0 0; }
    .rei-meteo__form-section { padding: 32px 22px; margin: 24px 16px; }
    .rei-meteo__form-grid { grid-template-columns: 1fr; gap: 18px; }
    .rei-meteo__privacy { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rei-meteo__box { flex-direction: column; gap: 14px; padding: 22px; }
}

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