/*
Theme Name: Benevole
Theme URI: https://www.studiolegalebenevole.it/
Author: 2P Web
Author URI: https://www.2pweb.it/
Description: Tema su misura per lo Studio Legale Benevole. Nessun page builder: template PHP, campi ACF in codice, modulo contatti integrato e protetto.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: Proprietary
Text Domain: benevole
*/

/* ==========================================================================
   Font locali (nessuna richiesta a Google)
   ========================================================================== */

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/roboto-var.woff2") format("woff2");
}
@font-face {
	font-family: "Roboto";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/roboto-italic-var.woff2") format("woff2");
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-var.woff2") format("woff2");
}
@font-face {
	font-family: "Merriweather";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/merriweather-var.woff2") format("woff2");
}
@font-face {
	font-family: "Merriweather";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/merriweather-italic-var.woff2") format("woff2");
}
@font-face {
	font-family: "Spectral";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("assets/fonts/spectral-300.woff2") format("woff2");
}
@font-face {
	font-family: "Spectral";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/spectral-400.woff2") format("woff2");
}
@font-face {
	font-family: "Spectral";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/spectral-500.woff2") format("woff2");
}
@font-face {
	font-family: "Spectral";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/spectral-600.woff2") format("woff2");
}

/* ==========================================================================
   Variabili
   ========================================================================== */

:root {
	--c-navy: #16163f;
	--c-navy-2: #211f40;
	--c-navy-3: #1a1836;
	--c-gold: #d3b574;
	--c-slate: #6c6b7d;
	--c-grey-nav: #83817e;
	--c-text: #333333;
	--c-text-muted: #4a4a4a;
	--c-black: #000000;
	--c-light: #f1f1f1;
	--c-border: #eaeaea;
	--c-white: #ffffff;
	--c-error: #b3261e;
	--c-success: #1e6b3a;

	--f-sans: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
	--f-serif: "Spectral", Georgia, "Times New Roman", serif;
	--f-title: "Merriweather", Georgia, serif;
	--f-alt: "Montserrat", "Helvetica Neue", Arial, sans-serif;

	--container: 1200px;
	--container-narrow: 1140px;
	--gutter: 20px;
	--admin-bar: 0px;
}

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

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--admin-bar) + 140px);
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

img {
	display: block;
	border: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--f-serif);
	font-weight: 500;
	line-height: 1.2;
}

p {
	margin: 0 0 0.9rem;
}

p:last-child {
	margin-bottom: 0;
}

strong,
b {
	font-weight: bolder;
}

hr {
	height: 0;
	margin: 1rem 0;
	border: 0;
	border-top: 1px solid currentColor;
	opacity: 0.6;
}

ul,
ol {
	margin: 0 0 0.9rem;
	padding-left: 1.4em;
}

[role="list"] {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--c-gold);
	outline-offset: 2px;
}

.icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex: none;
	vertical-align: -0.125em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: calc(var(--admin-bar) + 8px);
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--c-white);
	color: var(--c-navy);
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 10px;
}

.container--narrow {
	max-width: var(--container-narrow);
}

/* Pulsanti ------------------------------------------------------------- */

.button {
	display: inline-block;
	padding: 14px 29px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.6px;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s;
}

.button--light {
	background: var(--c-white);
	color: var(--c-navy);
}

.button--light:hover,
.button--light:focus-visible {
	background: #f2f2f2;
	color: var(--c-navy);
}

.button--dark {
	background: var(--c-navy);
	color: var(--c-white);
}

.button--dark:hover,
.button--dark:focus-visible {
	background: #f2f2f2;
	border-color: var(--c-navy);
	color: var(--c-navy);
}

.button--block {
	display: block;
	width: 100%;
}

.button--small {
	padding: 10px 15px;
	font-family: var(--f-alt);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.button--small .icon {
	margin-right: 6px;
}

/* Titoli di sezione ---------------------------------------------------- */

.kicker {
	margin: 0 0 20px;
	color: var(--c-white);
	font-family: var(--f-alt);
	font-size: 18px;
	font-weight: 300;
	line-height: 1;
	text-transform: uppercase;
}

.kicker--dark {
	color: var(--c-text-muted);
}

.kicker--indent {
	padding-left: 30px;
}

.section-title {
	margin: 0 0 20px;
	padding-left: 16px;
	border-left: 4px solid var(--c-white);
	color: var(--c-white);
	font-family: var(--f-serif);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
}

.section-title--dark {
	border-left-color: var(--c-navy);
	color: var(--c-navy);
	font-size: 28px;
}

.section-title a:hover {
	color: var(--c-grey-nav);
}

.side-title {
	margin: 0 0 20px;
	padding-left: 30px;
	border-left: 4px solid var(--c-navy);
	color: var(--c-navy);
	font-family: var(--f-title);
	font-size: 20px;
	font-weight: 300;
	line-height: 1.4;
}

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

.site-header {
	position: sticky;
	top: var(--admin-bar);
	z-index: 100;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.topbar {
	padding: 12px 0;
	background: var(--c-navy);
	color: var(--c-white);
}

.topbar__inner {
	display: flex;
	justify-content: flex-end;
}

.topbar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--f-serif);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
}

