/*
Theme Name: Nextawards Child
Template: nextawards
Version: 1.0.2
*/

/* ------------------------------------------------------------------------- *
 * Studio Opera · design system
 *
 * Colori, font e scala tipografica sono registrati in theme.json
 * (variabili --wp--preset--*). Qui: valori responsive dei token,
 * allineamento del tema genitore e componenti riutilizzabili .opera-*.
 *
 * Breakpoint del tema: 767px (mobile, 768 = tablet), 991px (tablet), 1190px (menu hamburger).
/* ------------------------------------------------------------------------- */

:root {
	--opera-red: var(--wp--preset--color--opera-red, #C60000);
	--opera-anthracite: var(--wp--preset--color--opera-anthracite, #1C1C1E);
	--opera-warm-white: var(--wp--preset--color--opera-warm-white, #FAF9F7);
	--opera-grey-text: var(--wp--preset--color--opera-grey-text, #6B6B6E);
	--opera-grey-border: var(--wp--preset--color--opera-grey-border, #E9E9E6);
	--opera-border-hover: var(--wp--preset--color--opera-border-hover, #C5C5C0);
	--opera-grey-label: var(--wp--preset--color--opera-grey-label, #8C8C90);
	--opera-text-on-dark: var(--wp--preset--color--opera-text-on-dark, #A6A6AA);
	--opera-placeholder: var(--wp--preset--color--opera-placeholder, #F4F3F0);
	--opera-field-border: var(--wp--preset--color--opera-field-border, #E0DFDA);

	--opera-fs-h1: 46px;
	--opera-fs-h1-inner: 56px;
	--opera-fs-h2: 40px;
	--opera-fs-h3: 28px;
	--opera-fs-body: 18px;
	--opera-fs-lead: 19px;

	--opera-container: 1140px;
	--opera-container-wide: 1260px;
	--opera-gutter: 32px;
	--opera-gap: 32px;
	--opera-section-py: 96px;
	--opera-header-h: 87px;
	--opera-radius: 8px;

	/* variabili del tema genitore */
	--site-bg: var(--opera-warm-white);
	--site-text-color: var(--opera-anthracite);
	--link-color: var(--opera-red);
	--link-color-hover: var(--opera-anthracite);
}

@media (max-width: 1190px) {
	:root { --opera-gap: 20px; --opera-header-h: 69px; }
}

@media (max-width: 767px) {
	:root {
		--opera-fs-h1: 34px;
		--opera-fs-h1-inner: 34px;
		--opera-fs-h2: 30px;
		--opera-fs-h3: 24px;
		--opera-fs-body: 16px;
		--opera-fs-lead: 18px;
		--opera-gutter: 20px;
		--opera-gap: 16px;
		--opera-section-py: 64px;
	}
}


/* ------------------------------------------------------------------------- *
 * Base (sovrascrive i default del tema genitore)
/* ------------------------------------------------------------------------- */

body {
	font-family: var(--wp--preset--font-family--inter, Inter, system-ui, sans-serif);
	font-size: var(--opera-fs-body);
	line-height: 1.65;
	color: var(--opera-anthracite);
	background-color: var(--opera-warm-white);
}

h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 600; color: inherit; }
h1 { font-size: var(--opera-fs-h1); line-height: 1.14; letter-spacing: -0.025em; }
h2 { font-size: var(--opera-fs-h2); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: var(--opera-fs-h3); line-height: 1.2; letter-spacing: normal; }
p, ul, ol, li { font-size: var(--opera-fs-body); line-height: 1.65; }

a { color: var(--opera-red); }
a:hover, a:focus { color: var(--opera-anthracite); }

:focus-visible { outline: 2px solid var(--opera-anthracite); outline-offset: 3px; }

.wrapper { padding: 0; }
.wrapper > .spacer { height: var(--opera-header-h); }

/* il fade-in di caricamento del tema rispetta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.load { opacity: 1; animation: none; }
}


/* ------------------------------------------------------------------------- *
 * Layout
/* ------------------------------------------------------------------------- */

.opera-container {
	width: 100%;
	max-width: var(--opera-container);
	margin-inline: auto;
	padding-inline: var(--opera-gutter);
}
.opera-container--wide { max-width: var(--opera-container-wide); }
.opera-container--narrow { max-width: calc(720px + 2 * var(--opera-gutter)); }

.opera-section {
	padding-block: var(--opera-section-py);
	background-color: var(--opera-warm-white);
	border-bottom: 1px solid var(--opera-grey-border);
}
.opera-section--center { text-align: center; }

/* Ritmo verticale: nessun margine dei blocchi, solo gli spazi della scala */
.opera-section :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.opera-footer :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }

.opera-stack > * + * { margin-top: 24px; }
.opera-stack > .opera-actions,
.opera-stack > .opera-btn { margin-top: 32px; }
.opera-stack > .opera-lead { margin-top: 16px; }
.opera-stack > .opera-grid,
.opera-stack > .opera-media-wide,
.opera-stack > .opera-steps { margin-top: 48px; }
.opera-stack > .opera-actions--center { margin-top: 48px; }

.opera-grid { display: grid; gap: var(--opera-gap); }
.opera-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opera-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.opera-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	align-items: center;
}

@media (max-width: 991px) {
	.opera-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
	.opera-grid--2,
	.opera-grid--3 { grid-template-columns: minmax(0, 1fr); }
}


/* ------------------------------------------------------------------------- *
 * Tipografia di componente
/* ------------------------------------------------------------------------- */

.opera-text-muted { color: var(--opera-grey-text); }
.opera-lead { font-size: var(--opera-fs-lead); font-weight: 500; line-height: 1.6; color: var(--opera-anthracite); }
.opera-measure { max-width: 580px; }
.opera-measure-title { max-width: 620px; }
.opera-measure-wide { max-width: 760px; }
.opera-section--center .opera-measure { margin-inline: auto; }


/* ------------------------------------------------------------------------- *
 * Pulsanti
 * .opera-btn + --primary | --outline | --dark
/* ------------------------------------------------------------------------- */

.opera-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.opera-actions--center { justify-content: center; }

.opera-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.opera-btn:focus-visible { outline: 2px solid var(--opera-anthracite); outline-offset: 3px; }

.opera-btn--primary::after,
.opera-btn--outline::after {
	content: "\2192";
	content: "\2192" / "";
	font-weight: 600;
}

.opera-btn--primary,
.opera-btn--primary:visited { background-color: var(--opera-red); color: #fff; }
.opera-btn--primary:hover,
.opera-btn--primary:focus { background-color: var(--opera-anthracite); color: #fff; }

.opera-btn--outline,
.opera-btn--outline:visited { background-color: transparent; border-color: var(--opera-anthracite); color: var(--opera-anthracite); }
.opera-btn--outline:hover,
.opera-btn--outline:focus { background-color: var(--opera-anthracite); color: #fff; }

.opera-btn--dark,
.opera-btn--dark:visited { background-color: var(--opera-anthracite); color: #fff; }
.opera-btn--dark:hover,
.opera-btn--dark:focus { background-color: var(--opera-red); color: #fff; }

/* Su fondo antracite */
.opera-section--dark .opera-btn--primary:hover,
.opera-section--dark .opera-btn--primary:focus { background-color: #fff; color: var(--opera-anthracite); }
.opera-section--dark :focus-visible,
.opera-section--dark .opera-btn:focus-visible { outline-color: #fff; }

/* Link testuale con freccia ("Scopra il servizio →") */
.opera-link,
.opera-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--opera-anthracite);
	text-decoration: none;
	transition: color .2s ease;
}
.opera-link::after { content: "\2192"; content: "\2192" / ""; }
.opera-link:hover,
.opera-link:focus { color: var(--opera-red); }


/* ------------------------------------------------------------------------- *
 * Card (Servizi e Progetti)
/* ------------------------------------------------------------------------- */

.opera-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--opera-warm-white);
	border: 1px solid var(--opera-grey-border);
	border-radius: var(--opera-radius);
	overflow: hidden;
	box-shadow: none;
	transition: border-color .2s ease;
}
.opera-card:hover,
.opera-card:focus-within { border-color: var(--opera-border-hover); }

.opera-card__media {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.opera-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 32px;
	text-align: left;
}
.opera-card__body > * + * { margin-top: 16px; }
.opera-card__body p { font-size: 16px; line-height: 1.6; }

/* Piede card: sempre allineato in basso */
.opera-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto !important;
	padding-top: 24px;
}

.opera-badge {
	font-size: 12px !important;
	font-weight: 400;
	line-height: 1.5;
	color: var(--opera-grey-label);
}
.opera-card__footer > .opera-badge:only-child { margin-left: auto; }

@media (max-width: 767px) {
	.opera-card__body { padding: 24px; }
}


/* ------------------------------------------------------------------------- *
 * Immagini
/* ------------------------------------------------------------------------- */

.opera-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--opera-radius);
}
.opera-img--bordered { border: 1px solid var(--opera-grey-border); }
.opera-img--16-10 { aspect-ratio: 16 / 10; }
.opera-img--4-3 { aspect-ratio: 4 / 3; }
/* Desaturazione via CSS (il file originale resta a colori) */
.opera-img--grayscale { filter: grayscale(1); }
.opera-media-wide { aspect-ratio: 2.35 / 1; }


/* ------------------------------------------------------------------------- *
 * Sezione Hero
/* ------------------------------------------------------------------------- */

.opera-hero { padding-block: 88px 128px; }

.opera-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 64px;
	align-items: center;
}
.opera-hero__media { aspect-ratio: 23 / 20; }

@media (max-width: 991px) {
	.opera-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.opera-hero__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
	.opera-hero { padding-block: 40px 64px; }
}


/* ------------------------------------------------------------------------- *
 * Metodo: 3 colonne con divisori
/* ------------------------------------------------------------------------- */

.opera-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opera-step { padding-inline: 32px; }
.opera-step:first-child { padding-left: 0; }
.opera-step:last-child { padding-right: 0; }
.opera-step + .opera-step { border-left: 1px solid var(--opera-grey-border); }

.opera-step__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.opera-step__number {
	font-size: 30px !important;
	font-weight: 600;
	line-height: 1.5;
	color: var(--opera-red);
}
.opera-step__title::before { content: "\2014\00a0"; content: "\2014\00a0" / ""; }
.opera-step > p { margin-top: 16px; }

@media (max-width: 991px) {
	.opera-step { padding-inline: 16px; }
	.opera-step__title { font-size: 24px; }
}

@media (max-width: 767px) {
	.opera-steps { grid-template-columns: minmax(0, 1fr); }
	.opera-step,
	.opera-step:first-child,
	.opera-step:last-child { padding: 32px 0; }
	.opera-step:first-child { padding-top: 0; }
	.opera-step:last-child { padding-bottom: 0; }
	.opera-step + .opera-step { border-left: 0; border-top: 1px solid var(--opera-grey-border); }
}


/* ------------------------------------------------------------------------- *
 * CTA finale (pattern sincronizzato "Opera · CTA finale")
/* ------------------------------------------------------------------------- */

.opera-section--dark {
	background-color: var(--opera-anthracite);
	border-bottom: 0;
	color: #fff;
}
.opera-section--dark h2 { color: #fff; }
.opera-section--dark p { color: var(--opera-text-on-dark); }

.opera-cta { position: relative; overflow: hidden; isolation: isolate; }
.opera-cta > .opera-container { position: relative; z-index: 1; }

.opera-cta__media {
	position: absolute;
	inset: 0 0 0 auto;
	z-index: 0;
	width: 60%;
	pointer-events: none;
}
.opera-cta__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.1);
	opacity: .4;
}
/* Sfumatura orizzontale verso l'antracite + leggera vignettatura sopra/sotto */
.opera-cta__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(28, 28, 30, .6) 0%, rgba(28, 28, 30, 0) 20%, rgba(28, 28, 30, 0) 80%, rgba(28, 28, 30, .6) 100%),
		linear-gradient(to right, var(--opera-anthracite) 0%, rgba(28, 28, 30, .85) 50%, rgba(28, 28, 30, 0) 100%);
}

@media (max-width: 991px) {
	.opera-cta__media { width: 50%; }
}

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


/* ------------------------------------------------------------------------- *
 * Pagine interne
/* ------------------------------------------------------------------------- */

/* Ancore: il contenuto non finisce sotto l'header sticky */
[id] { scroll-margin-top: calc(var(--opera-header-h) + 32px); }

/* A · Hero interna con immagine (12 colonne: testo 7, immagine 5) */
.opera-hero-inner { padding-block: 64px 96px; }
.opera-hero-inner h1,
.opera-hero-text h1 { font-size: var(--opera-fs-h1-inner); }

.opera-hero-inner__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 48px;
	align-items: center;
}
.opera-hero-inner__grid > :first-child { grid-column: span 7; }
.opera-hero-inner__grid > :last-child { grid-column: span 5; }

@media (max-width: 991px) {
	.opera-hero-inner__grid { grid-template-columns: minmax(0, 1fr); }
	.opera-hero-inner__grid > :first-child,
	.opera-hero-inner__grid > :last-child { grid-column: auto; }
}

/* B · Hero interna solo testo: nessun padding sotto, la sezione seguente parte ridotta */
.opera-hero-text { padding-block: 64px 0; border-bottom: 0; }
.opera-hero-text h1 { max-width: 780px; }
.opera-hero-text p { max-width: 640px; }
.opera-section--after-hero { padding-top: 48px; }

@media (max-width: 767px) {
	.opera-hero-inner { padding-block: 40px 64px; }
	.opera-hero-text { padding-top: 40px; }
}

/* C · Intro di sezione */
.opera-intro { max-width: 760px; }
.opera-intro > * + * { margin-top: 24px; }
.opera-stack > .opera-intro + *,
.opera-stack > .opera-section-head + * { margin-top: 48px; }

/* Intestazione con azione a destra (es. "Scopra tutti i progetti") */
.opera-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}
@media (max-width: 767px) {
	.opera-section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* Varianti di griglia */
.opera-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opera-grid--gap-40 { gap: 40px; }
.opera-grid--narrow { max-width: 920px; }

@media (max-width: 991px) {
	.opera-grid--tablet-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.opera-grid--4,
	.opera-grid--tablet-2 { grid-template-columns: minmax(0, 1fr); }
	.opera-grid--gap-40 { gap: var(--opera-gap); }
}

/* D · Box competenza (card di solo testo) */
.opera-card--text .opera-card__body p { font-size: var(--opera-fs-body); line-height: 1.65; }

/* Titolo card come H2 (pagina Servizi) con la misura dell'H3 */
.opera-card__title { font-size: var(--opera-fs-h3); line-height: 1.2; letter-spacing: normal; }

/* Badge maiuscolo sopra il titolo */
.opera-badge--caps { text-transform: uppercase; letter-spacing: 0.05em; }
.opera-card__body > .opera-badge--caps + * { margin-top: 8px; }

/* Link testuale in rosso */
.opera-link--accent,
.opera-link--accent:visited { color: var(--opera-red); }
.opera-link--accent:hover,
.opera-link--accent:focus { color: var(--opera-anthracite); }

/* Card fondatore */
.opera-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	background-color: var(--opera-placeholder);
}
.opera-photo-placeholder p { font-size: 12px; color: var(--opera-grey-text); }
.opera-role { font-size: 14px !important; font-weight: 500; line-height: 1.5; color: var(--opera-red); }
.opera-card__body > .opera-role { margin-top: 8px; }
.opera-note { font-size: 14px !important; line-height: 1.6; color: var(--opera-grey-text); }

/* Soci (Lo Studio · I fondatori): 2 card di solo testo, senza foto, altezze uguali */
.opera-grid--founders { max-width: 960px; gap: 32px; align-items: stretch; }
.opera-card--person .opera-card__body > h3 { font-size: var(--opera-fs-h3); font-weight: 600; line-height: 1.2; }
.opera-card__body > .opera-person__bio { margin-top: 24px; }
.opera-person__bio > p { font-size: 16px; line-height: 1.6; color: var(--opera-grey-text); }
.opera-person__bio > p + p { margin-top: 16px; }

@media (max-width: 991px) {
	.opera-grid--founders { grid-template-columns: minmax(0, 1fr); }
}

/* Colonne numerate semplici (Lo Studio · Approccio) */
.opera-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
}
.opera-feature__number { font-size: 20px !important; font-weight: 600; line-height: 1.5; color: var(--opera-red); }
.opera-feature > h3 { margin-top: 8px; }
.opera-feature > p { margin-top: 16px; }

