/* ============================================================
   ReefFish - Tema custom

   Le variabili CSS (--iki-*) sono generate da site/conf.php.
   Questo file serve per override CSS specifici del sito.
   ============================================================ */

/* ── Intro section con decoro animato (bollicine) ──────── */

.intro-section {
    background: linear-gradient(180deg, rgba(30, 58, 110, 0.05) 0%, rgba(255, 255, 255, 0) 65%);
    position: relative;
    overflow: hidden;
}

.intro-icon-wrap {
    position: relative;
    text-align: center;
}

.intro-icon-wrap > img {
    position: relative;
    z-index: 2;
    max-width: 320px;
    width: 100%;
}

/* Alone diffuso dietro l'icona (statico) */
.intro-halo {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    max-width: 95%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(30, 58, 110, 0.10) 0%,
        rgba(107, 91, 149, 0.06) 50%,
        transparent 75%);
    z-index: 1;
    pointer-events: none;
}

/* Bollicine animate */
.intro-bubble {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: bubbleFloat 6s ease-in-out infinite;
}

.intro-bubble--primary   { background: rgba(30, 58, 110, 0.12); }
.intro-bubble--secondary { background: rgba(107, 91, 149, 0.12); }
.intro-bubble--soft      { background: rgba(30, 58, 110, 0.06); }

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0)     scale(1);    opacity: 0.85; }
    50%      { transform: translateY(-18px) scale(1.06); opacity: 1; }
}

/* Rispetto delle preferenze utente: niente animazioni se richiesto */
@media (prefers-reduced-motion: reduce) {
    .intro-bubble { animation: none; }
}

/* Eyebrow tipografico per le sezioni intro */
.intro-eyebrow {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #6B5B95;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Paragrafo lead dell'intro: più grande, con <strong> in primary blue */
.intro-section .lead {
    font-size: 1.4rem;
    line-height: 1.55;
}

.intro-section .lead strong {
    color: #1E3A6E;
    font-weight: 600;
}

/* ── Quote form (preventivo acquario) ───────────────────── */
.quote-section {
    background: #f7f9fc;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
}

.quote-section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #1E3A6E;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.quote-section-title i { font-size: 1rem; }

.quote-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
}

@media (min-width: 576px) {
    .quote-type-grid { grid-template-columns: repeat(4, 1fr); }
}

.quote-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.1rem .5rem;
    background: #fff;
    border: 2px solid #dde3ec;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: #555;
    transition: border-color .15s, background .15s, color .15s;
    line-height: 1.3;
    user-select: none;
}

.quote-type-card i {
    font-size: 1.75rem;
    transition: color .15s;
}

.quote-card-icon-no  { color: #aab4c2; }
.quote-card-icon-yes { display: none; color: #fff; }

.btn-check:checked + .quote-type-card {
    border-color: #1E3A6E;
    background: #1E3A6E;
    color: #fff;
}

.btn-check:checked + .quote-type-card .quote-card-icon-no  { display: none; }
.btn-check:checked + .quote-type-card .quote-card-icon-yes { display: inline-block; }

.btn-check:focus-visible + .quote-type-card {
    outline: 2px solid #1E3A6E;
    outline-offset: 2px;
}

.quote-type-card:hover { border-color: #1E3A6E; }

.quote-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.1rem;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 10px;
    margin-bottom: .5rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.quote-option:has(.form-check-input:checked) {
    border-color: #1E3A6E;
    background: #eef2fa;
}

.quote-option .form-check-input {
    width: 2.5em;
    height: 1.3em;
    flex-shrink: 0;
    margin-top: 0;
    cursor: pointer;
}

.quote-option-label {
    flex: 1;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: .95rem;
}

.quote-option-hint {
    display: block;
    font-size: .78rem;
    color: #888;
    font-weight: 400;
    margin-top: .1rem;
}

/* ── Quote CTA band (homepage + pre-footer) ─────────────── */

.quote-cta-band {
    background: #1E3A6E;
    padding: 3rem 0;
}

.quote-cta-icon {
    font-size: 2rem;
    color: rgba(255,255,255,.5);
    margin-bottom: .5rem;
    line-height: 1;
}

.quote-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}

.quote-cta-text {
    color: rgba(255,255,255,.75);
    margin: 0;
    font-size: .95rem;
}

.btn-quote-cta {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.75rem;
    background: #F5C518;
    color: #1E3A6E;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.btn-quote-cta:hover { background: #e0b200; color: #1E3A6E; }

@media (max-width: 991.98px) {
    .quote-cta-band .col-lg-8 { text-align: center; }

    /* Dropdown "Su di noi" inline — stesso comportamento del megamenu Shop */
    .mobile-nav .dropdown-menu:not(.megamenu) {
        position: static !important;
        transform: none !important;
        border: none;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        margin-top: 0;
        padding: .25rem 0 .5rem 15px;
    }

    /* Voci "Su di noi": stile coerente con i link del megamenu */
    .mobile-nav .dropdown-menu:not(.megamenu) .dropdown-item {
        padding: .35rem 0;
        font-size: .9rem;
        font-weight: 400;
        color: #444;
        text-transform: none;
        letter-spacing: 0;
        background-color: transparent;
    }
    .mobile-nav .dropdown-menu:not(.megamenu) .dropdown-item:hover {
        color: var(--iki-primary);
        background-color: transparent;
    }
    /* Voce attiva: grassetto + colore primario invece del blu Bootstrap */
    .mobile-nav .dropdown-menu:not(.megamenu) .dropdown-item.active,
    .mobile-nav .dropdown-menu:not(.megamenu) .dropdown-item:active {
        background-color: transparent;
        color: var(--iki-primary);
        font-weight: 600;
    }

    /*
     * Megamenu Shop: il megamenu è position:absolute ancorato a left:0 dell'offcanvas.
     * Il nav-link parte a x=1rem (padding offcanvas-body).
     * Azzeriamo row/col e mettiamo padding-left:1rem sul container
     * per far partire i link alla stessa x del testo "SHOP".
     */
    .mobile-nav .megamenu .container {
        padding-left: 1rem;
        padding-right: 0;
    }
    .mobile-nav .megamenu .row {
        margin-left: 0;
        margin-right: 0;
    }
    .mobile-nav .megamenu [class*="col-"] {
        padding-left: 15px;
        padding-right: 0;
    }
    .mobile-nav .megamenu .megamenu-viewall {
        padding-left: 15px;
    }
}

.btn-quote-cta-sm {
    padding: .55rem 1.25rem;
    font-size: .88rem;
}

/* ── Font mobile ─────────────────────────────────────── */
@media (max-width: 767.98px) {
    .page-header {
        padding: 6rem 0 1.5rem;
    }
    .page-header-title {
        font-size: 1.4rem;
    }
    .lead {
        font-size: 1rem;
    }
}

/* Pre-footer strip */
.prefooter-quote {
    background: #f0f4fa;
    border-top: 1px solid #dde4f0;
    border-bottom: 1px solid #dde4f0;
    padding: 1.1rem 0;
    font-size: .95rem;
    color: #1E3A6E;
    font-weight: 600;
}

.prefooter-quote-sub {
    font-weight: 400;
    color: #555;
}

@media (max-width: 767.98px) {
    .prefooter-quote .d-flex > div { text-align: center; }
}