.topbar__list li,
.topbar__list a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.topbar__list a:hover {
	color: var(--c-gold);
}

.topbar .icon {
	width: 30px;
	height: 16px;
}

.mainbar {
	padding: 15px 0;
	background: var(--c-white);
}

.mainbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 50px;
}

.mainbar__logo {
	flex: 0 0 auto;
}

.site-logo {
	display: inline-block;
}

.site-logo--header img {
	width: 244px;
	height: auto;
}

.site-logo__text {
	color: var(--c-navy);
	font-family: var(--f-title);
	font-size: 22px;
	font-weight: 700;
}

/* Menu principale (desktop) */

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 50px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.primary-nav .menu > li > a {
	display: block;
	padding: 13px 0;
	color: var(--c-navy);
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	text-transform: uppercase;
}

.primary-nav .menu > li > a:hover,
.primary-nav .menu > li > a:focus-visible,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current_page_item > a,
.primary-nav .menu > li.is-open > a {
	color: var(--c-grey-nav);
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 0 2px;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--c-navy);
	cursor: pointer;
}

.submenu-toggle .icon {
	width: 10px;
	height: 14px;
	transition: transform 0.2s;
}

.is-open > .submenu-toggle .icon {
	transform: rotate(180deg);
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 230px;
	margin: 15px 0 0;
	padding: 0;
	list-style: none;
	background: var(--c-white);
	box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

/* Area "ponte" per non perdere l'hover passando dal menu al sottomenu */
.primary-nav .sub-menu::before {
	position: absolute;
	top: -15px;
	right: 0;
	left: 0;
	height: 15px;
	content: "";
}

.primary-nav .is-open > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 8px 10px;
	color: var(--c-black);
	font-family: var(--f-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: -0.1px;
	text-transform: uppercase;
	white-space: nowrap;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible {
	color: var(--c-navy);
	background: #f7f7f7;
}

.primary-nav .sub-menu .current-menu-item > a {
	color: var(--c-gold);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: var(--c-white);
	color: var(--c-navy);
	cursor: pointer;
}

.nav-toggle .icon {
	width: 26px;
	height: 26px;
}

.nav-toggle__close {
	display: none;
}

/* ==========================================================================
   Intestazione pagine interne
   ========================================================================== */

.page-hero {
	display: flex;
	align-items: center;
	min-height: 250px;
	padding: 30px 0;
	background: var(--c-navy-2);
	color: var(--c-white);
	text-align: center;
}

.page-hero--end {
	text-align: right;
}

.page-hero__inner {
	padding-block: 10px;
}

.page-hero__kicker {
	margin: 0 0 24.4px;
	font-family: var(--f-alt);
	font-size: 16px;
	font-weight: 200;
}

.page-hero__title {
	margin: 0;
	color: var(--c-white);
	font-family: var(--f-title);
	font-size: 55px;
	font-weight: 300;
	line-height: 1;
}

.page-hero__subtitle {
	margin: 10px 0 0;
	font-family: var(--f-sans);
	font-size: 20px;
	font-weight: 300;
}

.page-hero--blog .page-hero__title {
	font-family: var(--f-serif);
	text-transform: capitalize;
}

.page-hero--compact {
	min-height: 0;
	padding: 20px 0;
	text-align: right;
}

.page-hero--compact .page-hero__title {
	font-family: var(--f-serif);
	font-size: 32px;
	text-transform: capitalize;
}

.page-hero--compact .page-hero__title a:hover {
	color: var(--c-gold);
}

.page-hero--compact .page-hero__subtitle {
	margin-top: 0;
	font-size: 18px;
}

/* ==========================================================================
   Contenuti testuali
   ========================================================================== */

.site-main--page .page-content {
	padding-top: 60px;
	padding-bottom: 60px;
}

.site-main--404 .page-content,
.site-main--search .page-content {
	padding-top: 50px;
	padding-bottom: 60px;
}

.entry-content {
	color: var(--c-navy-2);
	font-family: var(--f-alt);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a:not(.button) {
	color: var(--c-navy-2);
	text-decoration: underline;
}

.entry-content a:not(.button):hover {
	color: var(--c-gold);
}

.entry-content h2 {
	margin: 54.4px 0 20px;
	padding-left: 30px;
	border-left: 4px solid var(--c-gold);
	color: var(--c-navy);
	font-family: var(--f-title);
	font-size: 28px;
	font-weight: 300;
	line-height: 1.4;
}

.entry-content h3 {
	margin: 30px 0 12px;
	color: var(--c-navy);
	font-family: var(--f-title);
	font-size: 22px;
	font-weight: 300;
	line-height: 1.4;
}

.entry-content h4 {
	margin: 24px 0 10px;
	color: var(--c-navy);
	font-family: var(--f-alt);
	font-size: 18px;
	font-weight: 600;
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1rem;
	padding-left: 40px;
}

.entry-content li {
	margin-bottom: 0;
}

.entry-content ul + h2,
.entry-content ol + h2 {
	margin-top: 40px;
}

.entry-content blockquote {
	margin: 1.5rem 0;
	padding: 0.5rem 0 0.5rem 1.25rem;
	border-left: 4px solid var(--c-gold);
	font-style: italic;
}

.entry-content img {
	height: auto;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3rem 2rem 1rem 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3rem 0 1rem 2rem;
}

.entry-content .aligncenter {
	margin: 1rem auto;
}

.entry-content::after {
	display: table;
	clear: both;
	content: "";
}

.entry-content table {
	width: 100%;
	margin-bottom: 1rem;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border: 1px solid var(--c-border);
	text-align: left;
}

.wp-caption-text {
	font-size: 14px;
	opacity: 0.8;
}

/* Pagine figlie (Lo studio legale) ------------------------------------- */

.child-pages {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin: 0 0 60px;
	padding: 0;
	list-style: none;
}

.child-page a {
	display: block;
	text-align: center;
}

.child-page__img {
	display: block;
	margin-bottom: 10px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.child-page__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.child-page a:hover img {
	transform: scale(1.04);
}

.child-page__title {
	display: block;
	color: var(--c-navy);
	font-family: var(--f-sans);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.child-page a:hover .child-page__title {
	color: var(--c-grey-nav);
}

/* Box recapiti blu ----------------------------------------------------- */

.info-section {
	padding: 90px 0;
	background: var(--c-navy);
}

.info-box {
	color: var(--c-white);
	font-family: var(--f-alt);
	font-size: 16px;
	text-align: center;
}

.info-box__title {
	margin: 0 0 15px;
	color: var(--c-white);
	font-family: var(--f-title);
	font-size: 34px;
	font-weight: 300;
	line-height: 1.4;
}

.info-box a {
	color: var(--c-white);
	text-decoration: underline;
}

.info-box a:hover {
	color: var(--c-gold);
}

/* ==========================================================================
   Home
   ========================================================================== */

.home-hero {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 750px;
	background-image: var(--hero-image);
	background-position: top center;
	background-repeat: no-repeat;
	background-size: 85% auto;
}

.home-hero__band {
	padding: 15px;
	background: var(--c-navy);
	color: var(--c-white);
	text-align: center;
}

.home-hero__title {
	margin: 0 0 4px;
	color: var(--c-white);
	font-family: var(--f-serif);
	font-size: 36px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.home-hero__subtitle {
	margin: 0;
	font-family: var(--f-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.home-hero__action {
	margin: 15px 0 0;
}

.home-intro {
	padding: 10px 0;
}

/* I blocchi di testo mantengono lo spazio sotto l'ultimo paragrafo, come nel sito precedente */
.home-intro__text p:last-child,
.home-areas__text p:last-child,
.home-strengths__text p:last-child,
.strength-card__text p:last-child,
.cta-box__text p:last-child,
.info-box__text p:last-child {
	margin-bottom: 0.9rem;
}

.home-intro__text {
	padding: 32px;
	color: var(--c-black);
	font-family: var(--f-sans);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5;
}

.home-intro__text a {
	color: var(--c-navy);
}

.home-areas {
	display: flex;
	align-items: center;
	min-height: 700px;
	padding: 60px 0;
	background: var(--c-navy);
	color: var(--c-white);
}

.home-areas__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
}

.home-areas__intro {
	padding: 0 150px 0 10px;
}

.home-areas__text {
	margin: 0;
	padding: 15px 0 35px;
	font-family: var(--f-alt);
	font-size: 16px;
	font-weight: 400;
}

.area-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 0;
	padding: 0 10px;
	list-style: none;
}

.area-card__link {
	display: block;
	height: 100%;
	min-height: 284px;
	padding: 35px;
	border-top: 4px solid var(--c-slate);
	background: var(--c-white);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
	transition: border-color 0.3s, transform 0.3s;
}

.area-card__link:hover,
.area-card__link:focus-visible {
	border-top-color: var(--c-gold);
}

.area-card__title {
	margin: 0 0 15px;
	color: var(--c-navy);
	font-family: var(--f-alt);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.area-card__text {
	margin: 0;
	color: var(--c-text-muted);
	font-family: var(--f-alt);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
}

.home-blog {
	padding: 50px 0;
	background: var(--c-light);
}

.home-blog .section-title {
	margin-bottom: 20px;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 35px 30px;
}

.news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	border-radius: 3px;
	background: var(--c-white);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.25s;
}

.news-card:hover {
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.news-card__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / var(--ratio, 0.66);
	background: #e9e9ee;
}

.news-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card__thumb::after {
	position: absolute;
	inset: 0;
	content: "";
	background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 75%);
	opacity: 1;
	transition: opacity 0.3s ease-out;
}

.news-card:hover .news-card__thumb::after {
	opacity: 0.5;
}

.news-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	margin-top: 40px;
	padding: 0 30px;
}

.news-card__title {
	margin: 0 0 25px;
	color: var(--c-navy-2);
	font-family: var(--f-serif);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.3px;
}

.news-card__title a:hover {
	color: var(--c-grey-nav);
}

.news-card__more {
	align-self: flex-start;
	color: var(--c-navy-2);
	font-family: var(--f-sans);
	font-size: 12px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
}

.news-card__more:hover {
	color: var(--c-grey-nav);
}

.news-card__meta {
	margin-top: auto;
	padding: 15px 30px;
	border-top: 1px solid var(--c-border);
	color: var(--c-navy-2);
	font-family: var(--f-serif);
	font-size: 16px;
	line-height: 1.3;
}

.home-strengths {
	position: relative;
	padding: 50px 0 50px;
	background-color: var(--c-navy);
	background-image: var(--bg-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--c-white);
	isolation: isolate;
}

@media (min-width: 1025px) {
	.home-strengths {
		background-attachment: fixed;
	}
}

.home-strengths::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: var(--c-navy);
	opacity: 0.75;
}

.home-strengths .container {
	max-width: var(--container-narrow);
	padding: 10px;
}

.home-strengths__text {
	margin: 0;
	padding: 15px 0 20px;
	font-family: var(--f-sans);
	font-size: 18px;
	font-weight: 300;
}

.strength-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.strength-card {
	margin-right: 5%;
	padding: 50px;
	border-left: 4px solid var(--c-white);
	background: var(--c-white);
	color: var(--c-black);
}

.strength-card__num {
	display: block;
	margin-bottom: 20px;
	color: var(--c-navy-2);
	font-family: var(--f-alt);
	font-size: 50px;
	font-weight: 700;
	line-height: 1;
}

.strength-card__title {
	margin: 0 0 20px;
	color: var(--c-text-muted);
	font-family: var(--f-alt);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
}

.strength-card:nth-child(2) .strength-card__title {
	color: var(--c-navy);
}

.strength-card__text {
	font-family: var(--f-sans);
	font-size: 18px;
	font-weight: 300;
}

/* Box appuntamento ----------------------------------------------------- */

.cta-section {
	padding: 50px 0;
	background: var(--c-light);
}

.cta-box {
	padding: 100px;
	color: var(--c-black);
	font-family: var(--f-sans);
	font-size: 18px;
	font-weight: 300;
}

.cta-section--card .cta-box {
	background: var(--c-white);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

.cta-section--flat .cta-box {
	background: #ececec;
}

.cta-box .kicker {
	margin-bottom: 20px;
}

.cta-box .section-title {
	font-size: 28px;
}

.cta-box__text {
	margin-bottom: 0;
}

.cta-box__action {
	margin: 0;
	padding-top: 35px;
	text-align: center;
}

/* ==========================================================================
   Blog e singola news
   ========================================================================== */

.blog-list {
	padding-top: 50px;
	padding-bottom: 50px;
}

.pagination {
	margin-top: 40px;
	font-weight: 500;
	line-height: 30px;
	letter-spacing: 0.9px;
	word-spacing: 5px;
	text-align: center;
}

.pagination .page-numbers {
	display: inline-block;
	margin: 0 8px;
	color: var(--c-navy-2);
}

.pagination a.page-numbers:hover {
	color: var(--c-gold);
}

.pagination .current {
	color: var(--c-grey-nav);
}

.site-main--single {
	padding-top: 30px;
}

.article-card {
	margin: 0 0 30px;
	padding: 25px;
	border-radius: 15px;
	background: var(--c-white);
	box-shadow: 0 0 29px rgba(0, 0, 0, 0.08);
}

.article-card__header {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 20px;
}

.article-card__image img {
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: contain;
	object-position: left center;
}

.article-card__title {
	margin: 0;
	padding-left: 1em;
	border-left: 4px solid var(--c-navy);
	color: var(--c-navy);
	font-family: var(--f-serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.15;
}

.article-card__content {
	margin-top: 25px;
	color: var(--c-black);
	font-family: var(--f-sans);
	font-size: 18px;
	font-weight: 300;
}

.article-card__content a {
	color: var(--c-navy);
}

.article-card__download {
	margin: 25px 0 0;
}

.article-card__date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 25px 0 0;
	color: var(--c-text);
	font-size: 14px;
}

.article-card__date .icon {
	width: 14px;
	height: 14px;
	color: var(--c-navy);
}

/* Ricerca -------------------------------------------------------------- */

.search-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 20px 0;
}

.search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #69727d;
	border-radius: 3px;
	font: inherit;
}

.search-results {
	margin: 30px 0;
	padding: 0;
	list-style: none;
}

.search-result {
	padding: 20px 0;
	border-bottom: 1px solid var(--c-border);
}

.search-result__title {
	margin: 0 0 8px;
	color: var(--c-navy);
	font-family: var(--f-serif);
	font-size: 22px;
	font-weight: 500;
}

.search-result__title a:hover {
	color: var(--c-grey-nav);
}

/* ==========================================================================
   Contatti
   ========================================================================== */

.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	padding-top: 40px;
	padding-bottom: 40px;
}

.contact-layout__form,
.contact-layout__info {
	padding: 20px;
}

.contact-info {
	color: #1f1e3f;
	font-size: 18px;
	font-weight: 300;
}

.contact-info a {
	color: #1f1e3f;
	font-weight: 500;
	text-decoration: underline;
}

.contact-info a:hover {
	color: var(--c-gold);
}

.contact-info__map {
	text-transform: uppercase;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 6px 16px;
	border: 1px solid #69727d;
	border-radius: 3px;
	background: var(--c-white);
	color: #1f2124;
	font-family: var(--f-sans);
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.2s;
}

.form-field textarea {
	min-height: 0;
	padding-top: 10px;
	resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
	border-color: var(--c-navy);
	outline: 2px solid rgba(22, 22, 63, 0.15);
	outline-offset: 0;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
	color: #8a8f97;
	opacity: 1;
}

.form-field [aria-invalid="true"] {
	border-color: var(--c-error);
}

.form-field--checkbox {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 4px 10px;
	font-size: 14px;
	line-height: 1.4;
}

.form-field--checkbox input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--c-navy);
}