@media (max-width: 767px) {
	.opera-features { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Percorso a fasi: solo bordo superiore, niente card */
.opera-phase { border-top: 2px solid var(--opera-grey-border); padding-top: 24px; }
.opera-phase__number { font-size: 28px !important; font-weight: 600; line-height: 1.2; color: var(--opera-red); }
.opera-phase > h3 { margin-top: 16px; font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: normal; }
.opera-phase > p { margin-top: 8px; font-size: 16px; line-height: 1.6; }

/* Elenco progetti con ancore */
.opera-projects > * + * { margin-top: var(--opera-section-py); }
.opera-project__media {
	overflow: hidden;
	border: 1px solid var(--opera-grey-border);
	border-radius: var(--opera-radius);
}
.opera-project__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	max-height: 560px;
	object-fit: cover;
}
.opera-project__body { margin-top: 32px; max-width: 820px; }
.opera-project__body > * + * { margin-top: 16px; }
.opera-project__title { font-size: 34px; line-height: 1.2; }
.opera-project__body p { font-size: 17px; line-height: 1.65; }

@media (max-width: 767px) {
	.opera-project__media img { aspect-ratio: 16 / 10; }
	.opera-project__title { font-size: 24px; }
}

/* Contatti: 12 colonne, contatti 5 + modulo 7 */
.opera-contact-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 56px;
	align-items: start;
}
.opera-contact-grid > :first-child { grid-column: span 5; }
.opera-contact-grid > :last-child { grid-column: span 7; }

