/*
Theme Name: Accanto
Theme URI: https://www.voxel-informatica.it
Author: Voxel Informatica
Author URI: https://www.voxel-informatica.it
Description: Tema leggero per professionisti dell'assistenza alla persona. Pagine, testata e piè di pagina si costruiscono e si modificano con Elementor gratuito, insieme al plugin «Accanto — Dati e strumenti». Senza Elementor il sito resta leggibile grazie ai modelli semplici del tema.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: accanto
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/*
 * Questo foglio contiene la base della pagina e i modelli semplici del tema
 * (quelli usati quando una pagina non è costruita con Elementor).
 * Colori, caratteri e pulsanti delle pagine Elementor si cambiano in
 * Elementor → Impostazioni del sito, non qui.
 */

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 104px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: #2f3d57;
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 19px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 .5em;
	color: #0e2246;
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-wrap: balance;
}

h1 {
	font-size: 3rem;
	line-height: 1.08;
}

h2 {
	font-size: 2.125rem;
}

h3 {
	font-size: 1.4375rem;
}

h4 {
	font-size: 1.1875rem;
}

p {
	margin: 0 0 1em;
}

a {
	color: #1e73be;
	text-underline-offset: .18em;
}

a:hover {
	color: #0e2246;
}

img,
video {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 3px solid #2aaae6;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	html {
		scroll-padding-top: 84px;
	}

	body {
		font-size: 17.5px;
	}

	h1 {
		font-size: 2.125rem;
	}

	h2 {
		font-size: 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* ---------- Struttura ---------- */

.salta {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 200;
	padding: 12px 18px;
	border-radius: 0 0 12px 12px;
	background: #0e2246;
	color: #fff;
	font-family: "Nunito", system-ui, sans-serif;
	font-weight: 800;
	text-decoration: none;
}

.salta:focus {
	top: 0;
	color: #fff;
}

/* La testata resta in alto mentre si scorre. */
.sito-testata {
	position: sticky;
	top: 0;
	z-index: 80;
	background: #fff;
	transition: box-shadow .2s ease;
}

.accanto-scorso .sito-testata {
	box-shadow: 0 6px 24px rgba(14, 34, 70, .1);
}

.admin-bar .sito-testata {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .sito-testata {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .sito-testata {
		top: 0;
	}
}

.sito-contenuto {
	display: block;
	min-height: 40vh;
}

/* ---------- Modelli semplici del tema (senza Elementor) ---------- */

.riserva {
	width: min(1180px, 100% - 48px);
	margin-inline: auto;
}

.riserva-testata {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
	padding-block: 16px;
}

.riserva-testata .custom-logo {
	display: block;
	width: 220px;
	height: auto;
}

.riserva-nome {
	color: #0e2246;
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 1.5rem;
	font-weight: 800;
	text-decoration: none;
}

.riserva-menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.riserva-menu a {
	color: #0e2246;
	font-family: "Nunito", system-ui, sans-serif;
	font-weight: 700;
	text-decoration: none;
}

.riserva-menu a:hover {
	color: #1e73be;
}

.riserva-pie {
	margin-top: 72px;
	padding-block: 40px;
	background: #0e2246;
	color: #dbe6f3;
	font-size: 1rem;
}

.riserva-pie a {
	color: #fff;
}

.riserva-pie .riserva-menu a {
	color: #fff;
}

.riserva-pie p {
	margin: 0 0 .4em;
}

.pagina-semplice {
	width: min(760px, 100% - 48px);
	margin-inline: auto;
	padding-block: 56px 80px;
}

.pagina-semplice--larga {
	width: min(1180px, 100% - 48px);
}

.pagina-semplice__data {
	margin: 0 0 .6em;
	color: #5a6a85;
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 700;
}

.pagina-semplice__immagine {
	margin: 0 0 32px;
}

.pagina-semplice__immagine img {
	display: block;
	width: 100%;
	border-radius: 20px;
}

.pagina-semplice h2 {
	margin-top: 1.6em;
}

.pagina-semplice h3 {
	margin-top: 1.4em;
}

.pagina-semplice li {
	margin-bottom: .35em;
}

.pagina-semplice blockquote {
	margin: 1.6em 0;
	padding-left: 22px;
	border-left: 4px solid #2aaae6;
	color: #0e2246;
	font-size: 1.25rem;
}

.pagina-semplice table {
	width: 100%;
	border-collapse: collapse;
}

.pagina-semplice th,
.pagina-semplice td {
	padding: 10px 12px;
	border-bottom: 1px solid #d5dfec;
	text-align: left;
}

.elenco-articoli {
	display: grid;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elenco-articoli h2 {
	margin: 0 0 .3em;
	font-size: 1.625rem;
}

.elenco-articoli h2 a {
	color: #0e2246;
	text-decoration: none;
}

.elenco-articoli h2 a:hover {
	color: #1e73be;
}

.elenco-articoli p {
	margin: 0;
}

.pulsante,
.pagina-semplice input[type="submit"],
.pagina-semplice button[type="submit"] {
	display: inline-block;
	padding: 15px 28px;
	border: 0;
	border-radius: 999px;
	background: #1e73be;
	color: #fff;
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.pulsante:hover,
.pagina-semplice input[type="submit"]:hover,
.pagina-semplice button[type="submit"]:hover {
	background: #0e2246;
	color: #fff;
}

.pagina-semplice input[type="text"],
.pagina-semplice input[type="search"],
.pagina-semplice input[type="email"],
.pagina-semplice input[type="url"],
.pagina-semplice input[type="tel"],
.pagina-semplice textarea {
	width: 100%;
	max-width: 100%;
	padding: 13px 16px;
	border: 1.5px solid #b7c4d6;
	border-radius: 12px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.pagina-semplice .search-form {
	display: flex;
	gap: 10px;
	align-items: center;
}

.pagina-semplice .search-form label {
	flex: 1;
}

.navigation.pagination,
.post-navigation {
	margin-top: 48px;
	font-family: "Nunito", system-ui, sans-serif;
	font-weight: 700;
}

.navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: space-between;
}

.page-numbers {
	padding: 6px 12px;
	border-radius: 10px;
	text-decoration: none;
}

.page-numbers.current {
	background: #eef5fb;
	color: #0e2246;
}

.comments-area {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid #d5dfec;
}

.comment-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 24px;
	list-style: none;
}

.comment-body {
	margin-bottom: 24px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: #0e2246;
	font-family: "Nunito", system-ui, sans-serif;
	font-weight: 700;
}

/* ---------- Classi standard di WordPress ---------- */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
	word-wrap: normal;
}

.alignleft {
	float: left;
	margin: .3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: .3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption,
figcaption {
	color: #5a6a85;
	font-size: .9375rem;
}

.sticky,
.bypostauthor {
	display: block;
}