.form-field--checkbox a {
	color: var(--c-navy);
	text-decoration: underline;
}

.form-field--checkbox .form-error {
	grid-column: 2;
}

.form-error {
	display: block;
	margin-top: 4px;
	color: var(--c-error);
	font-size: 14px;
}

.form-notice {
	padding: 12px 16px;
	border-left: 4px solid currentColor;
	font-size: 15px;
}

.form-notice--success {
	background: #eaf5ee;
	color: var(--c-success);
}

.form-notice--error {
	background: #fbeceb;
	color: var(--c-error);
}

.form-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form .button {
	padding: 10px 16px;
	background: var(--c-navy-2);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.contact-form .button:hover {
	background: var(--c-navy);
	border-color: var(--c-navy);
	color: var(--c-white);
}

.contact-form .button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.form-recaptcha-note {
	margin: 0;
	color: #6b6b6b;
	font-size: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--c-navy-2);
	color: var(--c-white);
}

.site-footer .container {
	max-width: var(--container-narrow);
}

.site-footer__main {
	display: grid;
	grid-template-columns: 48.5% 20% 1fr;
	padding-top: 70px;
	padding-bottom: 70px;
}

.site-footer__main > * {
	padding: 10px;
}

.site-footer__brand .site-logo {
	display: block;
	width: fit-content;
}

