/*
 * Site Theme CSS — tema personalizzato del singolo sito.
 *
 * Questo file è il punto dove aggiungere gli stili specifici del cliente
 * (colori brand, tipografia, componenti custom). Caricato dopo gli stili base.
 *
 * NOTE: usare :where() per le regole che il live editor può sovrascrivere
 * (specificità zero), così il CSS generato dal live editor vince sempre.
 */

/* ═══ ROOT VARIABLES ═══ */
:root {
    /* ENFAP Umbria — palette da ENFAP-ASSETS/_palette.png */
    --site-primary: #283581;
    --site-accent: #55BEC3;
    --site-accent-dark: #1F2A6B;
    --site-gray: #4A5596;
    --site-gray-light: #D5D9E8;
    --site-white: #ffffff;
}

/* ═══ GLOBAL TYPOGRAPHY ═══ */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══ HEADER ═══ */
:where(.site-header) {
    transition: background-color 0.4s ease;
}

/* ═══ FOOTER ═══ */
:where(.site-footer) {
    position: relative;
}
:where(.site-footer a) {
    transition: color 0.2s;
}

/* ═══ SHAPE DIVIDERS ═══ */
:where(.pp-shape-divider svg) {
    display: block;
}

/* ═══ BREADCRUMBS ═══ */
:where(.pp-breadcrumbs) {
    font-size: 13px;
    color: var(--site-gray);
    padding: 12px 0;
}
:where(.pp-breadcrumbs a) {
    color: var(--site-gray);
    text-decoration: none;
}
:where(.pp-breadcrumbs a:hover) {
    color: var(--site-accent);
}

/* ═══ DOWNLOAD CARDS ═══ */
:where(.tpl-download-card) {
    transition: border-color 0.2s;
}
:where(.tpl-download-card:hover) {
    border-color: var(--site-accent);
}
:where(.tpl-download-btn) {
    background: var(--site-accent);
    color: #fff;
    transition: background 0.2s;
}
:where(.tpl-download-btn:hover) {
    background: var(--site-accent-dark);
}

/* ═══ FORM STYLING ═══ */
:where(.custom-input) {
    border: 1px solid var(--site-gray-light);
    border-radius: 2px;
    padding: 14px 16px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: var(--site-white);
}
:where(.custom-input:focus) {
    border-color: var(--site-accent);
    outline: none;
}
:where(.form-submit-group .custom-button) {
    background: var(--site-accent);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 2px;
}
:where(.form-submit-group .custom-button:hover) {
    background: var(--site-accent-dark);
}

/* ═══ SCROLL ANIMATIONS ═══ */
.pp-anim-fadeInUp {
    animation: siteFadeInUp 0.8s ease forwards;
}
@keyframes siteFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    :where(.pp-query-card:hover) {
        transform: none;
    }
}

