@import url(variable.css);
@import url(fontawesome-all.min.css);
@import url(hero.css);

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

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--whiteColor);
	color: var(--textColor);
	font-family: var(--fontSans);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.is-preload *,
body.is-preload *::before,
body.is-preload *::after {
	transition: none !important;
}

body.is-menu-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color .2s var(--ease);
}

a:hover {
	color: var(--accentDark);
}

h1, h2, h3, h4 {
	font-family: var(--fontSerif);
	color: var(--ink);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 .6em;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }

p {
	margin: 0 0 1.2em;
}

ul {
	padding-left: 1.2em;
}

hr {
	border: 0;
	height: 1px;
	background: var(--line);
	margin: 2.5rem 0;
}

b, strong {
	color: var(--ink);
	font-weight: 600;
}

::selection {
	background: var(--accent);
	color: var(--whiteColor);
}

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

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container.narrow {
	max-width: 860px;
}

.section {
	padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.section.tight {
	padding: clamp(1.8rem, 4vw, 3rem) 0;
}

.section.alt {
	background: var(--paper);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Eyebrow / section headings */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--fontSans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: .7rem;
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.section-head {
	max-width: 720px;
	margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.section-head.center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.section-head.center .eyebrow::after {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.lead {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: var(--textColor);
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 48px;
	padding: .8rem 1.6rem;
	border: 1px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: var(--whiteColor) !important;
	font-family: var(--fontSans);
	font-size: .9rem;
	font-weight: 600;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.button:disabled {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
}

.button:hover:not(:disabled) {
	background: var(--accentDark);
	border-color: var(--accentDark);
	transform: translateY(-1px);
}

.button.outline {
	background: transparent;
	color: var(--accent) !important;
}

.button.outline:hover {
	background: var(--accent);
	color: var(--whiteColor) !important;
}

.button.light {
	background: transparent;
	border-color: rgba(255, 255, 255, .6);
	color: var(--whiteColor) !important;
}

.button.light:hover {
	background: var(--whiteColor);
	border-color: var(--whiteColor);
	color: var(--navy) !important;
}

.button.small {
	min-height: 40px;
	padding: .55rem 1.1rem;
	font-size: .82rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	list-style: none;
	padding: 0;
	margin: 1.6rem 0 0;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 600;
	font-size: .9rem;
}

.link-arrow i {
	transition: transform .25s var(--ease);
}

.link-arrow:hover i {
	transform: translateX(4px);
}

/* Reveal on scroll */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Header (objects/header.html)
   ========================================================================== */

#obj_HEADER {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: calc(var(--topbarHeight) + var(--navHeight));
}

.topbar {
	background: var(--navyDeep);
	color: rgba(255, 255, 255, .75);
	font-size: .82rem;
	height: var(--topbarHeight);
}

.topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.topbar ul {
	display: flex;
	gap: 1.8rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.topbar a {
	color: rgba(255, 255, 255, .8);
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}

.topbar a:hover {
	color: var(--whiteColor);
}

.topbar i {
	color: var(--gold);
}

.topbar .topbar-social a {
	font-size: 1rem;
}

#header {
	position: relative;
	height: var(--navHeight);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}

#header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 24px -16px rgba(20, 33, 58, .35);
}

#header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: 100%;
}

#header .logo img {
	height: 38px;
	width: auto;
}

.main-nav ul {
	display: flex;
	align-items: center;
	gap: .2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav a {
	position: relative;
	display: block;
	padding: .6rem .85rem;
	color: var(--ink);
	font-size: .9rem;
	font-weight: 500;
}

.main-nav a::after {
	content: "";
	position: absolute;
	left: .85rem;
	right: .85rem;
	bottom: .25rem;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
	transform: scaleX(1);
}

/* Voce selezionata: riquadro chiaro con testo bordeaux (come nella tendina del team) */
.main-nav a.active,
.main-nav .nav-toggle.active {
	background: var(--accentSoft);
	border-radius: 6px;
	color: var(--accent);
}

.main-nav a.active::after {
	transform: scaleX(0);
}

.main-nav .nav-cta {
	margin-left: .8rem;
}

.main-nav .nav-cta a {
	padding: .65rem 1.3rem;
	border-radius: 999px;
	background: var(--navy);
	color: var(--whiteColor);
}

.main-nav .nav-cta a::after {
	display: none;
}

.main-nav .nav-cta a:hover,
.main-nav .nav-cta a.active {
	background: var(--accent);
	border-radius: 999px;
	color: var(--whiteColor);
}

.main-nav .has-dropdown {
	position: relative;
}

.main-nav .nav-toggle {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .6rem .85rem;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: .9rem;
	font-weight: 500;
	cursor: pointer;
}

.main-nav .nav-toggle i {
	font-size: .65rem;
	transition: transform .25s var(--ease);
}

.main-nav .nav-toggle:hover,
.main-nav .nav-toggle.active,
.main-nav .has-dropdown.is-open .nav-toggle {
	color: var(--accent);
}

.main-nav .has-dropdown.is-open .nav-toggle i {
	transform: rotate(180deg);
}

.main-nav ul.nav-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	display: block;
	min-width: 220px;
	margin: .3rem 0 0;
	padding: .5rem;
	border: 1px solid var(--line);
	border-radius: var(--radiusSmall);
	background: var(--whiteColor);
	box-shadow: var(--shadow);
}

.main-nav ul.nav-dropdown[hidden] {
	display: none;
}

.main-nav .nav-dropdown a {
	padding: .55rem .8rem;
	border-radius: 6px;
	white-space: nowrap;
}

.main-nav .nav-dropdown a::after {
	display: none;
}

.main-nav .nav-dropdown a:hover,
.main-nav .nav-dropdown a.active {
	background: var(--accentSoft);
}

#sidebarButton {
	display: none;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--whiteColor);
	color: var(--ink);
	font-size: 1.1rem;
	cursor: pointer;
}

