/*
Theme Name: Laus Judo
Description: Tema a blocchi per A.S.D. Laus Judo San Martino. Colori sociali rosso, nero e bianco.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Author: A.S.D. Laus Judo San Martino
Text Domain: lausjudo
License: GPLv2 or later
*/

html { scroll-behavior: smooth; }
:where(section[id]) { scroll-margin-top: 80px; }

/* Sezioni */
.sezione { padding-top: 88px; padding-bottom: 88px; }
.hero.sezione { padding-top: 120px; padding-bottom: 130px; }
main.wp-block-group { margin-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Header */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
.header-bar { min-height: 72px; }
.site-header .wp-block-site-title { font-family: var(--wp--preset--font-family--titoli); font-size: 1.25rem; letter-spacing: .03em; margin: 0; }
.site-header .wp-block-navigation { font-weight: 500; font-size: .95rem; }
.site-footer { padding-top: 40px; padding-bottom: 40px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-header .wp-block-site-logo img { border-radius: 50%; background: #fff; }
.site-header .wp-block-site-title a { text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: #fff; }
.site-header .nav-cta a { background: var(--wp--preset--color--rosso); border-radius: 999px; padding: .5em 1.1em; color: #fff; }

/* Eyebrow */
.eyebrow { color: var(--wp--preset--color--rosso); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important; margin-bottom: .4rem !important; }
.lead { color: var(--wp--preset--color--grigio-scuro); font-size: 1.1rem; max-width: 62ch; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 8px solid var(--wp--preset--color--rosso); }
.hero::before { content: "柔道"; position: absolute; right: -2vw; bottom: -6vw; font-size: 34vw; line-height: 1; color: rgba(255,255,255,.05); font-family: serif; pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { max-width: 14ch; }
.hero h1 strong { color: var(--wp--preset--color--rosso); font-weight: inherit; }
.hero .hero-text { color: #cfcfcf; font-size: 1.2rem; max-width: 52ch; }
.hero .badges p { color: #bbb; font-size: .95rem; }
.hero .badges strong { display: block; font-family: var(--wp--preset--font-family--titoli); font-size: 1.8rem; color: #fff; }

/* Valori + citazione */
.valori h3 { font-family: var(--wp--preset--font-family--testo); font-size: 1.05rem; font-weight: 600; margin-bottom: 0; }
.valori p { color: var(--wp--preset--color--grigio); margin-top: .2rem; }
.wp-block-quote.motto { background: var(--wp--preset--color--sabbia); border-left: 6px solid var(--wp--preset--color--rosso); border-radius: 14px; padding: 2.5rem 2.2rem; }
.wp-block-quote.motto p { font-family: var(--wp--preset--font-family--titoli); font-size: 1.7rem; line-height: 1.3; }
.wp-block-quote.motto cite { color: var(--wp--preset--color--grigio); font-style: normal; }

/* Card corsi */
.card { background: #fff; border: 1px solid var(--wp--preset--color--linea); border-radius: 14px; padding: 1.8rem 1.6rem; border-top: 5px solid var(--wp--preset--color--rosso); }
.card.cintura-gialla { border-top-color: #f2c200; }
.card.cintura-verde { border-top-color: #2d7a3e; }
.card.cintura-nera { border-top-color: #141414; }
.card h3 { margin-bottom: .2rem; }
.card .eta { color: var(--wp--preset--color--rosso); font-weight: 600; font-size: .9rem; margin-top: 0; }

/* Orari */
.wp-block-table.orari { background: #fff; border: 1px solid var(--wp--preset--color--linea); border-radius: 14px; overflow: hidden; margin: 0; }
.wp-block-table.orari table { border-collapse: collapse; width: 100%; }
.wp-block-table.orari th, .wp-block-table.orari td { border: 0; border-bottom: 1px solid var(--wp--preset--color--linea); padding: 1rem 1.4rem; text-align: left; }
.wp-block-table.orari thead { border: 0; background: var(--wp--preset--color--nero); color: #fff; }
.wp-block-table.orari th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.wp-block-table.orari td:first-child { font-weight: 600; }
.wp-block-table.orari tr:last-child td { border-bottom: 0; }
.wp-block-table.orari figcaption { color: var(--wp--preset--color--grigio); text-align: left; padding: .8rem 1.4rem; margin: 0; }

/* CTA */
.cta .wp-block-button__link { background: #fff; color: var(--wp--preset--color--rosso); }
.cta .wp-block-button__link:hover { background: var(--wp--preset--color--nero); color: #fff; }

/* Bottoni */
.wp-block-button__link { transition: background .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: #fff; color: #fff; }

/* News */
.news .wp-block-post { border: 1px solid var(--wp--preset--color--linea); border-radius: 14px; overflow: hidden; background: #fff; }
.news .wp-block-post > *:not(.wp-block-post-featured-image) { padding-left: 1.3rem; padding-right: 1.3rem; }
.news .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/10; background: linear-gradient(135deg,#1d1d1d,#3b3b3b); }
.news .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.news .wp-block-post-date { color: var(--wp--preset--color--rosso); font-weight: 600; font-size: .85rem; margin-top: 1rem; }
.news .wp-block-post-title { font-family: var(--wp--preset--font-family--testo); font-size: 1.1rem; font-weight: 600; }
.news .wp-block-post-title a { text-decoration: none; }
.news .wp-block-post-excerpt { color: var(--wp--preset--color--grigio); font-size: .95rem; padding-bottom: 1.2rem; }

/* Contatti */
.box { background: #fff; border: 1px solid var(--wp--preset--color--linea); border-radius: 14px; padding: 1.8rem; }
.box a { color: var(--wp--preset--color--rosso); font-weight: 600; text-decoration: none; }
.mappa { border-radius: 10px; overflow: hidden; border: 1px solid var(--wp--preset--color--linea); aspect-ratio: 16/9; margin-top: 1rem; }
.mappa iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 781px) {
  .wp-block-table.orari th, .wp-block-table.orari td { padding: .75rem .8rem; font-size: .92rem; }
  .admin-bar header.wp-block-template-part { top: 46px; }
  .sezione { padding-top: 64px; padding-bottom: 64px; }
  .hero.sezione { padding-top: 80px; padding-bottom: 90px; }
}