.site-logo--footer img {
	width: 232px;
	height: auto;
}

.site-footer__tagline {
	margin: 20px 0 0.9rem;
	font-size: 14px;
	font-weight: 400;
}

.site-footer__legal {
	margin-bottom: 0.9rem;
	font-size: 14px;
	font-weight: 300;
	text-transform: none;
}

.site-footer__contacts {
	margin: 34.4px 0 0.9rem;
	padding: 0;
	list-style: none;
	font-size: 14.4px;
	font-weight: 300;
	line-height: 27px;
}

.site-footer__contacts a {
	text-decoration: underline;
}

.site-footer__contacts a:hover,
.footer-menu a:hover {
	color: var(--c-gold);
}

.footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 19px;
	font-weight: 300;
	line-height: 1.5;
}

.footer-menu li + li {
	margin-top: 16px;
}

.site-footer__title {
	margin: 0 0 20px;
	font-family: var(--f-sans);
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	text-decoration: underline;
}

.site-footer__bottom {
	padding: 15px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.19);
	background: var(--c-navy-3);
	font-size: 12px;
	font-weight: 300;
}

.site-footer__bottom .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 20px;
	min-height: 20px;
	padding-inline: 10px;
}

.site-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__legal-links a,
.site-footer__cookie-btn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-white);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.site-footer__legal-links a:hover,
.site-footer__cookie-btn:hover {
	color: var(--c-gold);
}

