/* ============================================================
   ORIZZONTE MALAWI — Design System
   Clean, modern, warm — focused on facilitating donations
   ============================================================ */

:root {
    --om-red: #d60000;
    --om-red-dark: #b50000;
    --om-red-light: #fef2f2;
    --om-red-glow: rgba(214, 0, 0, 0.12);

    --om-text: #1a1a1a;
    --om-text-secondary: #5c5c5c;
    --om-text-muted: #8a8a8a;

    --om-bg: #fafafa;
    --om-bg-card: #ffffff;
    --om-bg-subtle: #f5f5f5;
    --om-border: #e8e8e8;

    --om-radius: 12px;
    --om-radius-sm: 8px;
    --om-radius-lg: 16px;

    --om-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --om-shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.06);
    --om-shadow-hover: 0 4px 16px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.06);

    --om-transition: 0.2s ease;
}

/* ---- Base ---- */

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--om-text);
    background-color: var(--om-bg);
    margin-bottom: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

a {
    color: var(--om-red);
    text-decoration: none;
    transition: color var(--om-transition);
}

a:hover {
    color: var(--om-red-dark);
}

/* ---- Red Border Frame ---- */

#wrapper {
    position: relative;
}

#wrapper::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    bottom: 32px;
    border: 3px solid var(--om-red);
    pointer-events: none;
    z-index: 999;
}

@media (max-width: 767px) {
    #wrapper::after {
        top: 16px;
        left: 12px;
        right: 12px;
        bottom: 16px;
        border-width: 2px;
    }
}

/* ---- Navbar ---- */

.navbar {
    height: auto;
    min-height: 180px;
    background-image: url('../images/header.jpg');
    background-size: cover;
    background-position: center;
    padding: 32px 60px 24px 60px;
    margin: 0;
    color: #ffffff;
}

@media (max-width: 767px) {
    .navbar {
        min-height: 120px;
        padding: 20px 24px 16px 24px;
    }
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a.navbar-brand img {
    max-height: 56px;
    transition: transform var(--om-transition);
}

a.navbar-brand:hover img {
    transform: scale(1.03);
}

/* Menu come quello del sito (tema Avada, richiesta del committente del 21/09/2026): Montserrat
   500 maiuscolo, 15px, spaziatura 2px, bianco; voce attiva e hover in rosso, senza sfondo.
   Valori letti dal CSS compilato del tema (--awb-typography3-*, --awb-color1, --awb-color4). */
.navbar .nav-link {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 17px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    padding: 5px 0 !important;
    transition: color var(--om-transition);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: #cc0000;
}

/* 30px fra le voci come sul sito, solo con il menu in riga: nel menu a tendina del telefono
   le voci vanno una sotto l'altra e basta un po' d'aria. */
@media (min-width: 576px) {
    .navbar .navbar-nav {
        gap: 30px;
    }
}

@media (max-width: 575.98px) {
    .navbar .nav-link {
        padding: 10px 0 !important;
    }
}

/* ---- Main content area ---- */

.container main {
    padding-bottom: 2rem;
}

/* ---- Footer ---- */

footer {
    background-color: var(--om-text);
    color: rgba(255,255,255,0.6);
    padding: 24px 0 56px;
    font-size: 0.85rem;
    text-align: center;
}

footer a {
    color: rgba(255,255,255,0.8);
}

footer a:hover {
    color: #ffffff;
}

/* ---- Focus States ---- */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--om-red-glow);
}

.form-control:focus {
    border-color: var(--om-red);
}

.form-check-input:checked {
    background-color: var(--om-red);
    border-color: var(--om-red);
}

.form-switch .form-check-input:not(:checked):focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23f8a5a5'/%3e%3c/svg%3e");
    border-color: #f8a5a5;
}

/* ---- Buttons ---- */

.btn-primary {
    background-color: var(--om-red);
    border-color: var(--om-red);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--om-radius-sm);
    padding: 0.6rem 1.6rem;
    transition: all var(--om-transition);
}

.btn-primary:hover, .btn-primary:active {
    background-color: var(--om-red-dark);
    border-color: var(--om-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 0, 0, 0.3);
}

.btn-outline-danger {
    color: var(--om-red);
    border-color: var(--om-red);
    font-weight: 600;
    border-radius: var(--om-radius-sm);
    transition: all var(--om-transition);
}