@media screen and (max-width: 1100px) {
	.main-nav a { padding: .6rem .6rem; font-size: .86rem; }
	.main-nav a::after { left: .6rem; right: .6rem; }
}

@media screen and (max-width: 980px) {
	.topbar { display: none; }
	.main-nav { display: none; }
	#sidebarButton { display: inline-flex; align-items: center; justify-content: center; }
	#header .logo img { height: 30px; }
}

/* ==========================================================================
   Drawer + Footer (objects/sidebar.html)
   ========================================================================== */

#sidebar {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	pointer-events: none;
}

#sidebar.is-open {
	visibility: visible;
	pointer-events: auto;
}

#sidebar .sidebar-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 21, 39, .55);
	opacity: 0;
	transition: opacity .35s var(--ease);
}

#sidebar.is-open .sidebar-backdrop {
	opacity: 1;
}

#sidebar .inner {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(380px, 88vw);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1.4rem 1.6rem 2rem;
	background: var(--whiteColor);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .4s var(--ease);
}

#sidebar.is-open .inner {
	transform: none;
}

.sidebar-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sidebar-top img {
	height: 28px;
	width: auto;
}

.sidebar-close {
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: none;
	color: var(--ink);
	font-size: 1.1rem;
	cursor: pointer;
}

#menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#menu li a {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: .85rem 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-weight: 500;
}

#menu li a i {
	width: 1.2rem;
	color: var(--accent);
	text-align: center;
}

#menu .menu-sub {
	padding-left: 2.1rem;
}

#menu .menu-sub li a {
	padding: .6rem 0;
	font-size: .92rem;
	font-weight: 400;
}

#menu li a.active,
#menu li a:hover {
	color: var(--accent);
}

.sidebar-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .8rem;
}

.sidebar-cards a {
	position: relative;
	display: block;
	border-radius: var(--radiusSmall);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.sidebar-cards img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sidebar-cards span {
	position: absolute;
	inset: auto 0 0 0;
	padding: .5rem .7rem;
	background: linear-gradient(transparent, rgba(12, 21, 39, .8));
	color: var(--whiteColor);
	font-size: .8rem;
	font-weight: 600;
}

.sidebar-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .9rem;
}

.sidebar-contact li {
	display: flex;
	gap: .8rem;
	padding: .35rem 0;
}

.sidebar-contact i {
	width: 1.2rem;
	margin-top: .35rem;
	color: var(--accent);
	text-align: center;
}

.sidebar-contact a {
	color: var(--textColor);
}

/* Footer */
#footer {
	background: var(--navyDeep);
	color: rgba(255, 255, 255, .7);
	font-size: .92rem;
	padding-top: clamp(2.2rem, 5vw, 3.5rem);
}

#footer .footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1fr;
	gap: 2rem;
	padding-bottom: 2.2rem;
}

#footer .footer-logo img {
	height: 36px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: .92;
	margin-bottom: 1.2rem;
}

#footer h4 {
	color: var(--whiteColor);
	font-family: var(--fontSans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: 1.2rem;
}

#footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer li {
	padding: .25rem 0;
}

#footer .footer-sub {
	margin: .2rem 0 .1rem;
	padding-left: .9rem;
	border-left: 1px solid rgba(255, 255, 255, .2);
}

#footer .footer-sub li {
	padding: .15rem 0;
	font-size: .8rem;
}

#footer a {
	color: rgba(255, 255, 255, .78);
}