/* ==========================================================================
   Desktop (da 1025px): contenitori senza margini interni, come le sezioni del sito precedente
   ========================================================================== */

@media (min-width: 1025px) {
	.topbar__inner,
	.mainbar__inner,
	.home-intro .container,
	.home-areas .container,
	.home-blog .container,
	.cta-section .container,
	.site-footer__main {
		padding-inline: 0;
	}

	.home-areas {
		padding: 0;
	}

	.site-main--page .page-content {
		padding-right: 0;
		padding-left: 30px;
	}

	.site-main--page .page-content--sub {
		padding-top: 100px;
	}

	.page-children {
		padding-inline: 0;
	}

	.page-children .child-pages {
		padding-right: 30px;
	}

	.info-section {
		margin-top: 40px;
		padding: 100px;
	}

	.info-section .container {
		max-width: none;
		padding: 0;
	}

	.info-box__title {
		margin-bottom: 20px;
	}

	.info-box__title + p {
		padding-top: 15px;
	}
}

/* Effetti di scorrimento (schede in home): valori impostati da main.js */
[data-motion] > * {
	transition-duration: 1s;
	transition-property: transform, opacity;
	transition-timing-function: cubic-bezier(0, 0.33, 0.07, 1.03);
}

/* ==========================================================================
   Tablet (fino a 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
	.topbar {
		padding: 0;
	}

	.topbar__inner {
		padding: 15px;
	}

	.topbar__list {
		font-size: 12px;
	}

	.mainbar {
		padding: 20px 15px;
	}

	/* Menu mobile */
	.nav-toggle {
		display: inline-flex;
	}

	.nav-open .nav-toggle__open {
		display: none;
	}

	.nav-open .nav-toggle__close {
		display: inline;
	}

	.primary-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		max-height: calc(100vh - 160px);
		overflow-y: auto;
		background: var(--c-white);
		box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
	}

	.nav-open .primary-nav {
		display: block;
	}

	.mainbar {
		position: relative;
	}

	.primary-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-nav .menu > li {
		flex-wrap: wrap;
		justify-content: space-between;
		border-top: 1px solid var(--c-border);
	}

	.primary-nav .menu > li > a {
		flex: 1 1 auto;
		padding: 18px 20px;
		color: var(--c-black);
		font-size: 16px;
		font-weight: 500;
	}

	.submenu-toggle {
		width: 56px;
		height: 56px;
		margin: 0;
	}

	.primary-nav .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		margin: 0;
		background: #fafafa;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav .sub-menu::before {
		display: none;
	}

	.primary-nav .is-open > .sub-menu {
		display: block;
	}

	.primary-nav .sub-menu a {
		padding: 16px 20px 16px 36px;
		font-size: 15px;
	}

	.page-hero__title {
		font-size: 50px;
	}

	.home-hero {
		min-height: 550px;
		background-position: -290px 0;
	}

	.home-intro {
		padding: 60px 25px;
	}

	.home-intro__text {
		padding: 0 25px 0 0;
	}

	.home-areas {
		min-height: 0;
		padding: 0;
	}

	.home-areas__inner {
		grid-template-columns: 1fr;
	}

	.home-areas__intro {
		padding: 80px;
		text-align: center;
	}

	.home-areas .section-title {
		display: inline-block;
		font-size: 38px;
		text-align: left;
	}

	.area-cards {
		padding: 0 15px 80px;
	}

	.section-title--dark {
		font-size: 38px;
	}

	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-strengths .container {
		padding-top: 0;
		text-align: center;
	}

	.home-strengths .section-title {
		display: inline-block;
		text-align: left;
	}

	.strength-cards {
		padding: 15px;
		text-align: left;
	}

	.strength-card {
		padding: 35px 22px;
	}

	.strength-card__num {
		font-size: 45px;
	}

	.strength-card__title {
		font-size: 18px;
	}

	.cta-section {
		padding: 80px 15px;
	}

	.cta-box {
		padding: 80px;
	}

	.child-pages {
		grid-template-columns: repeat(2, 1fr);
	}

	.page-hero--compact .page-hero__title {
		font-size: 40px;
	}

	.article-card__title {
		font-size: 30px;
	}

	.site-footer__main {
		grid-template-columns: 1fr 1fr;
		padding: 50px 20px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.footer-menu {
		font-size: 15px;
	}

	.site-footer__bottom {
		padding: 10px 20px;
	}
}