.btn-outline-danger:hover {
    background-color: var(--om-red);
    border-color: var(--om-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 0, 0, 0.25);
}

/* ---- Form Controls ---- */

.form-control {
    border-radius: var(--om-radius-sm);
    border: 1.5px solid var(--om-border);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color var(--om-transition), box-shadow var(--om-transition);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--om-text-secondary);
    margin-bottom: 0.35rem;
}

.input-group-text {
    background-color: var(--om-bg-subtle);
    border: 1.5px solid var(--om-border);
    border-radius: var(--om-radius-sm) 0 0 var(--om-radius-sm);
    font-weight: 600;
    color: var(--om-text-secondary);
}


/* ============================================================
   DONATION CARD — Shared component
   ============================================================ */

.donation-card {
    border: none;
    border-radius: var(--om-radius-lg);
    box-shadow: var(--om-shadow);
    overflow: hidden;
    background: var(--om-bg-card);
}

.donation-card .card-header-section {
    background: linear-gradient(135deg, var(--om-red) 0%, var(--om-red-dark) 100%);
    color: #ffffff;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.donation-card .card-header-section h1,
.donation-card .card-header-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.donation-card .card-header-section .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 400;
}

.badge-fiscal-wrapper {
    text-align: center;
    margin-top: -0.25rem;
    margin-bottom: 1.25rem;
}

.badge-fiscal {
    display: inline-block;
    background: #f0f0f0;
    color: var(--om-red);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* Legacy .card-title as header support (existing views) */
.donation-card > .card-title {
    background: linear-gradient(135deg, var(--om-red) 0%, var(--om-red-dark) 100%);
    color: #ffffff;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    margin-bottom: 0;
}

.donation-card > .card-title h1,
.donation-card > .card-title h2,
.donation-card > .card-title .card-title {
    color: #ffffff !important;
    background: none !important;
}

.donation-card > .card-title .lead {
    color: rgba(255,255,255,0.9);
}

.donation-card > .card-title .text-muted {
    color: rgba(255,255,255,0.7) !important;
}

.donation-card .card-body {
    padding: 2rem;
}

@media (min-width: 768px) {
    .donation-card .card-body {
        padding: 2.5rem 3rem;
    }
}


/* ============================================================
   STEP TITLES — Donation flow
   ============================================================ */

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--om-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--om-red);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-title::before {
    display: none; /* Step numbers are inline in the text */
}


/* ============================================================
   DONATION TIERS
   ============================================================ */

#donationTiersContainer {
    gap: 0.5rem !important;
}

.tier-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--om-border);
    border-radius: var(--om-radius);
    cursor: pointer;
    transition: all var(--om-transition);
    background: var(--om-bg-card);
}

.tier-option:hover {
    border-color: var(--om-red);
    background-color: var(--om-red-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(214, 0, 0, 0.08);
}

.tier-option.selected {
    border-color: var(--om-red);
    background-color: var(--om-red-light);
}

.tier-button {
    min-width: 90px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--om-red);
    border: 2px solid var(--om-red);
    border-radius: var(--om-radius-sm);
    background: transparent;
    padding: 0.4rem 0.6rem;
    transition: all var(--om-transition);
}

.btn.tier-button.active,
.btn.tier-button.active:focus,
.btn.tier-button:first-child.active {
    color: #ffffff;
    background-color: var(--om-red);
    border-color: var(--om-red);
    box-shadow: none;
}

.btn.tier-button:hover {
    color: #ffffff;
    background-color: var(--om-red);
    border-color: var(--om-red);
    box-shadow: none;
}

.btn.tier-button:focus {
    box-shadow: none;
}

.tier-option .ms-3 strong {
    font-size: 0.95rem;
    color: var(--om-text);
}

.tier-option .ms-3 small {
    color: var(--om-text-muted);
    font-size: 0.85rem;
}


/* ============================================================
   FREQUENCY TOGGLE
   ============================================================ */

.frequency-section {
    background: var(--om-bg-subtle);
    border-radius: var(--om-radius);
    padding: 1.25rem;
    border: 1px solid var(--om-border);
}

.frequency-section .form-check-label {
    font-weight: 600;
    font-size: 0.95rem;
}


/* ============================================================
   DONOR TYPE TABS
   ============================================================ */