#footer a:hover {
	color: var(--whiteColor);
}

#footer .footer-contact li {
	display: flex;
	gap: .8rem;
}

#footer .footer-contact i {
	width: 1rem;
	margin-top: .4rem;
	color: var(--gold);
}

#footer .footer-social {
	display: flex;
	gap: .6rem;
	margin-top: 1.2rem;
}

#footer .footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	transition: background .25s var(--ease), border-color .25s var(--ease);
}

#footer .footer-social a:hover {
	background: var(--accent);
	border-color: var(--accent);
}

#footer .copyright {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 1.4rem 0;
	font-size: .82rem;
	color: rgba(255, 255, 255, .5);
}

#footer .copyright .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem;
}

#footer .legal-info,
#footer .legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: .2rem 1.2rem;
}

#footer .legal-info > span + span::before {
	content: "·";
	margin-right: 1.2rem;
	margin-left: -.6rem;
	color: rgba(255, 255, 255, .3);
}

@media screen and (max-width: 640px) {
	#footer .legal-info {
		flex-direction: column;
	}

	#footer .legal-info > span + span::before {
		display: none;
	}
}

@media screen and (max-width: 980px) {
	#footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 560px) {
	#footer .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
	position: relative;
	padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(1.8rem, 4vw, 2.8rem);
	background: var(--navy);
	color: rgba(255, 255, 255, .8);
	overflow: hidden;
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--heroImage, none) center / cover no-repeat;
	opacity: .22;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, var(--navy) 30%, rgba(20, 33, 58, .55));
}

.page-hero .container {
	position: relative;
	z-index: 1;
}

.page-hero .eyebrow {
	color: var(--gold);
}

.page-hero h1 {
	color: var(--whiteColor);
	margin-bottom: .4em;
}

.page-hero p {
	max-width: 640px;
	font-size: 1.1rem;
	margin: 0;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	font-size: .82rem;
}

.breadcrumb li + li::before {
	content: "/";
	margin-right: .5rem;
	color: rgba(255, 255, 255, .4);
}

.breadcrumb a {
	color: rgba(255, 255, 255, .75);
}

.breadcrumb a:hover {
	color: var(--whiteColor);
}

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

#banner {
	position: relative;
	min-height: min(78vh, 720px);
	display: flex;
	align-items: center;
	color: var(--whiteColor);
	overflow: hidden;
	background: var(--navy);
}

#banner .banner-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(95deg, rgba(12, 21, 39, .92) 0%, rgba(12, 21, 39, .72) 45%, rgba(12, 21, 39, .25) 100%);
}

#banner .container {
	position: relative;
	z-index: 2;
	padding-top: 2.5rem;
	padding-bottom: 3.5rem;
}

#banner .banner-content {
	max-width: 660px;
}

#banner .eyebrow {
	color: var(--gold);
}

#banner h1 {
	color: var(--whiteColor);
	font-size: clamp(2.8rem, 6.5vw, 5rem);
	font-weight: 500;
	line-height: 1.02;
	margin-bottom: .35em;
}

#banner h1 em {
	font-style: italic;
	color: var(--gold);
}

#banner p {
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	color: rgba(255, 255, 255, .85);
	max-width: 560px;
}

#banner .scroll-hint {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 1.6rem;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .7);
	font-size: 1.2rem;
	animation: bounce 2.4s infinite;
}

@keyframes bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 8px); }
}

/* Intro (Lo studio) */
.split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.split.reverse > :first-child {
	order: 2;
}

.media-frame {
	position: relative;
}

.media-frame img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.media-frame::before {
	content: "";
	position: absolute;
	inset: 1.5rem -1.5rem -1.5rem 1.5rem;
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	z-index: -1;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 2.2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.stats strong {
	display: block;
	font-family: var(--fontSerif);
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 600;
	color: var(--accent);
	line-height: 1;
	margin-bottom: .4rem;
}

/* Solo l'etichetta sotto il numero, non il numero dinamico dentro <strong> */
.stats > div > span {
	font-size: .85rem;
	color: var(--mutedColor);
}

/* Practice areas grid */
.areas-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
}

.area-card {
	position: relative;
	/* Icona e titolo sulla stessa riga */
	display: grid;
	grid-template-columns: 52px 1fr;
	align-items: center;
	column-gap: 1.1rem;
	row-gap: .2rem;
	padding: 1.3rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--whiteColor);
	color: var(--textColor);
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

a.area-card:hover {
	border-color: transparent;
	box-shadow: var(--shadow);
	transform: translateY(-4px);
	color: var(--textColor);
}

