/*!
Theme Name:   Scuola Orobica
Theme URI:    https://www.scuolaorobica.it
Description:  Tema della Scuola Orobica Enzo Ronzoni (child theme di Kadence): colori, caratteri, header, footer e sezioni della home già impostati. Da usare insieme al plugin "Scuola Orobica – Corsi".
Author:       Scuola Orobica Enzo Ronzoni
Template:     kadence
Version:      1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GNU General Public License v3.0 (or later)
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  scuola-orobica
*/

/* ==========================================================================
   Header
   ========================================================================== */

/* Riga alta scura: testo informativo */
.so-topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.so-topbar__item + .so-topbar__item { margin-left: 28px; }
.so-topbar__item--orario::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 1100px) {
	.so-topbar__item--orario { display: none; }
}

/* Nome del sito: due righe come nella bozza */
.site-branding .site-title { letter-spacing: .02em; }
.site-branding .site-description { margin-top: 4px; }

/* Voce di menu attiva: sottolineatura arancio */
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
.main-navigation .primary-menu-container > ul > li.current_page_parent > a {
	text-decoration: underline;
	text-decoration-color: var(--global-palette1);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

/* ==========================================================================
   Fasce titolo (pagine, articoli, corsi, archivi): blu notte con montagne
   ========================================================================== */
.entry-hero .entry-hero-container-inner {
	background-color: var(--global-palette3);
	background-image: var(--so-hero-bg);
	background-position: center bottom;
	background-size: cover;
	background-repeat: no-repeat;
}
/* Se c'è una foto in evidenza, Kadence la mette sopra: resta leggibile grazie alla velatura. */
.entry-hero .entry-header .entry-title,
.entry-hero .entry-header .archive-title,
.entry-hero .entry-header .page-title { color: #fff; }
.entry-hero .kadence-breadcrumbs,
.entry-hero .kadence-breadcrumbs a,
.entry-hero .entry-meta,
.entry-hero .entry-meta a,
.entry-hero .archive-description { color: #d9e0de; }
.entry-hero .kadence-breadcrumbs a:hover,
.entry-hero .entry-meta a:hover { color: #fff; }
.entry-hero .entry-taxonomies a { color: #e58a5c; }
.entry-hero .entry-header { padding-top: 24px; padding-bottom: 32px; }
.so_corso-hero-section .entry-header { max-width: 900px; }

/* ==========================================================================
   Pagine interne e articoli: testo leggibile
   ========================================================================== */
.entry-content { font-size: 1.0625rem; }
.single-content h2,
.single-content h3 { margin-top: 1.6em; margin-bottom: .6em; }
.single-content > h2:first-child { margin-top: 0; }
.entry-content a:not(.so-btn):not(.wp-block-button__link):not(.so-disciplina__link) {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Schede nell'elenco articoli e nell'archivio corsi */
.loop-entry.type-post:not(.has-post-thumbnail)::before,
.loop-entry.type-so_corso:not(.has-post-thumbnail)::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 2;
	background: #3d5864 var(--so-card-bg) center bottom / cover no-repeat;
}
.loop-entry.type-post,
.loop-entry.type-so_corso { border-radius: 6px; overflow: hidden; }
.loop-entry .entry-title { text-transform: uppercase; }
.loop-entry .entry-taxonomies a {
	color: var(--global-palette1);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.loop-entry .more-link-wrap a { font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer .so-footer-brand .so-footer-brand__title {
	margin: 0 0 12px;
	color: #fff;
	font-family: var(--global-heading-font-family);
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.site-footer .widget-title,
.site-footer .wp-block-heading.widget-title {
	margin: 0 0 10px;
	color: #e58a5c;
	font-family: var(--global-body-font-family);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   Accessibilità: contorno visibile quando si naviga con la tastiera
   ========================================================================== */
a:focus-visible,
button:focus-visible,
.button:focus-visible { outline: 3px solid var(--global-palette1); outline-offset: 3px; }
.site-footer a:focus-visible,
.site-top-header-wrap a:focus-visible,
.entry-hero a:focus-visible { outline-color: #fff; }