@media (max-width: 991px) {
	.opera-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.opera-contact-grid > :first-child,
	.opera-contact-grid > :last-child { grid-column: auto; }
}

.opera-contact-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--opera-grey-border); }
.opera-contact-item > * + * { margin-top: 8px; }
.opera-contact-item__label { font-size: 13px !important; font-weight: 600; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; color: var(--opera-anthracite); }
.opera-contact-item__value { color: var(--opera-anthracite); }
.opera-contact-item__value--strong { font-size: 18px !important; font-weight: 500; }
.opera-contact-item__value a,
.opera-contact-item__value a:visited { color: var(--opera-anthracite); text-decoration: none; }
.opera-contact-item__value a:hover,
.opera-contact-item__value a:focus { color: var(--opera-red); text-decoration: underline; }
.opera-contact-item__note { font-size: 14px !important; line-height: 1.6; color: var(--opera-grey-text); }

/* Box modulo */
.opera-form-box {
	padding: 48px;
	background-color: var(--opera-warm-white);
	border: 1px solid var(--opera-grey-border);
	border-radius: var(--opera-radius);
}
.opera-form-box > h2 { font-size: var(--opera-fs-h3); line-height: 1.2; letter-spacing: normal; }
.opera-form-box > h2 + * { margin-top: 32px; }