.area-card .area-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--accentSoft);
	color: var(--accent);
	font-size: 1.2rem;
	transition: background .3s var(--ease), color .3s var(--ease);
}

a.area-card:hover .area-icon {
	background: var(--accent);
	color: var(--whiteColor);
}

.area-card:has(.area-note) .area-icon {
	grid-row: 1 / span 2;
}

.area-card h3 {
	font-size: 1.3rem;
	margin: 0;
}

.area-card .area-note {
	grid-column: 2;
	margin: 0;
	font-size: .85rem;
	line-height: 1.45;
	color: var(--mutedColor);
}

#settori {
	scroll-margin-top: calc(var(--topbarHeight) + var(--navHeight));
}

/* Feature tiles (team / studio) */
.tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.tile {
	position: relative;
	display: block;
	min-height: 360px;
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--whiteColor);
}

.tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.tile:hover img {
	transform: scale(1.05);
}

.tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 21, 39, 0) 35%, rgba(12, 21, 39, .88));
}

.tile .tile-body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	padding: 2rem;
}

.tile h3 {
	color: var(--whiteColor);
	font-size: 2rem;
	margin-bottom: .3rem;
}

.tile p {
	color: rgba(255, 255, 255, .85);
	margin: 0 0 1rem;
}

.tile .link-arrow {
	color: var(--gold);
}

/* CTA band */
.cta-band {
	position: relative;
	padding: clamp(2.2rem, 5vw, 3.5rem) 0;
	background: var(--navy);
	color: rgba(255, 255, 255, .8);
	overflow: hidden;
}

.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--studioPattern);
	opacity: .06;
}

.cta-band .container {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.cta-band h2 {
	color: var(--whiteColor);
	margin-bottom: .3em;
}

.cta-band p {
	margin: 0;
	max-width: 560px;
}

.cta-band .actions {
	margin: 0;
}

/* ==========================================================================
   Servizi (objects/servizi.html)
   ========================================================================== */

.features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 1.5rem;
}

.features article {
	display: flex;
	flex-direction: column;
	padding: 2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--whiteColor);
	scroll-margin-top: calc(var(--topbarHeight) + var(--navHeight) + 1.5rem);
	transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.features article:hover,
.features article:target {
	border-color: transparent;
	box-shadow: var(--shadow);
}

.features article:target {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.features .area-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--accentSoft);
	color: var(--accent);
	font-size: 1.2rem;
	margin-bottom: 1.2rem;
}

.features h3 {
	font-size: 1.55rem;
}

.features p {
	margin: 0;
}

.features hr {
	margin: 1.2rem 0;
}

.features .detail {
	font-size: .94rem;
}

/* ==========================================================================
   Team (objects/staff.html + staff/*)
   ========================================================================== */

.team-intro {
	max-width: 760px;
	margin-bottom: 2rem;
}

.posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1.5rem;
}

.posts article {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	background: var(--whiteColor);
	border: 1px solid var(--line);
	overflow: hidden;
	transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.posts article:hover {
	box-shadow: var(--shadow);
	transform: translateY(-4px);
}

.posts article.featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
}

.photo {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--sand);
}

.photo img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--ease);
}

.posts article:hover .photo img {
	transform: scale(1.04);
}

.photo[data-initials]::before {
	content: attr(data-initials);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fontSerif);
	font-size: 3.5rem;
	color: var(--mutedColor);
}

.photo img[hidden] {
	display: none;
}

.posts article.featured .photo {
	aspect-ratio: auto;
	min-height: 320px;
}

.posts .post-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.6rem;
}

.posts article.featured .post-body {
	justify-content: center;
	padding: clamp(1.6rem, 4vw, 3rem);
}

.posts .role {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: .4rem;
}

.posts h3 {
	margin-bottom: .5rem;
}

.posts h3 a {
	color: var(--ink);
}

.posts p {
	font-size: .94rem;
}

.posts .link-arrow {
	margin-top: auto;
}

/* Staff profile */
.switch-page {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
	font-size: .9rem;
}

.switch-page .back-page,
.switch-page .next-page {
	display: flex;
	align-items: center;
	gap: .6rem;
}

.switch-page .next-page {
	justify-content: flex-end;
}

.switch-page i {
	color: var(--accent);
	font-size: .75rem;
}

.switch-page a {
	color: var(--ink);
	font-weight: 500;
}

.switch-page a:hover {
	color: var(--accent);
}

.switch-page .center-page a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mutedColor);
}

.profile {
	display: grid;
	grid-template-columns: minmax(260px, 380px) 1fr;
	grid-template-areas:
		"aside head"
		"aside body";
	column-gap: clamp(2rem, 6vw, 4.5rem);
	row-gap: 0;
	align-items: start;
}