/* ═══ FORM DEL FORM BUILDER — struttura (lo stile di campi e pulsanti resta quello del tema) ═══ */
/* Spazio fra le colonne 10px: le colonne a metà sono larghe calc(50% - 5px) (vedi dynamic-form.blade.php) e arrivano a filo */
.page-form .form-sec-grid { gap: 10px; }
.page-form .form-row { gap: 10px; justify-content: space-between; }
.page-form .form-row .form-col { gap: 10px; }
/* Errori: testo rosso sotto il campo e bordo rosso, niente fumetto (form-errors.js) */
.page-form .form-group .error,
.page-form .checkbox-input .error {
    position: static;
    display: none;
    width: auto;
    margin: .35rem 0 0 .25rem;
    padding: 0;
    background: none;
    box-shadow: none;
    color: #DC2626;
    font-size: .85rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 1;
    visibility: visible;
    animation: none;
}
.page-form .form-group .error svg,
.page-form .checkbox-input .error svg,
.page-form .form-group .error::before,
.page-form .checkbox-input .error::before { display: none; }
.page-form .form-group.show-error > .error,
.page-form .checkbox-input.show-error > .error { display: block; }
.page-form .checkbox-input { flex-wrap: wrap; }
.page-form .checkbox-input > .label-check { flex: 1 1 0; min-width: 0; }
.page-form .checkbox-input > .error,
.page-form .form-group--inline > .error { flex-basis: 100%; }
.page-form .form-group.show-error input:not([type=checkbox]):not([type=radio]),
.page-form .form-group.show-error textarea,
.page-form .form-group.show-error select,
.page-form .show-error > .checkbox-c,
.page-form .show-error .radio-group .checkbox-c {
    border-color: #DC2626 !important;
    box-shadow: none !important;
}
/* Testo libero (campo "Testo") */
.page-form .form-paragraph { margin: .75rem 0 0; font-size: .9rem; line-height: 1.5; }
/* Radio "in linea": etichetta a sinistra, scelte affiancate (es. Consento / Non consento) */
.page-form .form-group--inline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.page-form .form-group--inline > .label-check { flex: 0 0 17rem; margin: 0; }
.page-form .form-group--inline .radio-group { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; }
.page-form .form-group--inline .checkbox-input { margin: 0; align-items: center; }
@media (max-width: 767.98px) {
    .page-form .form-group--inline > .label-check { flex-basis: 100%; }
    .page-form .form-group--inline .radio-group { gap: .5rem 2rem; }
}

/* ═════════════════════════════════════════════════════════════════════
 * ENFAP UMBRIA — stile del sito (mockup in ENFAP-ASSETS)
 * Le sezioni del page builder hanno classi enfap-* (Impostazioni sezione › Classe CSS)
 * ═════════════════════════════════════════════════════════════════════ */
:root {
    --enfap-blue: #283581;
    --enfap-blue-dark: #141B66;
    --enfap-teal: #55BEC3;
    --enfap-bg: #F6F7F9;
    --enfap-bg-alt: #EEF0F4;
    --enfap-line: #D5D9E8;
    --enfap-radius-lg: 40px;
    --enfap-radius: 6px;
    --enfap-gutter: clamp(20px, 5.5vw, 80px);
}
body { background: var(--enfap-bg); color: var(--enfap-blue); font-family: 'Momo Trust Sans', sans-serif; }
body h1, body h2, body h3, body h4, body h5, body h6 { color: var(--enfap-blue); font-family: 'Momo Trust Sans', sans-serif; }
body a { color: inherit; }
/* Le righe stanno a 80px dai bordi come nel mockup */
:is(main, .site-footer) .section-container.pb-full-width > .pb-row {}
@media (max-width: 1440px) { :is(main, .site-footer) .section-container.pb-full-width > .pb-row { box-sizing: border-box; max-width: none !important; } }

