/* ============================================================
   Public Pages – richiedi-informazioni, privacy policy, ecc.
   Caricato solo sulle pagine pubbliche via @section('css')
   ============================================================ */

.page-wrapper .topbar,
.page-wrapper .footer {
    display: none !important;
}

.page-wrapper .page-content {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

.page-wrapper .page-content > .container-fluid {
    padding: 0 !important;
    max-width: none !important;
}

.page-wrapper,
.page-content,
.page-wrapper .page-content > .container-fluid {
    background: transparent !important;
}

:root {
    --cc-primary: #1f4f95;
    --cc-secondary: #12315d;
    --cc-accent: #00b5b0;
    --cc-soft: #f3f7fc;
    --cc-text: #1f2d3d;
    --cc-muted: #5c6f86;
}

/* ── Topbar ── */
.info-shell {
    position: relative;
    overflow: hidden;
    margin: 1.25rem 1.25rem 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(128deg, #23bfcf 0%, #1f99ad 48%, #122e59 100%);
    box-shadow: 0 24px 65px rgba(16, 39, 75, 0.28);
}

.info-shell::before,
.info-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.info-shell::before {
    width: 420px;
    height: 420px;
    top: -220px;
    right: -100px;
}

.info-shell::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -80px;
}

.topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topline img {
    height: 36px;
}

.topline-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.83rem;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.topline-back:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
}

.info-header {
    position: relative;
    z-index: 2;
    padding: 2rem 2rem 2.2rem;
    color: #fff;
}

.info-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.info-header p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    margin: 0;
}

/* ── Card form ── */
.info-body {
    margin: 0 1.25rem 1.25rem;
    background: #fff;
    border-radius: 0 0 24px 24px;
    border: 1px solid #e7eef8;
    border-top: none;
    box-shadow: 0 24px 65px rgba(16, 39, 75, 0.1);
    padding: 2rem;
}

.form-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cc-muted);
    margin-bottom: 1rem;
}

.info-form .form-group label {
    font-weight: 600;
    color: var(--cc-text);
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

.info-form .form-control {
    border: 1.5px solid #dde5f0;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.96rem;
    color: var(--cc-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.info-form .form-control:focus {
    border-color: var(--cc-accent);
    box-shadow: 0 0 0 3px rgba(0, 181, 176, 0.15);
    outline: none;
}

.info-form .form-control.is-invalid {
    border-color: #dc3545;
}

.info-form textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.privacy-check input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    accent-color: var(--cc-primary);
    cursor: pointer;
}

.privacy-check label {
    font-size: 0.9rem;
    color: var(--cc-muted);
    cursor: pointer;
    margin: 0;
}

.privacy-check label a {
    color: var(--cc-primary);
    text-decoration: underline;
}

/* ── Bottone submit ── */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: linear-gradient(128deg, #23bfcf 0%, #1f99ad 48%, #122e59 100%);
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(19, 155, 173, 0.3);
    -webkit-appearance: none;
}

.btn-submit:hover,
.btn-submit:focus {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(19, 155, 173, 0.45);
}

.btn-submit:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.btn-submit .btn-icon {
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.btn-submit:hover .btn-icon,
.btn-submit:focus .btn-icon {
    transform: translateX(3px);
}

/* ── Footer closing ── */
.closing {
    margin-top: 1rem;
    border-radius: 18px;
    padding: 1.5rem;
    background: linear-gradient(128deg, #23bfcf 0%, #1f99ad 48%, #122e59 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Nelle pagine info (richiedi-informazioni, privacy-policy) il closing
   segue direttamente .info-body e necessita dei margini laterali per
   allinearsi alla shell. Nella landing ci pensa il padding di .main-wrap. */
.info-body + .closing {
    margin: 1rem 1.25rem 1.25rem;
}

.closing h3 {
    margin: 0 0 0.35rem;
    font-size: 1.3rem;
}

.closing p {
    margin: 0;
    color: rgba(255, 255, 255, 0.83);
}

.closing .btn {
    border-radius: 12px;
    font-weight: 600;
    padding-inline: 1rem;
}

@media (max-width: 575.98px) {
    .info-body + .closing {
        margin: 1rem 0.65rem 0.65rem;
        border-radius: 14px;
    }
}

/* ── Privacy policy ── */
body.accountbg {
    background: #f0f4fb !important;
    min-height: 100vh;
}

/* ── Auth pages background (login, reset) ──
   Viene DOPO body.accountbg: a parità di specificità + !important vince chi viene dopo */
body.auth-page {
    background-image: url('../images/auth-bg.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: repeat !important;
    background-color: rgba(0, 0, 0, 0.04) !important;
    min-height: 100vh;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cc-primary);
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e7eef8;
}

.privacy-section p,
.privacy-section li {
    font-size: 0.93rem;
    color: var(--cc-text);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.privacy-section ul {
    padding-left: 1.4rem;
}

.privacy-section ul li::marker {
    color: var(--cc-accent);
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f4fb;
    border: 1px solid #dde5f0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: var(--cc-muted);
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 2.5px solid var(--cc-primary);
    border-radius: 50px;
    color: var(--cc-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 1.6rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-top: 1rem;
}

.back-btn:hover {
    background: var(--cc-primary);
    color: #fff;
    text-decoration: none;
}

/* ── Alert success ── */
.alert-success-custom {
    background: linear-gradient(128deg, #23bfcf 0%, #1f99ad 60%, #122e59 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success-custom i {
    font-size: 1.3rem;
}

/* ── Auth pages (login, reset password) ── */
.auth-wrap {
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.auth-wrap .info-shell {
    width: 100%;
    max-width: 480px;
    margin: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: none;
}

/* Rimuove l'ombra di .info-shell nelle pagine con classe no-shell-shadow (es. richiedi-informazioni) */
body.no-shell-shadow .info-shell {
    box-shadow: none;
}

.auth-wrap .info-body {
    width: 100%;
    max-width: 480px;
    margin: 0;
    border-radius: 0 0 24px 24px;
}

.auth-wrap .info-body + .closing {
    margin: 1rem 0 0;
    width: 100%;
    max-width: 480px;
    border-radius: 18px;
}

/* ── Responsive mobile ── */
@media (max-width: 575.98px) {
    .info-shell {
        margin: 0.65rem 0.65rem 0;
        border-radius: 16px 16px 0 0;
    }

    .info-body {
        margin: 0 0.65rem 0.65rem;
        border-radius: 0 0 16px 16px;
        padding: 1.25rem;
    }

    .topline {
        padding: 0.8rem;
    }

    .topline-back span {
        display: none;
    }

    .info-header {
        padding: 1.4rem 1rem 1.6rem;
    }

    .info-header h1 {
        font-size: 1.4rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