.profile-head {
	grid-area: head;
}

.profile-body {
	grid-area: body;
}

.profile-aside {
	grid-area: aside;
	position: sticky;
	top: calc(var(--topbarHeight) + var(--navHeight) + 1.5rem);
}

.person-img {
	aspect-ratio: 3 / 4;
	border-radius: var(--radius);
	background-color: var(--sand);
	background-size: cover;
	background-position: 50% 20%;
	box-shadow: var(--shadow);
}

.person-img[data-initials]::before {
	content: attr(data-initials);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-family: var(--fontSerif);
	font-size: 5rem;
	color: var(--mutedColor);
}

.profile-contacts {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	margin-top: 1.4rem;
}

.profile-contacts .button {
	justify-content: flex-start;
	width: 100%;
	overflow-wrap: anywhere;
}

.profile-head .role {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent);
}

.profile-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem 1.2rem;
	margin: .3rem 0 .3em;
}

.profile-title h1 {
	margin: 0;
}

.practice-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	list-style: none;
	margin: .9rem 0 1.2rem;
	padding: 0;
}

.practice-tags li {
	flex: 1 1 auto;
	text-align: center;
	margin: 0;
	padding: .38rem .75rem;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--accent);
	background: rgba(140, 47, 57, .12);
	border-radius: 8px;
}

.profile-head .subtitle {
	font-family: var(--fontSerif);
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	font-style: italic;
	color: var(--textColor);
	line-height: 1.4;
	padding-bottom: 1.8rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--line);
}

.profile-body h3 {
	margin-top: 2rem;
}

/* Swipe tra le schede (main.js) */
.section-switch + .section .profile {
	transition: transform .25s var(--ease), opacity .25s var(--ease);
}

body.is-swiping-next .profile {
	transform: translateX(-40px);
	opacity: 0;
}

body.is-swiping-back .profile {
	transform: translateX(40px);
	opacity: 0;
}

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

.contact-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

.card {
	padding: clamp(1.5rem, 3vw, 2.2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--whiteColor);
}

.card + .card {
	margin-top: 1.5rem;
}

.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .8rem 1rem;
	margin-bottom: 1rem;
}

.card-head h2 {
	margin-bottom: 0;
}

.card h2 {
	display: flex;
	align-items: center;
	gap: .8rem;
	font-size: 1.7rem;
}

.card h2 i {
	font-size: 1.1rem;
	color: var(--accent);
}

.card > p {
	color: var(--mutedColor);
	font-size: .94rem;
}

ul.contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.contact li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .9rem 0;
	border-top: 1px solid var(--line);
}

ul.contact li .contact-main {
	display: flex;
	align-items: center;
	gap: .9rem;
	min-width: 0;
}

ul.contact li .contact-main i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accentSoft);
	color: var(--accent);
	font-size: .9rem;
}

ul.contact li .contact-main a,
ul.contact li .contact-main span {
	color: var(--ink);
	font-weight: 500;
	overflow-wrap: anywhere;
}

ul.contact li .contact-main small {
	display: block;
	color: var(--mutedColor);
	font-size: .78rem;
	font-weight: 400;
}

ul.contact .fabBig {
	flex: 0 0 auto;
	font-size: 1.4rem;
	color: #0a66c2;
}

ul.contact .fabBig.disabled {
	opacity: .3;
	pointer-events: none;
}

.hours {
	width: 100%;
	border-collapse: collapse;
	font-size: .94rem;
}