@media (max-width: 767px) {
	.opera-form-box { padding: 24px; }
}

/* Modulo (Contact Form 7, modulo "Contatti · Richiesta") */
.opera-form .opera-field + .opera-field { margin-top: 24px; }
.opera-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--opera-anthracite); }
.opera-required { color: var(--opera-red); }
.opera-optional { font-weight: 400; color: var(--opera-grey-text); }
.opera-form .wpcf7-form-control-wrap { display: block; }

.opera-form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	background-color: #fff;
	border: 1px solid var(--opera-field-border);
	border-radius: var(--opera-radius);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--opera-anthracite);
	transition: border-color .2s ease;
}
.opera-form textarea { min-height: 144px; resize: vertical; }
.opera-form select {
	appearance: none;
	padding-right: 48px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="none" stroke="%231C1C1E" stroke-width="1.5" d="M4 6l4 4 4-4"/></svg>');
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.opera-form ::placeholder { color: var(--opera-grey-text); opacity: 1; }
.opera-form :is(input, select, textarea):focus-visible {
	border-color: var(--opera-anthracite);
	outline: 2px solid var(--opera-anthracite);
	outline-offset: 1px;
}

.opera-form .opera-field--acceptance { margin-top: 32px; }
.opera-form .wpcf7-list-item { margin: 0; }
.opera-form .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-weight: 400; }
.opera-form input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--opera-anthracite); }
.opera-form .wpcf7-list-item-label a { color: var(--opera-anthracite); text-decoration: underline; }