.nav-pills .nav-link {
    border: 1.5px solid var(--om-border);
    color: var(--om-text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--om-radius-sm);
    padding: 0.5rem 1rem;
    margin: 0 3px;
    transition: all var(--om-transition);
}

.nav-pills .nav-link:hover {
    border-color: var(--om-red);
    color: var(--om-red);
    background-color: var(--om-red-light);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--om-red);
    color: #ffffff;
    border-color: var(--om-red);
}


/* ============================================================
   PAYMENT OPTIONS
   ============================================================ */

.btn-payment-option {
    width: 100%;
    text-align: left;
    background-color: var(--om-bg-card);
    border: 2px solid var(--om-border);
    color: var(--om-text);
    display: flex;
    align-items: center;
    border-radius: var(--om-radius);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--om-transition);
}

.btn-payment-option i {
    font-size: 1.4rem;
    margin-right: 0.75rem;
    color: var(--om-text-secondary);
}

.btn-payment-option:hover {
    border-color: #c0c0c0;
    background-color: var(--om-bg-subtle);
    color: var(--om-text);
}

.form-check-input:checked + .btn-payment-option {
    border-color: var(--om-red);
    background-color: var(--om-red);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(214, 0, 0, 0.2);
}

.form-check-input:checked + .btn-payment-option i {
    color: #ffffff;
}

/* Submit button full-width style */
.donation-card .btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--om-radius);
    letter-spacing: 0.01em;
}


/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero Section */
.home-index .hero-section {
    border-radius: var(--om-radius-lg);
    overflow: hidden;
    margin: 2.5rem 12px 2rem;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.home-index .hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--om-red);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.home-index .hero-section .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(214,0,0,0.85) 0%, rgba(140,0,0,0.75) 100%);
}

.home-index .hero-section .hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    max-width: 680px;
}

.home-index .hero-section h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.home-index .hero-section p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.home-index .hero-section .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: var(--om-red);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.8rem 2.2rem;
    border-radius: var(--om-radius);
    border: none;
    margin-top: 1rem;
    transition: all var(--om-transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.home-index .hero-section .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    background: #fff;
    color: var(--om-red-dark);
}

/* Legacy .donazione-libera support */
.home-index .donazione-libera {
    border-radius: var(--om-radius-lg);
    box-shadow: var(--om-shadow-lg);
    background-color: var(--om-red);
    margin: 2.5rem 12px 2rem 12px;
    padding: 3rem 2rem;
    color: #ffffff;
    text-align: center;
}

/* Donation intro block */
.home-index .donation-intro {
    max-width: 860px;
    margin: 3rem auto 2.5rem;
    padding: 0 1rem;
    text-align: center;
}

.home-index .donation-intro-title {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--om-text);
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    position: relative;
    text-transform: none;
}

.home-index .donation-intro-title strong {
    color: var(--om-red);
    font-weight: 800;
}

.home-index .donation-intro-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: var(--om-red);
    border-radius: 2px;
}

.home-index .donation-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--om-text);
    margin-bottom: 1rem;
}

.home-index .donation-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .home-index .donation-intro {
        margin: 2rem auto 1.75rem;
    }

    .home-index .donation-intro-title {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .home-index .donation-intro p {
        font-size: 0.98rem;
    }
}

/* Campaign cards */
.home-index .campaigns-heading {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--om-text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-index .campaign-card {
    border: none;
    border-radius: var(--om-radius-lg);
    box-shadow: var(--om-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--om-bg-card);
}

.home-index .campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--om-shadow-hover);
}

.home-index .campaign-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.home-index .campaign-card .card-body {
    padding: 1.5rem;
}

.home-index .campaign-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--om-text);
    background: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

.home-index .campaign-card .card-text {
    font-size: 0.9rem;
    color: var(--om-text-secondary);
    line-height: 1.6;
}

.home-index .campaign-card .progress {
    height: 5px;
    border-radius: 3px;
    background-color: var(--om-bg-subtle);
}

.home-index .campaign-card .progress-bar {
    background-color: var(--om-red);
    border-radius: 3px;
}

.home-index .campaign-card .btn-outline-danger {
    border-width: 2px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

/* Campaign card: category label */
.home-index .campaign-card .card-header {
    background: none;
    border: none;
    padding: 1.25rem 1.5rem 0;
}

.home-index .campaign-card .campaign-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--om-red);
}