.hours th,
.hours td {
	padding: .75rem 0;
	border-top: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.hours th {
	color: var(--ink);
	font-weight: 600;
	padding-right: 1rem;
	white-space: nowrap;
}

.hours td {
	text-align: right;
}

.hours tr.closed td {
	color: var(--accent);
}

.note {
	display: flex;
	gap: .8rem;
	padding: 1rem 1.2rem;
	border-radius: var(--radiusSmall);
	background: var(--accentSoft);
	color: var(--ink);
	font-size: .9rem;
	margin-bottom: 1rem;
}

.note i {
	margin-top: .3rem;
	color: var(--accent);
}

.note.is-open {
	background: #e8f3ec;
}

.note.is-open i {
	color: #2e7d4f;
}

/* Popup appuntamento (schede staff) */
.appointment-modal {
	width: min(680px, calc(100% - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: clamp(1.2rem, 3.5vw, 1.8rem);
	border: 0;
	border-radius: var(--radius);
	background: var(--whiteColor);
	color: var(--textColor);
	box-shadow: 0 30px 80px -20px rgba(12, 21, 39, .6);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.appointment-modal::backdrop {
	background: rgba(12, 21, 39, .65);
	backdrop-filter: blur(3px);
}

.appointment-modal[open] {
	animation: modal-in .3s var(--ease);
}

@keyframes modal-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

.appointment-modal h2 {
	margin-bottom: .3em;
}

/* Spazio per il pulsante di chiusura */
.appointment-modal .eyebrow,
.appointment-modal h2 {
	padding-right: 3rem;
}

.appointment-modal .modal-intro {
	color: var(--mutedColor);
	font-size: .94rem;
	margin: 0;
}

.appointment-modal .modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--whiteColor);
	color: var(--ink);
	font-size: 1rem;
	cursor: pointer;
}

.appointment-modal .modal-close:hover {
	border-color: var(--accent);
	color: var(--accent);
}

body.is-modal-open {
	overflow: hidden;
}

/* Modulo appuntamento */
#richiedi-appuntamento {
	scroll-margin-top: calc(var(--topbarHeight) + var(--navHeight));
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .7rem 1.1rem;
	margin-top: 1rem;
}

.form-grid label {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	font-size: .85rem;
	font-weight: 500;
	color: var(--ink);
}

.form-grid .full {
	grid-column: 1 / -1;
}

.form-grid input:not([type="checkbox"]),
.form-grid select,
.form-grid textarea {
	width: 100%;
	padding: .55rem .8rem;
	border: 1px solid var(--line);
	border-radius: var(--radiusSmall);
	background: var(--whiteColor);
	color: var(--ink);
	font: inherit;
	font-weight: 400;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form-grid textarea {
	resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accentSoft);
}

.form-grid label.checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: .7rem;
	font-weight: 400;
	color: var(--textColor);
}

.form-grid label.checkbox input {
	margin-top: .3rem;
	accent-color: var(--accent);
}

/* Campi obbligatori non validi: bordo rosso solo dopo un tentativo di invio (classe show-errors) */
.form-grid.show-errors [required]:invalid:not([type="checkbox"]) {
	border-color: #b3261e;
}

.form-grid.show-errors [required]:invalid:not([type="checkbox"]):focus {
	box-shadow: 0 0 0 3px rgba(179, 38, 30, .15);
}

/* Privacy non spuntata: la scritta viene sottolineata in rosso */
.form-grid.show-errors label.checkbox:has(input:invalid) > span {
	text-decoration: underline;
	text-decoration-color: #b3261e;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Il pulsante disattivato lascia passare il clic al contenitore, che evidenzia i campi mancanti */
.submit-wrap {
	display: inline-block;
}

.submit-wrap:has(:disabled) {
	cursor: not-allowed;
}

.submit-wrap .button:disabled {
	pointer-events: none;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.form-actions small {
	color: var(--mutedColor);
}

.form-result {
	margin-top: 1.5rem;
}


.form-result h3 {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: 1.5rem;
}

.form-result h3 i {
	color: #2e7d4f;
	font-size: 1.1rem;
}

.form-result.is-error h3 i {
	color: #b3261e;
}

.form-result-text {
	max-height: 220px;
	overflow: auto;
	margin: 0 0 1.2rem;
	padding: 1rem 1.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radiusSmall);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--fontSans);
	font-size: .85rem;
	line-height: 1.6;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.link-button {
	padding: .5rem;
	border: 0;
	background: none;
	color: var(--accent);
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

@media screen and (max-width: 640px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Dove siamo
   ========================================================================== */

.map-frame {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadowSoft);
	border: 1px solid var(--line);
	aspect-ratio: 16 / 9;
	background: var(--sand);
}

.map-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map-consent {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .7rem;
	padding: 1.2rem;
	text-align: center;
	background: var(--sand);
}

.map-consent > i {
	font-size: 1.8rem;
	color: var(--accent);
}

.map-consent p {
	max-width: 34ch;
	margin: 0;
	font-size: .9rem;
	color: var(--textColor);
}

.map-ask,
.map-consent.is-asking > p,
.map-consent.is-asking > .map-load {
	display: none;
}

.map-consent.is-asking .map-ask {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .8rem;
}

.map-ask-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
}

.map-frame.is-loaded .map-consent {
	display: none;
}

.address-card {
	display: flex;
	flex-direction: column;
	gap: .8rem;
}

.address-card .address-line {
	display: flex;
	gap: .8rem;
	line-height: 1.4;
	font-size: .94rem;
}

.address-card .address-line i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--accentSoft);
	color: var(--accent);
	font-size: .85rem;
}

.address-card .address-line strong {
	display: block;
	font-size: 1rem;
}


/* ==========================================================================
   Lo studio — gallery (Fancybox Carousel)
   ========================================================================== */