.opera-form__submit { margin-top: 32px; }
/* input[type=submit] del tema genitore: maiuscolo, radius 5px, padding 15px */
.opera-form input[type="submit"].opera-btn {
	display: inline-flex;
	width: auto;
	height: 44px;
	margin: 0;
	padding: 0 24px;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
}
.opera-form textarea { height: 144px; }

/* Errori e conferma (testi annunciati dalla regione aria-live di CF7) */
.opera-form .wpcf7-not-valid { border-color: var(--opera-red); }
.opera-form .wpcf7-not-valid-tip { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--opera-red); }
.opera-form-box .wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 16px;
	border: 1px solid var(--opera-red);
	border-radius: var(--opera-radius);
	font-size: 15px;
	line-height: 1.5;
	color: var(--opera-anthracite);
}
.opera-form-box .wpcf7 form.sent .wpcf7-response-output { border-color: var(--opera-anthracite); }


/* ------------------------------------------------------------------------- *
 * Header (header.php + menu "Header")
/* ------------------------------------------------------------------------- */

.header {
	padding: 0;
	background-color: var(--opera-warm-white);
	border-bottom: 1px solid var(--opera-grey-border);
}

.header .header__content {
	height: var(--opera-header-h);
	padding-block: 0;
	align-items: center;
	border-bottom: 0;
}