/* Override donation-card for home page campaign cards */
.home-index .donation-card {
    border: 1.5px solid var(--om-border);
    box-shadow: var(--om-shadow);
}

.home-index .donation-card:hover {
    border-color: var(--om-red);
    transform: translateY(-4px);
    box-shadow: var(--om-shadow-hover);
}

.home-index .donation-card .card-title {
    background: none;
    color: var(--om-text);
    padding: 0;
}


/* ============================================================
   INSTRUCTIONS PAGE
   ============================================================ */

.bank-details-box {
    background: var(--om-bg-subtle);
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    padding: 1.5rem;
}

.bank-details-box .detail-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--om-text-muted);
    margin-bottom: 0.2rem;
}

.bank-details-box .detail-value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--om-text);
}

.bank-details-box .detail-value.monospace {
    font-family: 'DM Mono', 'Courier New', monospace;
    letter-spacing: 0.04em;
}

.bank-details-box .detail-value.highlight {
    color: var(--om-red);
    font-size: 1.1rem;
}

.btn-copy {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--om-border);
    background: var(--om-bg-card);
    color: var(--om-text-secondary);
    transition: all var(--om-transition);
}

.btn-copy:hover {
    border-color: var(--om-red);
    color: var(--om-red);
}


/* ============================================================
   ALERTS — refined
   ============================================================ */

.alert {
    border-radius: var(--om-radius);
    border: none;
    font-size: 0.9rem;
}

.alert-info {
    background-color: #eef6ff;
    color: #1a5276;
}

.alert-warning {
    background-color: #fef9e7;
    color: #7d6608;
}

.alert-danger {
    background-color: var(--om-red-light);
    color: var(--om-red-dark);
}

.alert-success {
    background-color: #eafaf1;
    color: #1e7e34;
}


/* ============================================================
   UTILITIES & OVERRIDES
   ============================================================ */

.text-muted {
    color: var(--om-text-muted) !important;
}

.box-shadow {
    box-shadow: none;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* ============================================================
   ANIMATIONS — subtle page entry
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donation-card {
    animation: fadeInUp 0.4s ease-out;
}

.home-index .donazione-libera,
.home-index .hero-section {
    animation: fadeInUp 0.5s ease-out;
}

.home-index .donation-card,
.home-index .campaign-card {
    animation: fadeInUp 0.4s ease-out both;
}

.home-index .row-cols-1 .col:nth-child(1) .donation-card,
.home-index .row-cols-1 .col:nth-child(1) .campaign-card { animation-delay: 0.05s; }
.home-index .row-cols-1 .col:nth-child(2) .donation-card,
.home-index .row-cols-1 .col:nth-child(2) .campaign-card { animation-delay: 0.1s; }
.home-index .row-cols-1 .col:nth-child(3) .donation-card,
.home-index .row-cols-1 .col:nth-child(3) .campaign-card { animation-delay: 0.15s; }
.home-index .row-cols-1 .col:nth-child(4) .donation-card,
.home-index .row-cols-1 .col:nth-child(4) .campaign-card { animation-delay: 0.2s; }
.home-index .row-cols-1 .col:nth-child(5) .donation-card,
.home-index .row-cols-1 .col:nth-child(5) .campaign-card { animation-delay: 0.25s; }
.home-index .row-cols-1 .col:nth-child(6) .donation-card,
.home-index .row-cols-1 .col:nth-child(6) .campaign-card { animation-delay: 0.3s; }


/* ============================================================
   RESPONSIVE adjustments
   ============================================================ */

@media (max-width: 575px) {
    .donation-card .card-header-section,
    .donation-card > .card-title {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .donation-card .card-body {
        padding: 1.5rem 1.25rem;
    }

    .step-title {
        font-size: 0.95rem;
    }

    .tier-button {
        min-width: 80px;
        font-size: 0.9rem;
    }

    .nav-pills .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .home-index .hero-section h1 {
        font-size: 1.6rem;
    }
}


/* ============================================================
   DONATION PAGE — Method Tabs
   ============================================================ */

.donation-method-intro {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--om-text-secondary);
    margin-bottom: 0.6rem;
    text-align: center;
}

.donation-method-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--om-border);
}