/* Testo a sinistra, galleria a destra */
.studio-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.studio-split .section-head {
	margin-bottom: 0;
}

.studio-gallery {
	min-width: 0;
}

.studio-gallery #thumbCarousel {
	margin-top: 2.6rem;
}

@media screen and (max-width: 980px) {
	.studio-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

#mainCarousel {
	--carousel-button-color: var(--ink);
	--carousel-button-bg: var(--whiteColor);
	--carousel-button-shadow: var(--shadowSoft);
	--carousel-button-svg-width: 22px;
	--carousel-button-svg-height: 22px;
	--carousel-button-svg-stroke-width: 2.5;
	/* La foto (3:2) deve stare tutta nello schermo sotto l'header fisso */
	width: 100%;
	max-width: min(860px, calc((100vh - var(--topbarHeight) - var(--navHeight) - 9rem) * 1.5));
	max-width: min(860px, calc((100dvh - var(--topbarHeight) - var(--navHeight) - 9rem) * 1.5));
	margin: 0 auto 1rem;
}

#mainCarousel .carousel__slide {
	width: 100%;
	padding: 0;
	cursor: zoom-in;
}

#mainCarousel .carousel__slide img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}

#mainCarousel .carousel__button.is-prev {
	left: 1rem;
}

#mainCarousel .carousel__button.is-next {
	right: 1rem;
}

#mainCarousel .carousel__dots {
	top: calc(100% + .5rem);
}

#mainCarousel .carousel__dots .carousel__dot::after {
	background: var(--accent);
}

#thumbCarousel {
	max-width: 860px;
	margin: 2.5rem auto 0;
}

#thumbCarousel .carousel__slide {
	width: 110px;
	height: 76px;
	padding: 0;
	margin: 0 .4rem;
	border-radius: var(--radiusSmall);
	overflow: hidden;
	opacity: .5;
	cursor: pointer;
	transition: opacity .25s var(--ease);
}

#thumbCarousel .carousel__slide.is-nav-selected,
#thumbCarousel .carousel__slide:hover {
	opacity: 1;
}

#thumbCarousel .carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Image viewer (main.js — .thumb img) */
.modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--gutter);
	background: rgba(12, 21, 39, .85);
}

.modal.is-open {
	display: flex;
}

.modal .modal-dialog {
	position: relative;
	width: min(1100px, 100%);
}

.modal #imgViewer {
	aspect-ratio: 3 / 2;
	border-radius: var(--radius);
	background: center / contain no-repeat;
}

.modal .close {
	position: absolute;
	top: -3rem;
	right: 0;
	color: var(--whiteColor);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

/* ==========================================================================
   Dicono di noi
   ========================================================================== */

.press {
	display: grid;
	gap: 2rem;
}

.press-item {
	scroll-margin-top: 1.5rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--whiteColor);
}

.press-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem 1rem;
	margin-bottom: 1.2rem;
	font-size: .85rem;
	color: var(--mutedColor);
}

.press-meta .outlet {
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
}

.press-sources {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.press-sources a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .4rem .9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 500;
	color: var(--ink);
}

.press-sources a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.press-item h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.press-item h4 {
	font-family: var(--fontSans);
	font-size: 1rem;
	font-weight: 600;
	margin: 1.6rem 0 .4rem;
}

.press-item video {
	width: 100%;
	margin-top: 1.5rem;
	border-radius: var(--radius);
	background: var(--blackColor);
}

blockquote {
	margin: 1.5rem 0;
	padding: 1rem 0 1rem 1.5rem;
	border-left: 3px solid var(--gold);
	font-family: var(--fontSerif);
	font-size: 1.3rem;
	font-style: italic;
	color: var(--ink);
	line-height: 1.5;
}

/* ==========================================================================
   Prose (politica cookie)
   ========================================================================== */

/* Mappa del sito (info/mappa-del-sito.html) */
.sitemap-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
}

.sitemap-group {
	padding: 1.5rem 1.6rem;
	background: var(--whiteColor);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.sitemap-group h2 {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.sitemap-group h2 i {
	font-size: 1rem;
	color: var(--accent);
}

.sitemap-group ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sitemap-group li {
	margin: 0;
	padding: .55rem 0;
	border-top: 1px solid var(--line);
}

.sitemap-group li:first-child {
	border-top: 0;
	padding-top: 0;
}

.sitemap-group a {
	font-weight: 600;
}

.sitemap-group li span {
	display: block;
	font-size: .88rem;
	color: var(--mutedColor);
}

@media screen and (max-width: 760px) {
	.sitemap-grid {
		grid-template-columns: 1fr;
	}
}

.prose table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); color: var(--ink); font-weight: 600; }
.prose td:first-child { overflow-wrap: anywhere; }

