/*
 * TENERAERBETTA — tema figlio di YOOtheme Pro che riprende lo stile del vecchio template Warp "The Big Easy" (2012):
 * sfondo scuro con texture, contenuti su schede chiare, riquadri laterali scuri, titoli maiuscoli condensati,
 * testo in Georgia corsivo. Un colore per sezione come i vecchi profili Warp (classe sul body da "Classe pagina"
 * della voce di menu): te-verde (VIGNETTE, SFERA/home), te-giallo (DUBBI A CROCI), te-rosa (RELIGULOUS).
 * Caratteri ospitati sul sito (niente chiamate a Google Fonts).
 */

@font-face {
	font-family: "League Gothic";
	src: url("../fonts/league-gothic.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Yanone Kaffeesatz";
	src: url("../fonts/yanone-kaffeesatz.woff2") format("woff2");
	font-weight: 200 700;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------ variabili (default = rosso del logo SFERA) */

:root {
	--te-accent: #d7262b;
	--te-accent-dark: #9e1c20;
	--te-link: #c0272c;
	--te-on-accent: #fff;
	--te-bg: #2a2b2b;
	--te-bg-img: url("../images/dust_bg.jpg");
	--te-head: "League Gothic", "Oswald", Impact, "Arial Narrow", sans-serif;
	--te-body: Georgia, "Times New Roman", Times, serif;
	--te-body-style: italic;
	--te-card: #fafafa;
	--te-text: #3a3a3a;
	--te-dark: #1a1a1c;
	--te-darker: #111112;
	--te-dark-text: #c8c8c8;
	--te-title-size: 1;
}

body.te-verde {
	--te-accent: #8ca03d;
	--te-accent-dark: #4d5722;
	--te-link: #6e8128;
	--te-bg: #2d2d2f;
	--te-bg-img: url("../images/stripes_bg.png");
	--te-head: "Yanone Kaffeesatz", "Arial Narrow", sans-serif;
	--te-body: Arial, Helvetica, sans-serif;
	--te-body-style: normal;
	--te-title-size: 1.1;
}

body.te-giallo {
	--te-accent: #fef158;
	--te-accent-dark: #c9bb2a;
	--te-link: #8a7d00;
	--te-on-accent: #111;
	--te-bg: #2d2d2f;
	--te-bg-img: url("../images/stripes_bg.png");
	--te-body: "Trebuchet MS", Helvetica, Arial, sans-serif;
	--te-body-style: normal;
}

body.te-rosa {
	--te-accent: #b15680;
	--te-accent-dark: #5f2c43;
	--te-link: #a04a72;
	--te-bg: #2b2a2b;
	--te-bg-img: url("../images/linen_bg.jpg");
}

/* ------------------------------------------------------------------ base */

html { background: var(--te-bg); }

body {
	background: var(--te-bg) var(--te-bg-img) repeat fixed;
	color: var(--te-text);
	font-family: var(--te-body);
	font-style: var(--te-body-style);
}

a, .uk-link { color: var(--te-link); }
a:hover, .uk-link:hover { color: var(--te-accent-dark); }

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-article-title, .uk-card-title, .uk-heading-small, .uk-heading-medium {
	font-family: var(--te-head);
	font-style: normal;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1.05;
	color: #222;
}

.uk-article-title { font-size: calc(2.9rem * var(--te-title-size)); }
h2, .uk-h2 { font-size: calc(2rem * var(--te-title-size)); }
h3, .uk-h3 { font-size: calc(1.6rem * var(--te-title-size)); }

/* le parti "meta" restano diritte */
.uk-article-meta, .uk-breadcrumb, .uk-pagination, .uk-navbar, .uk-subnav, table, .uk-table, label, input, select, button {
	font-style: normal;
}

/* ------------------------------------------------------------------ pagina: contenitore stretto come il vecchio sito */

.tm-page { background: transparent; }

.tm-page .uk-container:not(.uk-container-expand) { max-width: 1180px; }

/* ------------------------------------------------------------------ toolbar e header scuri */

.tm-toolbar {
	background: var(--te-darker) !important;
	color: #8a8a8a;
	font-style: normal;
	padding-top: 6px;
	padding-bottom: 6px;
}

.tm-toolbar a, .tm-toolbar .uk-subnav > * > a { color: #9a9a9a; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.tm-toolbar a:hover, .tm-toolbar .uk-subnav > * > a:hover { color: #fff; }

.tm-header, .tm-header .uk-navbar-container, .tm-header-mobile .uk-navbar-container {
	background: var(--te-dark) !important;
	border-bottom: 4px solid var(--te-accent);
}

.tm-header .uk-navbar-item img { height: 76px; width: auto; max-width: none; }
.tm-header-mobile .uk-navbar-item img { height: 44px; width: auto; max-width: none; }
.uk-navbar-subtitle { white-space: nowrap; font-family: var(--te-body); font-style: var(--te-body-style); text-transform: none; font-size: .78rem; color: #8a8a8a; letter-spacing: 0; margin-top: -2px; }
.uk-navbar-nav > li.uk-active .uk-navbar-subtitle, .uk-navbar-nav > li:hover .uk-navbar-subtitle { color: var(--te-accent); }

.uk-navbar-nav > li > a {
	font-family: var(--te-head);
	font-size: 1.45rem;
	text-transform: uppercase;
	color: #bdbdbd;
	min-height: 64px;
	padding: 0 10px;
	transition: color .15s, box-shadow .15s;
}

.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a[aria-expanded="true"],
.uk-navbar-nav > li.uk-active > a {
	color: #fff;
	box-shadow: inset 0 -5px 0 var(--te-accent);
}

.uk-navbar-toggle, .tm-header-mobile .uk-navbar-item { color: #ddd; }

.uk-navbar-dropdown { background: var(--te-dark); }
.uk-navbar-dropdown-nav > li > a { color: #bbb; }
.uk-navbar-dropdown-nav > li > a:hover, .uk-navbar-dropdown-nav > li.uk-active > a { color: var(--te-accent); }

/* icone social nella toolbar */
.social-icons { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-icons a { color: #9a9a9a; }
.social-icons a:hover { color: #fff; }

/* ------------------------------------------------------------------ sezioni trasparenti sullo sfondo a texture */

.tm-top.uk-section, .tm-main.uk-section, .tm-bottom.uk-section, .tm-builder .uk-section-default {
	background: transparent;
}

.tm-top.uk-section { padding-top: 30px; padding-bottom: 0; }
.tm-main.uk-section { padding-top: 30px; padding-bottom: 50px; }

/* titoli dei moduli sullo sfondo scuro (es. aggregatori in alto) */
.tm-top .uk-panel > h2, .tm-top .uk-panel > h3, .tm-top .uk-panel > .uk-h3,
.tm-bottom .uk-panel > h2, .tm-bottom .uk-panel > h3, .tm-bottom .uk-panel > .uk-h3 {
	color: #fff;
	font-size: calc(2.2rem * var(--te-title-size));
	display: inline-block;
	background: var(--te-accent);
	color: var(--te-on-accent);
	padding: 4px 14px 2px;
	margin-bottom: 18px;
}

/* ------------------------------------------------------------------ contenuto principale su scheda chiara */

#tm-main > .uk-container { position: relative; isolation: isolate; }

/* pagina senza colonna laterale: la scheda è il contenitore */
#tm-main > .uk-container:not(:has(> .uk-grid)) {
	box-sizing: border-box;
	max-width: min(1180px, calc(100% - 30px));
	background: var(--te-card);
	padding: 30px clamp(18px, 3vw, 40px);
	box-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

/* pagina con colonna laterale: griglia con spazio fisso, la scheda sta dietro alla colonna del contenuto */
@media (min-width: 960px) {
	#tm-main > .uk-container > .uk-grid { margin-left: -40px; }
	#tm-main > .uk-container > .uk-grid > * { padding-left: 40px; }
}

#tm-main > .uk-container > .uk-grid > .uk-width-expand\@m { position: relative; }

#tm-main > .uk-container > .uk-grid > .uk-width-expand\@m::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -28px 0 -28px 40px;
	background: var(--te-card);
	box-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

#tm-main > .uk-container > .uk-grid > .uk-width-expand\@m > * { padding-left: 28px; padding-right: 28px; }

@media (max-width: 959px) {
	#tm-main > .uk-container > .uk-grid > .uk-width-expand\@m::before { inset: -20px 0 -20px 0; }
	#tm-main > .uk-container > .uk-grid > .uk-width-expand\@m > * { padding-left: 18px; padding-right: 18px; }
}

/* pagine-parete (come Warp system_output=0): se il componente non ha prodotto nulla, niente scheda vuota */
#tm-main:not(:has(.tm-sidebar)):not(:has(article, table, form, .uk-alert, p, h1, h2, h3, img, iframe, li)) { display: none; }

#tm-main .uk-width-expand\@m:not(:has(article, table, form, .uk-alert, p, h1, h2, h3, img, iframe, li)) { display: none; }

/* …e in quel caso la colonna laterale diventa una fila di riquadri a tutta larghezza */
#tm-main .uk-width-expand\@m:not(:has(article, table, form, .uk-alert, p, h1, h2, h3, img, iframe, li)) + .tm-sidebar { width: 100%; }

@media (min-width: 960px) {
	#tm-main .uk-width-expand\@m:not(:has(article, table, form, .uk-alert, p, h1, h2, h3, img, iframe, li)) + .tm-sidebar > .uk-grid > * { width: 33.333%; }
}
/* contatore visite e badge nel colore della sezione */
.badge, .uk-badge { background: var(--te-accent) !important; color: var(--te-on-accent) !important; }

/* articoli */
.uk-article-title a { color: inherit; }
.uk-article-title a:hover { color: var(--te-link); text-decoration: none; }
.uk-article-meta { color: #8a8a8a; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
.uk-article img { height: auto; }

/* elenchi articoli delle categorie */
.uk-table th { font-family: var(--te-head); font-size: 1.1rem; text-transform: uppercase; color: #555; }
.uk-table-striped > tr:nth-of-type(odd), .uk-table-striped tbody tr:nth-of-type(odd) { background: #f0f0f0; }

/* paginazione e pulsanti nel colore della sezione */
.uk-pagination > .uk-active > * { background: var(--te-accent); color: var(--te-on-accent); }
.uk-pagination > * > a:hover { color: var(--te-link); }
.uk-button-primary, .uk-button-default:hover { background: var(--te-accent); border-color: var(--te-accent); color: var(--te-on-accent); }
.uk-button-primary:hover { background: var(--te-accent-dark); }

/* video convertiti dai vecchi Flash */
.video-embed { margin: 20px 0; }
.video-non-disponibile { color: #888; font-size: .9rem; }

/* ------------------------------------------------------------------ colonna laterale: riquadri scuri */

.tm-sidebar .uk-panel {
	background: var(--te-dark);
	color: var(--te-dark-text);
	padding: 20px 22px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.tm-sidebar .uk-panel > h2, .tm-sidebar .uk-panel > h3, .tm-sidebar .uk-panel > .uk-h3, .tm-sidebar .uk-card-title {
	color: #fff;
	font-size: calc(1.9rem * var(--te-title-size));
	border-bottom: 3px solid var(--te-accent);
	padding-bottom: 6px;
	margin-bottom: 14px;
}

.tm-sidebar a { color: #e0e0e0; }
.tm-sidebar a:hover { color: var(--te-accent); }

.tm-sidebar .tagspopular a, .tm-sidebar .tagscloud a {
	display: inline-block;
	background: rgba(255, 255, 255, .08);
	padding: 1px 8px;
	margin: 0 4px 6px 0;
	font-style: normal;
}

.tm-sidebar .tagspopular a:hover, .tm-sidebar .tagscloud a:hover { background: var(--te-accent); color: var(--te-on-accent); }

/* riquadro nel colore della sezione: aggiungere "te-colore" come classe del modulo */
.tm-sidebar .uk-panel.te-colore { background: var(--te-accent); color: var(--te-on-accent); }
.tm-sidebar .uk-panel.te-colore a { color: var(--te-on-accent); text-decoration: underline; }

/* ------------------------------------------------------------------ aggregatore vignette (mod_teneravignette) */

.tv-grid { --tv-bg: var(--te-card); }
.tv-card { border: 0; border-radius: 0; box-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.tv-card .tv-title { font-family: var(--te-head); font-weight: 400; text-transform: uppercase; font-size: calc(1.35rem * var(--te-title-size)); line-height: 1.05; }
.tv-card .tv-src { font-style: normal; }
.tv-card .tv-src a { color: var(--te-link); }
.tv-card time { font-style: var(--te-body-style); }
.tv-card figure { position: relative; }
.tv-card figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--te-accent); }

/* ------------------------------------------------------------------ fondo pagina */

.tm-bottom, .tm-footer { color: #888; }
.tm-bottom a, .tm-footer a { color: #bbb; }

/* ------------------------------------------------------------------ ARCHIVIO (html/com_content/categories/default.php) */

.te-arch-box { background: #fff; border-top: 4px solid var(--te-accent); padding: 16px 18px; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.te-arch-box h2 a { color: #222; }
.te-arch-box h2 a:hover { color: var(--te-link); text-decoration: none; }
.te-arch-box li { font-style: normal; }
.te-arch-box li.te-arch-sub { padding-left: 14px; font-size: .92em; }
.te-arch-n { display: inline-block; min-width: 1.6em; padding: 0 6px; font: normal .75rem/1.6 Arial, sans-serif; text-align: center; color: #fff; background: #777; border-radius: 9px; vertical-align: middle; }
.te-arch-box h2 .te-arch-n { background: var(--te-accent); color: var(--te-on-accent); }