/*
Theme Name: Fassactive
Theme URI: https://www.fassactive.it/
Description: Tema dello sci club Fassactive (Val di Fassa), figlio di Twenty Twenty-Five. Corsi gestiti come «Schede corso» e impostazioni della stagione in un'unica pagina.
Author: Fassactive A.s.d.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: fassactive
*/

/* ---------- base ---------- */
:where(a, button, summary):focus-visible { outline: 3px solid #6FB3E0; outline-offset: 2px; }
.fa-wrap { max-width: 1240px; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }

/* ---------- avviso iscrizioni ---------- */
.fa-avviso { background: #0B2238; color: #fff; font-size: 14px; line-height: 1.4; padding: 10px 24px; text-align: center; }
.fa-avviso a { color: #fff; font-weight: 600; }

/* ---------- testata ---------- */
.fa-testata { border-bottom: 1px solid #DCE3EA; }
.fa-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #0B2238; }
.fa-logo__icona { width: 44px; height: 44px; border-radius: 10px; background: #0B2238; display: flex; align-items: center; justify-content: center; flex: none; }
.fa-logo__nome { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: .04em; line-height: 1; }
.fa-logo__sotto { display: block; font-size: 12px; color: #4A5B6C; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.fa-testata .wp-block-navigation { font-weight: 600; font-size: 16px; }
.fa-testata .wp-block-navigation a { text-decoration: none; padding: 10px 0; }
.fa-testata .wp-block-navigation .current-menu-item > a,
.fa-testata .wp-block-navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.fa-testata .wp-block-navigation .fa-nav-iscriviti > a { background: #C8410F; color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none; }

/* ---------- etichette ---------- */
.fa-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #E3F0F8; color: #0E4A73; }
.fa-tag--agonismo { background: #FBE9E1; color: #9A3410; }
.fa-tag--maestri { background: #ECE8F6; color: #4B3A8C; }
.fa-tag--autunno { background: #E4F2E8; color: #1F6B3A; }
.fa-tag--novita { background: #C8410F; color: #fff; font-weight: 800; }
.fa-tags { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }

/* ---------- filtri corsi ---------- */
.fa-filtri { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.fa-filtri button { font-family: inherit; font-size: 16px; font-weight: 700; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid #B8C6D3; background: #fff; color: #0B2238; cursor: pointer; }
.fa-filtri button[aria-pressed="true"] { border-color: #0B2238; background: #0B2238; color: #fff; }

/* ---------- schede corso ---------- */
.fa-corsi { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.fa-card { border: 1px solid #DCE3EA; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.fa-card[hidden] { display: none; }
.fa-card h2, .fa-card h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.fa-card h2 a, .fa-card h3 a { color: inherit; text-decoration: none; }
.fa-dati { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.fa-dati dt { color: #4A5B6C; font-weight: 600; }
.fa-dati dd { margin: 0; line-height: 1.5; }
.fa-dati dd.fa-forte { font-weight: 700; }
.fa-card__desc { margin: 0; font-size: 15px; line-height: 1.5; color: #33475B; }
.fa-nota { margin: 0; font-size: 14px; line-height: 1.45; color: #4A5B6C; font-style: italic; }
.fa-prezzi { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid #DCE3EA; display: flex; flex-direction: column; gap: 6px; }
.fa-prezzi li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.fa-prezzi strong { font-size: 18px; }
.fa-card__azioni { display: flex; gap: 10px; padding-top: 6px; margin-top: auto; }
.fa-btn { flex: 1; text-align: center; font-weight: 700; font-size: 15px; padding: 14px 16px; border-radius: 999px; background: #C8410F; color: #fff !important; text-decoration: none; border: 2px solid #C8410F; }
.fa-btn:hover { background: #0B2238; border-color: #0B2238; }
.fa-btn--linea { background: transparent; color: #0B2238 !important; border-color: #0B2238; }
.fa-btn--linea:hover { background: #0B2238; color: #fff !important; }
.fa-btn--verde { background: #1F6B3A; border-color: #1F6B3A; flex: none; padding: 14px 26px; font-size: 17px; }

/* ---------- striscia prove gratuite ---------- */
.fa-prove { background: #E4F2E8; border-bottom: 1px solid #C9E3D1; }
.fa-prove__in { padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.fa-prove__testi { display: flex; flex-direction: column; gap: 6px; flex: 1 1 520px; }
.fa-prove__kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1F6B3A; }
.fa-prove__titolo { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.fa-prove__chi { font-size: 16px; line-height: 1.5; color: #33475B; }

/* ---------- riquadri (gruppi con stile) ---------- */
.fa-box { border-radius: 18px; padding: 24px !important; }
.fa-box > * { margin-block: 0; }
.fa-box h2, .fa-box h3 { font-size: 30px; }
.fa-box--titolo-piccolo h2, .fa-box--titolo-piccolo h3 { font-family: inherit; font-size: 18px; font-weight: 700; text-transform: none; line-height: 1.3; }
.fa-box--scuro a { color: #fff; font-weight: 700; }
.fa-box--scuro p { color: #D3DEE8; }
.fa-box table { border-collapse: collapse; width: 100%; font-size: 15px; }
.fa-box th { text-align: left; padding: 8px 0; border-bottom: 2px solid #0B2238; }
.fa-box td { padding: 8px 0; border-bottom: 1px solid #DCE3EA; }
.fa-box td:last-child, .fa-box th:last-child { text-align: right; font-weight: 700; }
.fa-box figure.wp-block-table { margin: 0; }
.fa-box figure.wp-block-table table { border: 0; }
.fa-box figure.wp-block-table :where(td, th) { border-left: 0; border-right: 0; border-top: 0; }

/* ---------- scheda corso: testata ---------- */
.fa-corso-hero { background: #0B2238; color: #fff; }
.fa-corso-hero__in { padding-block: 40px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; }
.fa-corso-hero__testi { display: flex; flex-direction: column; gap: 18px; }
.fa-briciole { font-size: 14px; color: #9CC9E8; }
.fa-briciole a { color: #9CC9E8; }
.fa-corso-hero h1 { margin: 0; color: #fff; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(48px, 8vw, 80px); line-height: .95; text-transform: uppercase; }
.fa-corso-hero__intro { margin: 0; font-size: 20px; line-height: 1.55; color: #D3DEE8; max-width: 520px; }
.fa-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fa-chips span { font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid #45627E; }
.fa-corso-hero img { width: 100%; height: 360px; object-fit: cover; border-radius: 18px; display: block; }

/* ---------- scheda corso: quando e dove ---------- */
.fa-quando { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fa-quando > div { background: #F4F7FA; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.fa-quando__etichetta { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4A5B6C; }
.fa-quando__valore { font-size: 18px; font-weight: 700; line-height: 1.45; }
.fa-quando__nota { font-size: 14px; color: #4A5B6C; line-height: 1.45; }

/* ---------- scheda corso: quota ---------- */
.fa-quota { border: 2px solid #0B2238; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; background: #fff; }
.fa-quota__etichetta { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4A5B6C; }
.fa-quota__prezzo { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 64px; line-height: 1; }
.fa-quota .fa-prezzi { border-top: 0; padding-top: 0; }
.fa-quota .fa-btn { font-size: 18px; padding: 16px 20px; }
.fa-quota__scadenza { font-size: 14px; color: #4A5B6C; text-align: center; }
.fa-contatti { background: #F4F7FA; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.fa-contatti a { font-weight: 700; }

/* ---------- impaginazione delle pagine ---------- */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
.fa-colonne { gap: 40px 48px; }
.fa-colonne > .wp-block-column:last-child { display: flex; flex-direction: column; gap: 16px; }
.fa-colonne > .wp-block-column:last-child > * { margin-block: 0; }
@media (max-width: 781px) {
	.fa-corso-colonne > .wp-block-column:last-child { order: -1; }
}
.fa-sezione-bordo { border-bottom: 1px solid #DCE3EA; }
.fa-corso-colonne .wp-block-post-content > h2 { margin-top: 48px; margin-bottom: 14px; }
.fa-corso-colonne .wp-block-post-content > h2:first-child { margin-top: 0; }
.fa-corso-colonne .wp-block-post-content > p { font-size: 18px; line-height: 1.65; color: #33475B; }
.wp-block-details summary { font-size: 18px; font-weight: 700; cursor: pointer; }
.wp-block-details p { color: #33475B; }
.fa-tabella { background: #fff; border: 1px solid #DCE3EA; border-radius: 16px; overflow-x: auto; }
.fa-tabella table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; border: 0; }
.fa-tabella :where(th, td) { padding: 10px 16px; border: 0; border-bottom: 1px solid #DCE3EA; text-align: left; }
.fa-tabella thead th { background: #0B2238; color: #fff; padding: 12px 16px; }
.fa-tabella :where(th, td):last-child { text-align: right; font-weight: 700; }
.fa-tabella thead { border: 0; }

/* ---------- pagine fatte di sezioni del mockup ---------- */
.fa-pagina > *, .fa-pagina > .fa-sezione + * { margin-block-start: 0 !important; margin-block-end: 0; }
.fa-sezione { padding: 0 !important; }
.fa-sezione :where(h1, h2, h3, h4, h5, h6) { color: inherit; }
/* nel mockup i titoli senza stile proprio sono in Figtree, non in maiuscolo */
.fa-sezione h1, .fa-sezione h2, .fa-sezione h3, .fa-sezione h4, .fa-piede h2, .fa-piede h3 { font-family: Figtree, system-ui, sans-serif; text-transform: none; line-height: 1.2; letter-spacing: 0; }
strong, b { font-weight: 700; }
.fa-sezione > section, .fa-sezione > footer { margin: 0; }
.fa-trova-card[hidden] { display: none !important; }
.fa-trova .fa-tags, .fa-trova-card .fa-tags { align-self: flex-start; }

/* ---------- modulo contatti (Contact Form 7 nella scheda del mockup) ---------- */
.fa-modulo .wpcf7 { width: 100%; }
.fa-modulo .wpcf7-form { display: flex; flex-direction: column; gap: 16px; }
.fa-modulo .wpcf7-form p { margin: 0; font-size: 15px; font-weight: 700; }
.fa-modulo :where(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1px solid #8DA0B3; border-radius: 10px; background: #fff; color: #0B2238; margin-top: 6px; }
.fa-modulo input[type="submit"] { align-self: flex-start; font-family: inherit; background: #C8410F; color: #fff; border: 0; font-weight: 700; font-size: 17px; padding: 16px 32px; border-radius: 999px; cursor: pointer; }
.fa-modulo input[type="submit"]:hover { background: #0B2238; }

/* ---------- piè di pagina ---------- */
.fa-piede { background: #0B2238; color: #D3DEE8; font-size: 14px; }
.fa-piede a { color: #fff; }

/* ---------- pulsante WhatsApp ---------- */
.fa-wa { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; align-items: center; gap: 8px; background: #25D366; color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; padding: 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(11, 34, 56, .28); }
.fa-wa span { display: none; }
@media (min-width: 782px) { .fa-wa { padding: 14px 20px; } .fa-wa span { display: inline; } }

@media (max-width: 600px) {
	.fa-prove__titolo { font-size: 28px; }
	.fa-corso-hero img { height: 240px; }
}