/* ==========================================================================
   Smartphone (fino a 767px)
   ========================================================================== */

@media (max-width: 767px) {
	.topbar {
		display: none;
	}

	.mainbar {
		padding: 10px;
	}

	.mainbar__inner {
		min-height: 58px;
		padding-inline: 0;
	}

	.site-logo--header img {
		width: 178px;
	}

	.page-hero__title {
		font-size: 40px;
	}

	.page-hero__subtitle {
		font-size: 17px;
	}

	.home-hero {
		min-height: 652px;
		background-image: var(--hero-image-mobile, var(--hero-image));
		background-position: center center;
		background-size: cover;
	}

	.home-hero__title {
		font-size: 24px;
	}

	.home-hero__subtitle {
		padding: 5px;
		font-size: 16px;
	}

	.home-intro {
		padding: 22px 15px;
	}

	.home-intro .container,
	.home-areas .container,
	.home-blog .container,
	.cta-section .container {
		padding-inline: 0;
	}

	.home-intro__text {
		padding: 30px 0 0;
	}

	.home-areas__intro {
		padding: 80px 20px 50px;
	}

	.home-areas__intro > p:last-child {
		text-align: left;
	}

	.area-cards {
		gap: 30px;
		padding: 0 25px 65px;
	}

	.news-card__body {
		margin-top: 36px;
	}

	.area-cards,
	.news-grid,
	.strength-cards,
	.child-pages {
		grid-template-columns: 1fr;
	}

	.news-card__thumb {
		aspect-ratio: 2 / 1;
	}

	.home-strengths {
		padding: 0 15px;
	}

	.home-strengths .container {
		padding-top: 60px;
	}

	.strength-card {
		margin-right: 0;
		padding: 35px;
	}

	.strength-card__title {
		margin-right: 60px;
	}

	.cta-section {
		padding: 30px;
	}

	.cta-box {
		padding: 50px;
	}

	.cta-box .section-title {
		font-size: 28.8px;
	}

	.cta-box .button {
		display: block;
		width: 100%;
	}

	.section-title,
	.home-areas .section-title,
	.home-strengths .section-title,
	.section-title--dark {
		display: block;
		text-align: left;
		font-size: 38px;
	}

	.site-main--single {
		padding-top: 0;
	}

	.site-main--single > .container {
		padding: 0;
	}

	.article-card {
		border-radius: 0;
		box-shadow: none;
	}

	.article-card__header {
		grid-template-columns: 1fr;
	}

	.article-card__title {
		font-size: 1.3em;
	}

	.page-hero--compact .page-hero__title {
		font-size: 28px;
	}

	.page-hero--compact .page-hero__subtitle {
		font-size: 15px;
	}

	.contact-layout {
		grid-template-columns: 1fr;
		padding-top: 20px;
	}

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 0 0 1rem;
	}

	.site-footer__main {
		grid-template-columns: 1fr 1fr 1fr;
		padding: 35px 20px;
	}

	.site-footer__main > * {
		padding: 10px 0;
	}

	.site-footer__brand {
		margin-bottom: 30px;
	}

	.site-footer__nav,
	.site-footer__areas {
		margin-top: 12px;
	}

	.footer-menu {
		font-size: 13px;
	}

	.site-footer__bottom {
		padding: 20px;
		text-align: center;
	}

	.site-footer__bottom .container {
		justify-content: center;
	}
}