.header__logo { line-height: 0; }
.header .header__logo-img { display: block; width: auto; height: 58px; } /* logo ufficiale con payoff: 124 × 58 */
/* il file del logo ha fondo bianco pieno: multiply lo fonde con il bianco caldo di header e footer */
.header .header__logo-img,
.opera-footer .wp-block-site-logo img { mix-blend-mode: multiply; }

.header nav { display: flex; align-items: center; }
.menu { display: flex; align-items: center; gap: 0; padding-left: 0; }
.menu li a {
	padding: 11px 16px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--opera-anthracite);
	opacity: 1;
}
.menu > li:not(.opera-menu-cta) > a:hover,
.menu > li:not(.opera-menu-cta) > a:focus { color: var(--opera-red); }

/* Voce attiva: pagina corrente e, per le sottopagine, la voce genitore (Servizi) */
.menu > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current-page-ancestor):not(.opera-menu-cta) > a,
.menu li ul > li.current-menu-item > a { color: var(--opera-red); }

/* Freccina dropdown */
.menu > li.menu-item-has-children > a { padding-right: 32px; }
.menu > li.menu-item-has-children > a::after {
	width: 16px;
	height: 16px;
	right: 12px;
	margin-top: -8px;
}

/* Pulsante "Contatti" (voce menu con classe CSS opera-menu-cta) */
.menu > li.opera-menu-cta { margin-left: 16px; }
.menu > li.opera-menu-cta > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 24px;
	border-radius: 9999px;
	background-color: var(--opera-anthracite);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	transition: background-color .2s ease;
}
.menu > li.opera-menu-cta > a:hover,
.menu > li.opera-menu-cta > a:focus,
.menu > li.opera-menu-cta.current-menu-item > a { background-color: var(--opera-red); color: #fff; }

/* Dropdown Servizi */
.menu > li > ul {
	top: 100%;
	min-width: 280px;
	padding: 8px;
	background: var(--opera-warm-white);
	border: 1px solid var(--opera-grey-border);
	border-radius: var(--opera-radius);
}
.menu li ul > li > a,
.menu li ul > li > a:visited { padding: 10px 16px; border-radius: 4px; color: var(--opera-anthracite); }
.menu li ul > li > a:hover,
.menu li ul > li > a:focus { background: var(--opera-grey-border); color: var(--opera-anthracite); }

@media (max-width: 1190px) {
	.header .header__content { padding-right: calc(var(--opera-gutter) + 44px); }
	.header .header__logo-img { height: 44px; width: auto; } /* 94 × 44 */

	.icon-hamburger { top: calc((var(--opera-header-h) - 50px) / 2 + 5px); right: calc(var(--opera-gutter) - 10px); }
	.icon-hamburger span { background: var(--opera-anthracite); }

	.menu {
		display: block;
		top: var(--opera-header-h);
		left: 0;
		right: 0;
		margin: 0;
		padding: 8px var(--opera-gutter) 0;
		background-color: var(--opera-warm-white);
		border-top: 1px solid var(--opera-grey-border);
	}
	.menu li { width: 100%; margin: 0; border-bottom: 1px solid var(--opera-grey-border); }
	.menu li a { padding: 12px 0; }
	.menu > li.menu-item-has-children > a::after { right: 0; }
	.menu > li > ul { min-width: 0; padding: 0 0 8px 16px; border: 0; border-radius: 0; }
	.menu li ul li { width: 100%; border: 0; }
	.menu li ul > li > a { padding: 10px 0; }

	.menu > li.opera-menu-cta { margin: 24px 0 0; border-bottom: 0; }
	.menu > li.opera-menu-cta > a { padding: 0 24px; }
}


/* ------------------------------------------------------------------------- *
 * Footer (footer.php + pattern sincronizzato "Opera · Footer")
/* ------------------------------------------------------------------------- */

.opera-footer {
	padding-block: 56px 40px;
	background-color: var(--opera-warm-white);
	border-top: 1px solid var(--opera-grey-border);
	color: var(--opera-anthracite);
}

.opera-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
	gap: 48px;
}