/* ─── Pulsante "Maggiori informazioni" / "Leggi l'articolo": testo + riquadro freccia blu ─── */
.enfap-ql .pp-query-card__readmore {
    display: inline-flex !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    min-width: min(350px, 100%);
    /* min-height: 50px; */
    padding: 0 !important;
    gap: 0 !important;
    border: 2px solid var(--enfap-blue) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--enfap-blue) !important;
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.enfap-ql .pp-query-card__readmore .btn-txt { display: flex; align-items: center; padding: 0 18px; }
.enfap-ql .pp-query-card__readmore > i {
    display: flex; align-items: center; justify-content: center; width: 50px; margin: -2px -2px -2px 0;
    background: var(--enfap-blue); color: #fff; font-size: 22px; border-radius: 0 4px 4px 0;
}
.enfap-ql .pp-query-card:hover .pp-query-card__readmore { background: var(--enfap-blue) !important; color: #fff !important; }

/* ─── TITOLI DI SEZIONE ─── */
.enfap-section-title .template-titolo-heading { font-size: clamp(34px, 3.4vw, 48px); font-weight: 600; line-height: 1.1; margin: 0; }

/* ─── HERO ─── */
.enfap-hero-title .template-titolo-heading {
    color: #fff; font-size: clamp(48px, 7vw, 104px); font-weight: 500; line-height: 1.02; letter-spacing: -.01em;
    max-width: 640px; margin: 0 0 clamp(40px, 8vw, 110px);
}
.enfap-hero-text { max-width: 680px; }
.enfap-hero-text p { color: #fff; font-size: 18px; font-weight: 300; line-height: 1.3; margin: 0 0 22px; }
.enfap-hero-text p.enfap-lead { font-size: clamp(22px, 2.1vw, 30px); font-weight: 400; line-height: 1.27; margin-bottom: 40px; }

/* Card "Corsi per…": pulsante con icona, testo e freccia */
.enfap-cat-card .template-button, .enfap-cat-card .custom-button { width: 100%; }
.enfap-cat-card .custom-button {
    display: flex !important; align-items: center !important; justify-content: space-between !important;
    min-height: 118px; padding: 20px 28px !important; border-radius: var(--enfap-radius) !important;
    background: #F7F7F7 !important; border: 2px solid var(--enfap-teal) !important; color: var(--enfap-blue) !important;
    text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.enfap-cat-card .custom-button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20,27,102,.25); }
.enfap-cat-card .btn-main { display: flex; align-items: center; }
.enfap-cat-card .btn-txt { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; line-height: 1.15; text-align: left; white-space: normal; max-width: 300px; }
.enfap-cat-card .btn-icon-box { width: 50px; height: 50px; display: flex !important; align-items: center; justify-content: center; flex: 0 0 50px; padding: 0 !important; }
.enfap-page-head .enfap-cat-card .custom-button { background: #fff !important; }

.enfap-mission-intro p { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; font-weight: 400; color: var(--enfap-blue); margin: 0 0 34px; max-width: 1260px; }
.enfap-mission-intro strong { font-weight: 600; }
.enfap-mission-list .banner-title { display: none; }
.enfap-mission-list .minimal-splash, .enfap-mission-list .info-prod-desc, .enfap-mission-list .col-12 { padding: 0; margin: 0; width: 100%; max-width: none; }
.enfap-mission-list ul.minimal-list { display: flex !important; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.enfap-mission-list ul.minimal-list > li {
    display: grid !important; grid-template-columns: 50px minmax(200px, 400px) 1fr; align-items: center; gap: 28px;
    padding: 24px 28px; margin: 0; border: 2px solid rgba(40,53,129,.18); border-radius: var(--enfap-radius); background: rgba(255,255,255,.04);
}
.enfap-mission-list .min-svg {
    width: 50px !important; height: 50px !important; display: flex; align-items: center; justify-content: center;
    background: var(--enfap-blue); border-radius: 4px; color: var(--enfap-teal);
}
.enfap-mission-list .min-svg > span { width: 20px !important; height: 20px !important; }
.enfap-mission-list .min-svg svg path, .enfap-mission-list .min-svg svg .cls-1 { fill: var(--enfap-teal) !important; }
.enfap-mission-list .minimal-text { display: contents; }
.enfap-mission-list .min-title h6 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; margin: 0; color: var(--enfap-blue); }
.enfap-mission-list .min-desc p { font-size: 17px; line-height: 1.35; margin: 0; color: var(--enfap-blue); }


/* Carousel (Corsi in partenza / Ultime news): titolo a sinistra, frecce in alto a destra */
.enfap-courses .pb-col, .enfap-news .pb-col { position: relative; }
.enfap-ql { margin-top: 28px; }
.enfap-ql .pp-query-loop-carousel-wrap { position: static !important; }
.enfap-ql .pp-ql-custom-arrows { position: absolute !important; top: 0; right: 0; display: flex !important; gap: 20px !important; margin: 0 !important; padding: 0 !important; }
.enfap-ql .pp-ql-arrow {
    width: 50px !important; height: 50px !important; border-radius: 4px !important; border: 2px solid var(--enfap-blue) !important;
    background: transparent !important; color: var(--enfap-blue) !important; display: flex; align-items: center; justify-content: center;
}
.enfap-ql .pp-ql-arrow--next, .enfap-ql .pp-ql-arrow:hover { background: var(--enfap-blue) !important; color: #fff !important; }
.enfap-ql .pp-ql-arrow svg { width: 20px; height: 20px; }
.enfap-ql .pp-ql-arrow[disabled] { opacity: .35; }

/* Card */
.enfap-ql .pp-query-card {
    display: flex; flex-direction: column; height: 100%; padding: 28px; background: transparent;
    border: 2px solid var(--enfap-line); border-radius: var(--enfap-radius); box-shadow: none !important; text-decoration: none;
    transition: border-color .2s; color: var(--enfap-blue);
}
.enfap-ql .pp-query-card:hover { border-color: var(--enfap-blue); transform: none; }
.enfap-ql .pp-query-card__image { height: 138px; border-radius: var(--enfap-radius); overflow: hidden; border: 1px solid var(--enfap-line); margin: 0 0 28px; }
.enfap-ql .pp-query-card__image img { width: 100%; height: 100%; object-fit: cover; }
.enfap-ql .pp-query-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 0 !important; gap: 0; }
.enfap-ql .pp-query-card__categories { margin: 0 0 18px; }
.enfap-ql .pp-query-card__cat { display: inline-block; background: #E6E8F0; color: var(--enfap-blue); font-size: 13px; font-weight: 600; padding: 6px 15px; border-radius: 3px; }
.enfap-ql .pp-query-card__meta { margin: 0 0 14px; }
.enfap-ql .pp-query-card__date { font-size: 18px; color: var(--enfap-blue); font-weight: 400; }
.enfap-ql .pp-query-card__title { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; color: var(--enfap-blue); margin: 0 0 24px; flex: 1; }
.enfap-ql-news .pp-query-card__title { flex: none; margin-bottom: 26px; min-height: 2.6em; }

/* ─── CTA "Sei un'azienda…" ─── */
.enfap-cta-text p { color: #fff; font-size: clamp(28px, 3.3vw, 48px); font-weight: 300; line-height: 1.12; margin: 0; max-width: 880px; }
.enfap-cta-text a { color: #fff; text-decoration: none; }
.enfap-cta-text a strong { font-weight: 700; }
.enfap-cta-text a:hover strong { color: var(--enfap-teal); }

/* ─── FOOTER ─── */
main, .main-content { padding-bottom: var(--enfap-radius-lg); }
.enfap-footer .enfap-footer-logo { width: 207px; height: auto; }
.enfap-footer .pp-socials__link { color: #fff; }
.enfap-footer-info h5 {
    color: var(--enfap-teal); font-size: 17px; font-weight: 600; margin: 0 0 10px; padding-bottom: 6px;
    border-bottom: 2px solid rgba(85,190,195,.6); max-width: 207px;
}
.enfap-footer .pb-col:nth-child(2) .enfap-footer-info h5 { max-width: 304px; }
.enfap-footer-info p { color: #fff; font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.enfap-footer-info a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.enfap-footer-info a.tel { text-decoration: none; }
.enfap-footer .pb-col:nth-child(3) { display: flex; flex-direction: column; align-items: flex-end; }
.enfap-footer .pb-col:nth-child(3) > * { width: 100%; max-width: 305px; }
.enfap-footer-banner { background: #fff; border-radius: var(--enfap-radius); width: 100%; height: auto; display: block; }
.enfap-footer-note p { color: #fff; font-size: 13px; line-height: 1.35; margin: 18px 0 0; }
.enfap-footer-note a { color: #fff; text-decoration: underline; }
.enfap-footer-bottom .pp-copyright { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.6; }
.enfap-footer-bottom .pp-copyright span { margin: 0 10px; }
.enfap-footer-bottom .pp-copyright a { color: #fff; }

/* ─── PAGINE INTERNE ─── */
.enfap-page-head { padding: 52px 0 clamp(40px, 6vw, 80px); }
.enfap-page-head .pp-breadcrumb { margin-bottom: clamp(28px, 4vw, 52px); }
.enfap-page-head .pp-breadcrumb__list { font-size: 15px; color: var(--enfap-blue); gap: 14px; }
.enfap-page-head .pp-breadcrumb__link { color: var(--enfap-blue); text-decoration: none; }
.enfap-page-head .pp-breadcrumb__current { font-weight: 700; color: var(--enfap-blue); }
.enfap-page-title .template-titolo-heading { font-size: clamp(40px, 5.6vw, 80px); font-weight: 500; line-height: 1.06; letter-spacing: -.005em; margin: 0 0 clamp(30px, 4vw, 52px); max-width: 1200px; }
.enfap-intro p { font-size: 20px; margin: 0 0 22px; }
.enfap-article { padding: 0 0 clamp(20px, 3vw, 40px); }
.enfap-article .pb-row { align-items: flex-start; }
.enfap-article-text { color: var(--enfap-blue); }
.enfap-article-text p, .enfap-article-text li { font-size: 18px; line-height: 1.3; font-weight: 300; color: var(--enfap-blue); }
.enfap-article-text p { margin: 0 0 22px; }
.enfap-article-text strong { font-weight: 600; }
.enfap-article-text p.enfap-lead { font-size: clamp(20px, 2vw, 26px); font-weight: 400; }
.enfap-article-text h3 { font-size: 24px; font-weight: 600; margin: 48px 0 4px; }
.enfap-article-text ul { margin: 0 0 22px; padding-left: clamp(20px, 9vw, 135px); }
.enfap-article-text a { text-decoration: underline; }
.enfap-article-img { width: 100%; height: auto; border-radius: var(--enfap-radius); display: block; }
.enfap-article-body { padding-bottom: clamp(60px, 8vw, 120px); }

/* ─── CONTATTI ─── */
.enfap-form .p-max, .enfap-form .p-middle:empty { display: none; }
.enfap-form .page-form { margin: 0; }
.enfap-form .custom-input {
    width: 100%; min-height: 50px; padding: 12px 18px; background: #fff; color: var(--enfap-blue);
    border: 2px solid var(--enfap-line); border-radius: 4px; font-size: 17px; font-family: inherit; box-shadow: none;
}
.enfap-form .custom-input::placeholder { color: var(--enfap-blue); opacity: 1; }
.enfap-form .custom-input:focus { border-color: var(--enfap-blue); outline: none; }
.enfap-form textarea.custom-input { min-height: 98px; }
.enfap-form select.custom-input {
    appearance: none; -webkit-appearance: none; padding-right: 60px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='3' fill='%23283581'/%3E%3Cpath d='M15 8v13M9.5 15.5L15 21l5.5-5.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center / 30px;
}
.enfap-form .checkbox-input { align-items: flex-start; gap: 20px; margin: 18px 0 12px; }
.enfap-form .checkbox-c { width: 30px; height: 30px; min-width: 30px; border: 2px solid var(--enfap-line); border-radius: 4px; background: #fff; }
.enfap-form .label-check { font-size: 14px; line-height: 1.3; color: var(--enfap-blue); }
.enfap-form .label-check a { text-decoration: underline; }
.enfap-form .form-submit-group { margin-top: 18px; }
.enfap-form .form-submit-group .custom-button {
    display: inline-flex; align-items: stretch; justify-content: space-between; min-width: min(353px, 100%); min-height: 50px; padding: 0;
    background: transparent; color: var(--enfap-blue); border: 2px solid var(--enfap-blue); border-radius: 4px; font-weight: 700; font-size: 17px;
}
.enfap-form .form-submit-group .custom-button .btn-txt { display: flex; align-items: center; padding: 0 18px; }
.enfap-form .form-submit-group .custom-button svg { width: 50px; height: auto; padding: 13px; background: var(--enfap-blue); color: #fff; margin: -2px -2px -2px 0; border-radius: 0 3px 3px 0; box-sizing: border-box; }
.enfap-form .form-submit-group .custom-button:hover { background: var(--enfap-blue); color: #fff; }
.enfap-contact-head { padding-bottom: clamp(60px, 8vw, 130px); }
.enfap-contact-info { background: var(--enfap-bg-alt); border-radius: var(--enfap-radius-lg) var(--enfap-radius-lg) 0 0; padding: clamp(50px, 6vw, 90px) 0 clamp(60px, 7vw, 110px); position: relative; z-index: 1; }
.enfap-info-block h5 { font-size: 20px; font-weight: 600; color: var(--enfap-blue); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #B9BFDA; max-width: 305px; }
.enfap-info-block p { font-size: 20px; line-height: 1.75; margin: 0 0 26px; color: var(--enfap-blue); }
.enfap-info-block a { text-decoration: none; }
.enfap-info-block a.mail { text-decoration: underline; text-underline-offset: 3px; }
.enfap-map { padding: 0; margin-top: calc(var(--enfap-radius-lg) * -1); }
.enfap-map > .pb-row { padding: 0 !important; max-width: none !important; }
.enfap-map iframe { display: block; width: 100%; height: clamp(320px, 30vw, 450px); filter: saturate(.85); }
body:has(.enfap-map) main, body:has(.enfap-map) .main-content { padding-bottom: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .enfap-mission-list ul.minimal-list > li { grid-template-columns: 50px 1fr; gap: 10px 20px; }
    .enfap-mission-list .min-desc { grid-column: 2; }
    .enfap-footer .pb-col:nth-child(3) { align-items: flex-start; }
}
@media (max-width: 767px) {
    :root { --enfap-radius-lg: 24px; }
    .enfap-cat-card .custom-button { min-height: 92px; padding: 16px 18px !important; }
    .enfap-cat-card .btn-lead-icon { width: 44px !important; height: 44px !important; }
    .enfap-cat-card .btn-main { gap: 16px !important; }
    .enfap-mission-list ul.minimal-list > li { padding: 18px; }
    .enfap-ql { margin-top: 90px; }
    .enfap-ql .pp-ql-custom-arrows { top: -70px; left: 0; right: auto; }
    .enfap-ql .pp-query-card { padding: 20px; }
    .enfap-footer .pb-col { align-items: flex-start !important; }
    .enfap-footer .pp-socials { justify-content: flex-start !important; margin-top: 30px; }
    .enfap-footer-bottom .pp-copyright span { margin: 0 4px; }
    .enfap-article-text ul { padding-left: 20px; }
}

/* ─── Ritocchi dopo il confronto con il mockup ─── */
/* Il CSS generato del widget toglie il bordo con un selettore [data-tpl-id]: qui serve più specificità */
.enfap-ql[data-tpl-id] .pp-query-card__readmore {
}
.enfap-ql[data-tpl-id] .pp-query-card__readmore > i { margin: 0 !important; font-size: 22px !important; }
.enfap-ql[data-tpl-id] .pp-query-card:hover .pp-query-card__readmore {/* background: var(--enfap-blue) !important; *//* color: #fff !important; */}
.enfap-page-head { padding-bottom: clamp(16px, 2.5vw, 36px); }
.enfap-page-head .enfap-page-title .template-titolo-heading { margin-bottom: clamp(24px, 3.5vw, 50px); }
/* Campi del form: il tema base usa .template-form input:not(...) (più specifico) */
.enfap-form .template-form .custom-input, .enfap-form .template-form input.custom-input {
    min-height: 50px !important; padding: 12px 18px !important; background-color: #fff !important; color: var(--enfap-blue) !important;
    border: 2px solid var(--enfap-line) !important; border-radius: 4px !important; font-size: 17px !important; box-shadow: none !important;
}
.enfap-form .template-form .custom-input:focus { border-color: var(--enfap-blue) !important; }
.enfap-form .label-check a, .enfap-form .label-check a:hover { color: var(--enfap-blue) !important; }
/* Elenco news (pagina News): foto a sinistra, data / titolo / pulsante a destra */
.enfap-ql-newslist { margin-top: 0; }
.enfap-ql-newslist .pp-query-card--list { flex-direction: row; align-items: stretch; gap: 20px; padding: 20px; }
.enfap-ql-newslist .pp-query-card--list .pp-query-card__image { flex: 0 0 176px; height: auto; min-height: 184px; margin: 0; }
.enfap-ql-newslist .pp-query-card__body { justify-content: flex-start; }
.enfap-ql-newslist .pp-query-card__meta { order: -1; margin-bottom: 14px; }
.enfap-ql-newslist .pp-query-card__title { flex: none; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.enfap-ql-newslist .pp-query-card__readmore { margin-top: auto; }
.enfap-ql .pp-ql-pagination { margin-top: 40px; }
@media (max-width: 767px) {
    .enfap-ql-newslist .pp-query-card--list { flex-direction: column; }
    .enfap-ql-newslist .pp-query-card--list .pp-query-card__image { flex-basis: auto; height: 200px; }
}
/* Pagina corso (template comune "Pagina corso") */
.enfap-page-title .template-pretitle { display: inline-block; background: #E6E8F0; color: var(--enfap-blue); font-size: 13px; font-weight: 600; padding: 6px 15px; border-radius: 3px; margin: 0 0 18px; text-transform: none; letter-spacing: 0; }
.enfap-course-field .template-pretitle { font-size: 24px; font-weight: 600; color: var(--enfap-blue); margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.enfap-course-field + .enfap-course-field { margin-top: 28px; }
.enfap-course .pb-col:nth-child(2) { display: flex; flex-direction: column; gap: 28px; }
.enfap-btn-info .custom-button {
    display: inline-flex !important; align-items: stretch !important; justify-content: space-between !important; gap: 0 !important;
    min-width: min(353px, 100%); min-height: 50px; padding: 0 !important; border: 2px solid var(--enfap-blue) !important; border-radius: 4px !important;
    background: transparent !important; color: var(--enfap-blue) !important; font-weight: 700; font-size: 17px; text-decoration: none;
}
.enfap-btn-info .custom-button .btn-txt { display: flex; align-items: center; padding: 0 18px; }
.enfap-btn-info .btn-icon-box { width: 50px; display: flex !important; align-items: center; justify-content: center; margin: -2px -2px -2px 0; border-radius: 0 3px 3px 0 !important; }
.enfap-btn-info .custom-button:hover { background: var(--enfap-blue) !important; color: #fff !important; }
/* Mobile: frecce dei carousel sotto le card, spaziatura uniforme delle card corsi */
@media (max-width: 767px) {
    .enfap-ql { margin-top: 24px; }
    .enfap-ql .pp-query-loop-carousel-wrap { display: flex !important; flex-direction: column; }
    .enfap-ql .pp-ql-custom-arrows { position: static !important; order: 2; margin-top: 20px !important; justify-content: flex-start; }
    .enfap-hero .enfap-cards-row, .enfap-page-head .enfap-cards-row { row-gap: 12px; gap: 12px; }
}

/* Header fisso in alto (variante header › comportamento "fissa"): il contenuto parte da top 0,
   quindi le pagine lasciano lo spazio dell'header; in home l'hero blu passa sotto l'header arrotondato */
:root { --enfap-header-h: 117px; }
@media (max-width: 767px) { :root { --enfap-header-h: 85px; } }
#main-content { padding-top: var(--enfap-header-h); }
body:has(.enfap-hero) #main-content { padding-top: 0; }