/* ==========================================================================
   Banner cookie
   ========================================================================== */

.cc-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	padding: 0 16px 16px;
	pointer-events: none;
}

.cc-banner[hidden],
.cc-modal[hidden] {
	display: none;
}

.cc-banner__inner {
	position: relative;
	max-width: 1140px;
	margin: 0 auto;
	padding: 22px 56px 22px 26px;
	border-top: 4px solid var(--c-gold);
	background: var(--c-navy);
	color: var(--c-white);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	font-family: var(--f-sans);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	pointer-events: auto;
}

.cc-banner__title {
	margin: 0 0 6px;
	font-family: var(--f-serif);
	font-size: 20px;
	font-weight: 500;
}

.cc-banner__text {
	margin: 0 0 16px;
}

.cc-banner__text a,
.cc-modal a {
	color: inherit;
	text-decoration: underline;
}

.cc-banner__text a:hover {
	color: var(--c-gold);
}

.cc-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.cc-btn {
	min-width: 140px;
	padding: 11px 20px;
	border: 1px solid var(--c-white);
	border-radius: 3px;
	background: var(--c-white);
	color: var(--c-navy);
	font-family: var(--f-sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.cc-btn:hover,
.cc-btn:focus-visible {
	background: #f2f2f2;
}

.cc-btn--link {
	min-width: 0;
	margin-right: auto;
	padding-inline: 0;
	border-color: transparent;
	background: none;
	color: var(--c-white);
	text-decoration: underline;
}

.cc-btn--link:hover,
.cc-btn--link:focus-visible {
	background: none;
	color: var(--c-gold);
}

.cc-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.cc-close .icon {
	width: 22px;
	height: 22px;
}

.cc-modal {
	position: fixed;
	inset: 0;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(10, 10, 30, 0.6);
}

.cc-modal__box {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px;
	border-top: 4px solid var(--c-gold);
	background: var(--c-white);
	color: var(--c-text);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	font-family: var(--f-sans);
	font-size: 15px;
	line-height: 1.5;
}

.cc-modal__box:focus {
	outline: none;
}

.cc-modal__title {
	margin: 0 40px 12px 0;
	color: var(--c-navy);
	font-family: var(--f-serif);
	font-size: 26px;
	font-weight: 500;
}

.cc-category {
	padding: 16px 0;
	border-top: 1px solid var(--c-border);
}

.cc-category p {
	margin: 6px 0 0;
	color: var(--c-text-muted);
	font-size: 14px;
}

.cc-category__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cc-category__name {
	color: var(--c-navy);
	font-weight: 700;
}

.cc-category__always {
	color: var(--c-success);
	font-size: 14px;
	font-weight: 500;
}

.cc-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	flex: none;
}

.cc-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.cc-switch__ui {
	position: absolute;
	inset: 0;
	border-radius: 26px;
	background: #b9b9c6;
	transition: background-color 0.2s;
}

.cc-switch__ui::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	content: "";
	background: var(--c-white);
	transition: transform 0.2s;
}