.opera-footer p,
.opera-footer li { font-size: 15px; line-height: 1.6; color: var(--opera-grey-text); }
.opera-footer a,
.opera-footer a:visited { color: var(--opera-grey-text); text-decoration: none; }
.opera-footer a:hover,
.opera-footer a:focus { color: var(--opera-anthracite); text-decoration: underline; }

.opera-footer__brand > * + * { margin-top: 16px; }
.opera-footer__brand p { max-width: 380px; }
.opera-footer .wp-block-site-logo img { display: block; height: 64px; width: auto; } /* logo ufficiale: 136 × 64 */
.opera-footer .wp-block-site-logo a { display: inline-block; line-height: 0; }

.opera-footer__title {
	margin-bottom: 16px !important;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--opera-anthracite);
}

.opera-footer__menu { list-style: none; padding: 0; }
.opera-footer__menu li + li { margin-top: 8px; }

.opera-footer__contacts > p + p { margin-top: 16px; }
.opera-footer__contacts strong { display: block; font-size: 14px; font-weight: 500; color: var(--opera-anthracite); }

.opera-footer__legal {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--opera-grey-border);
}
.opera-footer__legal p { font-size: 13px; }
.opera-footer__legal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.opera-footer__legal-row + p { margin-top: 8px; }

@media (max-width: 767px) {
	.opera-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