@media screen and (max-width: 640px) {
	.prose table { display: block; overflow-x: auto; }
}

.prose h2 {
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	margin-top: 2.6rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.prose h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.prose h3 {
	font-size: 1.3rem;
	margin-top: 1.8rem;
}

.prose li {
	margin-bottom: .5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 980px) {
	.split,
	.contact-grid,
	.profile {
		grid-template-columns: 1fr;
	}

	.split.reverse > :first-child {
		order: 0;
	}

	.areas-grid {
		grid-template-columns: 1fr 1fr;
	}

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

	.profile {
		grid-template-columns: 220px 1fr;
		grid-template-areas:
			"aside head"
			"body body";
		row-gap: 1.8rem;
	}

	.profile-head .subtitle {
		padding-bottom: 0;
		margin-bottom: 0;
		border-bottom: 0;
	}

	.profile-aside {
		position: static;
		display: grid;
		grid-template-columns: 1fr;
		gap: 1rem;
		align-items: start;
	}

	.profile-contacts {
		margin-top: 0;
	}

	.media-frame::before {
		inset: 1rem -1rem -1rem 1rem;
	}
}

@media screen and (max-width: 640px) {
	.areas-grid,
	.tiles {
		grid-template-columns: 1fr;
	}

	/* Aree di competenza: icona e titolo sulla stessa riga */
	.areas-grid {
		gap: .7rem;
	}

	.area-card {
		grid-template-columns: 44px 1fr;
		column-gap: 1rem;
		padding: .9rem 1.1rem;
	}

	.area-card .area-icon {
		width: 44px;
		height: 44px;
		border-radius: 10px;
		font-size: 1rem;
	}

	.area-card h3 {
		font-size: 1.2rem;
	}

	.area-card .area-note {
		font-size: .82rem;
	}

	.tile {
		min-height: 300px;
	}

	.stats {
		grid-template-columns: 1fr 1fr 1fr;
		gap: .6rem;
	}

	.profile {
		grid-template-columns: 1fr;
		grid-template-areas:
			"head"
			"aside"
			"body";
	}

	.profile-aside {
		grid-template-columns: 1fr;
	}

	/* Foto della scheda a tutta larghezza schermo, con il volto sempre in vista */
	.profile-aside .person-img {
		width: 100vw;
		max-width: none;
		margin-left: calc(50% - 50vw);
		border-radius: 0;
		box-shadow: none;
		background-position: 50% 8%;
	}

	/* Foto orizzontali delle card: proporzione originale, senza ritagli */
	.posts .photo {
		aspect-ratio: 3 / 2;
	}

	.posts article.featured .photo {
		aspect-ratio: 3 / 2;
		min-height: 0;
	}

	.switch-page {
		grid-template-columns: 1fr 1fr;
	}

	.switch-page .center-page {
		display: none;
	}

	.cta-band .container {
		flex-direction: column;
		align-items: flex-start;
	}

	.media-frame::before {
		display: none;
	}

	#thumbCarousel .carousel__slide {
		width: 80px;
		height: 56px;
	}
}

/* ==========================================================================
   Home — come lavoriamo, stampa, FAQ
   ========================================================================== */

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps li {
	padding: 1.6rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--whiteColor);
}

.steps h3 {
	margin: .8rem 0 .4rem;
	font-size: 1.3rem;
}

.steps p {
	margin: 0;
	color: var(--mutedColor);
	font-size: .94rem;
}

.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--accentSoft);
	color: var(--accent);
	font-family: var(--fontSerif);
	font-size: 1.2rem;
	font-weight: 700;
}

.press-teasers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.press-teaser {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	padding: 1.8rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--whiteColor);
	color: var(--textColor);
	transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.press-teaser:hover {
	box-shadow: var(--shadow);
	transform: translateY(-4px);
}

.press-teaser .outlet {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent);
}

.press-teaser h3 {
	margin: 0;
	font-size: 1.45rem;
}

.press-teaser p {
	margin: 0;
	flex: 1;
}

.faq details {
	border: 1px solid var(--line);
	border-radius: var(--radiusSmall);
	background: var(--whiteColor);
}

.faq details + details {
	margin-top: .7rem;
}

.faq summary {
	padding: 1rem 1.2rem;
	color: var(--ink);
	font-weight: 600;
	cursor: pointer;
}

.faq details[open] summary {
	color: var(--accent);
}

.faq details p {
	margin: 0;
	padding: 0 1.2rem 1.1rem;
	color: var(--textColor);
	font-size: .94rem;
}

@media screen and (max-width: 760px) {
	.press-teasers {
		grid-template-columns: 1fr;
	}
}