.donation-method-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--om-text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--om-transition);
}

.donation-method-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: background var(--om-transition);
}

.donation-method-tab:hover {
    color: var(--om-red);
}

.donation-method-tab.active {
    color: var(--om-red);
}

.donation-method-tab.active::after {
    background: var(--om-red);
}

.donation-method-tab i {
    font-size: 1.5rem;
}

.donation-tab-panel {
    animation: fadeInTab 0.25s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .donation-method-tab {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        gap: 0.35rem;
    }
}


/* ============================================================
   DONATION PAGE — Sezioni Bonifico / PayPal
   ============================================================ */

.donation-section {
    padding: 1.5rem 0;
}

.donation-section:first-of-type {
    padding-top: 0;
}

.donation-section-header {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--om-text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.donation-section-header i {
    color: var(--om-red);
    font-size: 1.2rem;
}

.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--om-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--om-border);
}

.section-divider span {
    padding: 0 1rem;
}

/* Frequency selector (btn-check pattern) */
.frequency-selector .btn-check:checked + .btn-outline-primary {
    background-color: var(--om-red);
    border-color: var(--om-red);
    color: #fff;
}

.frequency-selector .btn-outline-primary {
    border-color: var(--om-border);
    color: var(--om-text);
    font-weight: 600;
}

.frequency-selector .btn-outline-primary:hover {
    border-color: var(--om-red);
    color: var(--om-red);
    background: var(--om-red-light);
}

/* Cover fees section */
.cover-fees-section {
    background: var(--om-bg);
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    padding: 0.75rem 1rem;
}

.cover-fees-section .form-check-input:checked {
    background-color: var(--om-red);
    border-color: var(--om-red);
}

/* PayPal button container */
#paypal-button-container {
    min-height: 55px;
}

/* Read-only fields (post-PayPal receipt form) */
.read-only-field {
    background-color: var(--om-bg) !important;
    font-weight: 600;
    cursor: default;
}

/* Campi in stampatello (dati che finiranno sulla ricevuta fiscale).
   Il maiuscolo del VALORE inviato è gestito da js/input-case.js: qui solo l'aspetto. */
.input-uppercase {
    text-transform: uppercase;
}

    .input-uppercase::placeholder {
        text-transform: none;
    }

/* Email: sempre minuscole, per lo stesso motivo di omogeneità. */
.input-lowercase {
    text-transform: lowercase;
}

    .input-lowercase::placeholder {
        text-transform: none;
    }

/* Campo-trappola anti-bot (partial _AntiBotFields): fuori dallo schermo, non display:none,
   perche' molti bot saltano i campi nascosti ma compilano quelli semplicemente spostati. */
.om-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Le mie ricevute: riga di una ricevuta senza benefici fiscali (contanti, o titolo con
   controprestazione: vedi FiscalNotes.IsDeductible). Bootstrap 5.3 colora le celle e non la
   riga, quindi il fondo passa dalla sua variabile: un background sul <tr> resterebbe coperto,
   e cosi' l'effetto hover di .table-hover continua a funzionare. */
.om-ricevuta-non-detraibile > * {
    --bs-table-bg: var(--om-red-light);
}

/* Campione di colore nella legenda, stesso fondo della riga. Il bordo e' rosso tenue e non
   --om-border: quel grigio sul fondo quasi bianco rendeva il campione invisibile. */
.om-legenda-non-detraibile {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.25rem;
    vertical-align: -0.1em;
    background-color: var(--om-red-light);
    border: 1px solid rgba(214, 0, 0, 0.4);
    border-radius: 2px;
}

/* Informativa privacy: testo lungo dentro la card, diviso in sezioni numerate. Titoli in rosso
   come gli accenti del portale, piu' piccoli del titolo della card; tabelle a corpo ridotto
   perche' su telefono le colonne restano leggibili senza scorrere troppo. */
.informativa h2 {
    font-size: 1.15rem;
    color: var(--om-red);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.informativa h3 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.informativa table {
    font-size: 0.92rem;
}

.informativa th {
    background-color: var(--om-bg-subtle);
}

/* I nomi dei cookie sono lunghi e senza spazi: senza andare a capo, su telefono schiacciano le
   altre due colonne della tabella in una parola per riga. */
.informativa td code {
    word-break: break-all;
}