.cc-switch input:checked + .cc-switch__ui {
	background: var(--c-navy);
}

.cc-switch input:checked + .cc-switch__ui::after {
	transform: translateX(22px);
}

.cc-switch input:focus-visible + .cc-switch__ui {
	outline: 2px solid var(--c-gold);
	outline-offset: 2px;
}

.cc-actions--modal {
	padding-top: 16px;
	border-top: 1px solid var(--c-border);
}

.cc-actions--modal .cc-btn {
	border-color: var(--c-navy);
	background: var(--c-navy);
	color: var(--c-white);
}

.cc-actions--modal .cc-btn:hover,
.cc-actions--modal .cc-btn:focus-visible {
	background: var(--c-white);
	color: var(--c-navy);
}

.cc-modal__policy {
	margin: 14px 0 0;
	font-size: 14px;
	text-align: right;
}

.cc-modal-open {
	overflow: hidden;
}

/* Il badge di reCAPTCHA non deve finire sotto il banner */
.cc-banner-open .grecaptcha-badge {
	visibility: hidden;
}

@media (max-width: 767px) {
	.cc-banner {
		padding: 0;
	}

	.cc-banner__inner {
		padding: 18px 18px 16px;
		font-size: 14px;
	}

	.cc-banner__title {
		padding-right: 36px;
	}

	.cc-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.cc-btn {
		width: 100%;
	}

	.cc-btn--link {
		margin: 0;
		text-align: center;
	}

	.cc-modal__box {
		padding: 24px 20px;
	}

	.site-footer__bottom .container {
		flex-direction: column;
	}

	.site-footer__legal-links {
		justify-content: center;
	}
}

/* ==========================================================================
   Accessibilità: movimento ridotto e stampa
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.home-strengths {
		background-attachment: scroll;
	}
}

@media print {
	.site-header,
	.site-footer,
	.cta-section,
	.nav-toggle,
	.cc-banner,
	.cc-modal {
		display: none !important;
	}

	.page-hero {
		min-height: 0;
		background: none;
		color: #000;
	}

	.page-hero__title {
		color: #000;
	}
}
