/*
Theme Name: Domus Risparmio
Theme URI: https://domusrisparmio.it
Description: Tema figlio di Twenty Twenty-Five per Domus Risparmio
Author: Domus Risparmio
Author URI: https://domusrisparmio.it
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: domusrisparmio
*/

/* =============================================
   VARIABILI COLORE E FONT
   ============================================= */
:root {
	--color-navy:       #1B2D6B;
	--color-navy-dark:  #0D1A42;
	--color-green:      #27A860;
	--color-orange:     #F5A623;
	--color-white:      #FFFFFF;
	--color-light-bg:   #F4F6FB;

	--font-primary: 'Montserrat', sans-serif;
}

/* =============================================
   TIPOGRAFIA BASE
   ============================================= */
body {
	font-family: var(--font-primary);
	color: var(--color-navy-dark);
	background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-primary);
	font-weight: 700;
	color: var(--color-navy);
}

a {
	color: var(--color-navy);
	text-decoration: none;
}

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

/* =============================================
   HEADER
   ============================================= */
.wp-block-template-part[data-slug="header"],
header.site-header {
	background-color: var(--color-navy);
	color: var(--color-white);
}

.wp-block-site-title a,
.site-title a {
	color: var(--color-white);
	font-weight: 800;
	font-size: 1.5rem;
}

.wp-block-navigation a,
.main-navigation a {
	color: var(--color-white);
	font-weight: 600;
}

.wp-block-navigation a:hover,
.main-navigation a:hover {
	color: var(--color-orange);
}

/* =============================================
   BUTTONS
   ============================================= */
.wp-block-button__link,
.button,
button[type="submit"] {
	background-color: var(--color-green);
	color: var(--color-white);
	font-family: var(--font-primary);
	font-weight: 700;
	border-radius: 4px;
	border: none;
	padding: 0.75rem 1.75rem;
	transition: background-color 0.2s ease;
}

.wp-block-button__link:hover,
.button:hover,
button[type="submit"]:hover {
	background-color: var(--color-navy);
	color: var(--color-white);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid var(--color-green);
	color: var(--color-green);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--color-green);
	color: var(--color-white);
}

/* =============================================
   HERO / BANNER
   ============================================= */
.wp-block-cover,
.hero-section {
	background-color: var(--color-navy);
}

.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2 {
	color: var(--color-white);
}

/* =============================================
   FOOTER
   ============================================= */
.wp-block-template-part[data-slug="footer"],
footer.site-footer {
	background-color: var(--color-navy-dark);
	color: var(--color-white);
}

footer a {
	color: var(--color-orange);
}

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

/* =============================================
   UTILITY
   ============================================= */
.has-navy-color         { color: var(--color-navy); }
.has-navy-dark-color    { color: var(--color-navy-dark); }
.has-green-color        { color: var(--color-green); }
.has-orange-color       { color: var(--color-orange); }

.has-navy-background-color      { background-color: var(--color-navy); }
.has-navy-dark-background-color { background-color: var(--color-navy-dark); }
.has-green-background-color     { background-color: var(--color-green); }
.has-orange-background-color    { background-color: var(--color-orange); }
.has-light-background-color     { background-color: var(--color-light-bg); }

/* =============================================
   SMOOTH SCROLL / ACCESSIBILITÀ
   ============================================= */
html {
	scroll-behavior: smooth;
}

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

.dr-skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 9999;
	background: var(--color-navy);
	color: var(--color-white);
	padding: 0.5rem 1rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0 0 6px 6px;
	transition: top 0.15s ease;
}

.dr-skip-link:focus {
	top: 0;
}

/* =============================================
   HEADER
   ============================================= */
.dr-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--color-navy);
	color: var(--color-white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: box-shadow 0.25s ease;
}

.dr-header.is-scrolled {
	box-shadow: 0 4px 24px rgba(13, 26, 66, 0.35);
}

.dr-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: 72px;
}

/* Brand */
.dr-header__brand {
	flex-shrink: 0;
}

.dr-header__site-name {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.dr-header__logo-icon {
	display: flex;
	align-items: center;
	color: var(--color-white);
	flex-shrink: 0;
}

.dr-header__brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.dr-header__brand-name {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--color-white);
	letter-spacing: -0.01em;
}

.dr-header__brand-tagline {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

/* Custom logo */
.dr-header__brand .custom-logo-link img {
	max-height: 48px;
	width: auto;
	display: block;
}

/* Nav */
.dr-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.dr-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.dr-nav__list li {
	position: relative;
}

.dr-nav__list > li > a {
	display: block;
	padding: 0.5rem 0.9rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.18s ease, color 0.18s ease;
	white-space: nowrap;
}

.dr-nav__list > li > a:hover,
.dr-nav__list > li.current-menu-item > a,
.dr-nav__list > li.current-menu-ancestor > a {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
}

.dr-nav__list > li.current-menu-item > a {
	color: var(--color-orange);
}

/* Dropdown sub-menu */
.dr-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 200px;
	background-color: var(--color-navy-dark);
	border-radius: 8px;
	padding: 0.5rem 0;
	list-style: none;
	margin: 0;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 200;
}

.dr-nav__list .menu-item-has-children:hover .sub-menu,
.dr-nav__list .menu-item-has-children:focus-within .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dr-nav__list .sub-menu li a {
	display: block;
	padding: 0.55rem 1.1rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.88rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.dr-nav__list .sub-menu li a:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--color-white);
}

/* Auth link header */
.dr-header__auth {
	flex-shrink: 0;
}

.dr-header__auth-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	padding: 0.4rem 0.75rem;
	border: 1.5px solid var(--color-green);
	border-radius: 6px;
	white-space: nowrap;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.dr-header__auth-link:hover,
.dr-header__auth-link:focus-visible {
	background-color: var(--color-green);
	color: var(--color-white);
}

/* CTA header */
.dr-header__actions {
	flex-shrink: 0;
}

.dr-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background-color: var(--color-green);
	color: var(--color-white);
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.55rem 1.1rem;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.18s ease, transform 0.15s ease;
	white-space: nowrap;
	line-height: 1;
}

.dr-header__cta:hover {
	background-color: #1e8f4a;
	color: var(--color-white);
	transform: translateY(-1px);
}

.dr-header__cta-label {
	display: none; /* mostrato su desktop large */
}

.dr-header__cta-number {
	font-weight: 700;
}

@media (min-width: 900px) {
	.dr-header__cta-label {
		display: inline;
	}
}

/* Hamburger */
.dr-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.28);
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: border-color 0.18s ease;
}

.dr-hamburger:hover {
	border-color: rgba(255, 255, 255, 0.6);
}

.dr-hamburger__bar {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--color-white);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
	transform-origin: center;
}

.dr-hamburger.is-active .dr-hamburger__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.dr-hamburger.is-active .dr-hamburger__bar:nth-child(2) {
	opacity: 0;
	width: 0;
}

.dr-hamburger.is-active .dr-hamburger__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   FOOTER
   ============================================= */
.dr-footer {
	background-color: var(--color-navy-dark);
	color: rgba(255, 255, 255, 0.80);
	font-size: 0.9rem;
}

.dr-footer__top {
	padding: 4rem 1.5rem;
}

.dr-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 3rem;
}

/* Brand col */
.dr-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	margin-bottom: 1rem;
}

.dr-footer__logo-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.dr-footer__logo-name {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--color-white);
	letter-spacing: -0.01em;
}

.dr-footer__tagline {
	font-size: 0.87rem;
	color: rgba(255, 255, 255, 0.58);
	line-height: 1.65;
	margin: 0 0 1.25rem;
}

.dr-footer__contact-quick {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.dr-footer__quick-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--color-orange);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.18s ease;
}

.dr-footer__quick-link:hover {
	color: #ffd97d;
}

/* Heading colonne */
.dr-footer__heading {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.40);
	margin: 0 0 1rem;
}

/* Nav list footer */
.dr-footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.dr-footer__nav-list li a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: color 0.18s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.dr-footer__nav-list li a::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: var(--color-green);
	flex-shrink: 0;
}

.dr-footer__nav-list li a:hover {
	color: var(--color-white);
}

/* Zone list */
.dr-footer__zone-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.88rem;
	font-weight: 500;
}

.dr-footer__zone-item small {
	color: rgba(255, 255, 255, 0.40);
	font-size: 0.78rem;
}

/* Contact list */
.dr-footer__address {
	font-style: normal;
}

.dr-footer__contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.dr-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 0.88rem;
	line-height: 1.5;
	transition: color 0.18s ease;
}

.dr-footer__contact-item--text {
	cursor: default;
}

a.dr-footer__contact-item:hover {
	color: var(--color-white);
}

.dr-footer__contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.07);
	color: var(--color-green);
	flex-shrink: 0;
	margin-top: 1px;
}

.dr-footer__contact-item strong {
	color: var(--color-white);
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Footer bottom */
.dr-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.25rem 1.5rem;
}

.dr-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.dr-footer__copy {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.40);
	margin: 0;
}

.dr-footer__copy a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.dr-footer__copy a:hover {
	color: var(--color-white);
}

.dr-footer__legal-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
}

.dr-footer__legal-nav a {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.40);
	text-decoration: none;
	transition: color 0.18s ease;
}

.dr-footer__legal-nav a:hover {
	color: rgba(255, 255, 255, 0.75);
}

/* =============================================
   HEADER RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
	.dr-hamburger {
		display: flex;
		margin-left: auto;
	}

	.dr-header__inner {
		flex-wrap: wrap;
		height: auto;
		padding-top: 0.85rem;
		padding-bottom: 0.85rem;
		position: relative;
	}

	.dr-header__brand {
		flex: 1;
	}

	.dr-header__actions {
		order: 2;
	}

	.dr-hamburger {
		order: 3;
	}

	.dr-nav {
		order: 4;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.dr-nav.is-open {
		max-height: 500px;
	}

	.dr-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem 0 1rem;
	}

	.dr-nav__list > li > a {
		padding: 0.65rem 0.5rem;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	/* sub-menu mobile: static */
	.dr-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background-color: rgba(0, 0, 0, 0.18);
		border-radius: 0;
		padding: 0;
	}

	.dr-nav__list .sub-menu li a {
		padding-left: 1.75rem;
		font-size: 0.85rem;
	}
}

/* =============================================
   HEADER — DESKTOP A DUE RIGHE (≥861px)
   Il menu completo (brand + voci + auth + CTA telefono) non sta su una
   riga sola dentro il contenitore da 1200px, e aggiungere voci di menu
   peggiorava lo sbordo a destra (la CTA "Chiama ora" finiva fuori,
   scroll orizzontale). Soluzione robusta al numero di voci: il menu va
   sempre a capo su una seconda riga centrata, brand+auth+CTA sopra.
   (Prima era limitato a 861–1500px con soglia fissa, fragile: ogni
   pagina aggiunta rompeva di nuovo il layout sopra i 1500px.)
   ============================================= */
@media (min-width: 861px) {
	.dr-header__inner {
		flex-wrap: wrap;
		height: auto;
		padding-top: 0.65rem;
		padding-bottom: 0.65rem;
		row-gap: 0.15rem;
	}

	.dr-header__brand {
		flex: 1; /* spinge auth e CTA a destra sulla prima riga */
	}

	.dr-nav {
		order: 5;
		flex: 1 1 100%;
		justify-content: center;
	}

	.dr-nav__list {
		flex-wrap: wrap;
		justify-content: center;
	}

	/* La barra servizi sticky era agganciata ai 72px di header fisso:
	   con l'header a due righe diventa statica per evitare sovrapposizioni */
	.dr-services-nav {
		position: static;
	}
}

/* =============================================
   FOOTER RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
	.dr-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
}

@media (max-width: 640px) {
	.dr-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.dr-footer__top {
		padding: 3rem 1.25rem;
	}

	.dr-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

/* =============================================
   LAYOUT – CONTAINER
   ============================================= */
.dr-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* =============================================
   SECTION HEADER
   ============================================= */
.dr-section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.dr-section-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	color: var(--color-navy);
	margin-bottom: 0.75rem;
	line-height: 1.2;
}

.dr-section-subtitle {
	font-size: 1.05rem;
	color: #4a5568;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.7;
}

.dr-section-header--light .dr-section-title,
.dr-section-header--light .dr-section-subtitle {
	color: var(--color-white);
}

/* =============================================
   BUTTONS – HOME
   ============================================= */
.dr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-primary);
	font-weight: 700;
	font-size: 1rem;
	padding: 0.875rem 2rem;
	border-radius: 6px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease,
				border-color 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
}

.dr-btn--primary {
	background-color: var(--color-green);
	color: var(--color-white);
	border-color: var(--color-green);
}

.dr-btn--primary:hover {
	background-color: #1e8f4a;
	border-color: #1e8f4a;
	color: var(--color-white);
	transform: translateY(-2px);
}

.dr-btn--outline {
	background-color: transparent;
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.55);
}

.dr-btn--outline:hover {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: var(--color-white);
	color: var(--color-white);
}

.dr-btn--large {
	font-size: 1.1rem;
	padding: 1rem 2.5rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.dr-hero {
	background: linear-gradient(
		140deg,
		var(--color-navy-dark) 0%,
		var(--color-navy)      55%,
		#1e3a8a                100%
	);
	color: var(--color-white);
	padding: 5.5rem 1.5rem 3.5rem;
	position: relative;
	overflow: hidden;
}

.dr-hero::before {
	content: '';
	position: absolute;
	top: -100px;
	right: -100px;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(39,168,96,.10) 0%, transparent 70%);
	pointer-events: none;
}

.dr-hero::after {
	content: '';
	position: absolute;
	bottom: -80px;
	left: -80px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245,166,35,.08) 0%, transparent 70%);
	pointer-events: none;
}

.dr-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.dr-hero__badge {
	display: inline-block;
	background-color: rgba(39, 168, 96, 0.18);
	color: #6ee7a0;
	border: 1px solid rgba(39, 168, 96, 0.38);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 0.35rem 1rem;
	border-radius: 50px;
	margin-bottom: 1.5rem;
}

.dr-hero__content {
	max-width: 780px;
}

.dr-hero__title {
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	font-weight: 800;
	color: var(--color-white);
	line-height: 1.12;
	margin-bottom: 1.25rem;
}

.dr-hero__title--accent {
	color: var(--color-orange);
}

.dr-hero__subtitle {
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	color: rgba(255, 255, 255, 0.80);
	line-height: 1.75;
	margin-bottom: 2.25rem;
}

.dr-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 3.5rem;
}

.dr-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-top: 2rem;
}

.dr-hero__stat {
	flex: 1;
	min-width: 140px;
	padding-right: 1.75rem;
}

.dr-hero__stat:not(:last-child) {
	border-right: 1px solid rgba(255, 255, 255, 0.14);
	margin-right: 1.75rem;
}

.dr-hero__stat-num {
	display: block;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: 800;
	color: var(--color-orange);
	line-height: 1;
	margin-bottom: 0.35rem;
}

.dr-hero__stat-label {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.65);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.dr-services {
	background-color: var(--color-light-bg);
	padding: 5rem 1.5rem;
}

.dr-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.dr-service-card {
	background-color: var(--color-white);
	border-radius: 14px;
	padding: 2rem;
	border: 1.5px solid #e4eaf5;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dr-service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 40px rgba(27, 45, 107, 0.11);
}

.dr-service-card--featured {
	border-color: var(--color-green);
	border-width: 2px;
	background: linear-gradient(145deg, #fff 55%, #f0fdf6 100%);
}

.dr-service-card__icon {
	width: 54px;
	height: 54px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dr-service-card__icon svg {
	width: 28px;
	height: 28px;
}

.dr-service-card__icon--energy   { background-color: #fff7e6; color: var(--color-orange); }
.dr-service-card__icon--insurance { background-color: #eef2ff; color: var(--color-navy); }
.dr-service-card__icon--bank      { background-color: #eef2ff; color: var(--color-navy); }
.dr-service-card__icon--mortgage  { background-color: #e8f4ff; color: #1a5fa8; }
.dr-service-card__icon--planning  { background-color: #f0fdf6; color: var(--color-green); }
.dr-service-card__icon--home      { background-color: #f0fdf6; color: var(--color-green); }

.dr-service-card__title {
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--color-navy);
	margin: 0;
	line-height: 1.3;
}

.dr-service-card__desc {
	font-size: 0.91rem;
	color: #4a5568;
	line-height: 1.68;
	flex: 1;
	margin: 0;
}

.dr-service-card__tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-navy);
	background-color: var(--color-light-bg);
	padding: 0.28rem 0.8rem;
	border-radius: 50px;
	margin-top: auto;
	align-self: flex-start;
}

.dr-service-card__tag--featured {
	background-color: var(--color-green);
	color: var(--color-white);
}

/* =============================================
   WHY SECTION
   ============================================= */
.dr-why {
	background: linear-gradient(
		140deg,
		var(--color-navy)      0%,
		var(--color-navy-dark) 100%
	);
	padding: 5rem 1.5rem;
	color: var(--color-white);
}

.dr-why__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.dr-why__item {
	text-align: center;
}

.dr-why__icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background-color: rgba(39, 168, 96, 0.14);
	border: 1.5px solid rgba(39, 168, 96, 0.32);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
	color: #5de89b;
	transition: background-color 0.2s ease;
}

.dr-why__icon svg {
	width: 30px;
	height: 30px;
}

.dr-why__item:hover .dr-why__icon {
	background-color: rgba(39, 168, 96, 0.26);
}

.dr-why__item h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-white);
	margin: 0 0 0.6rem;
	line-height: 1.3;
}

.dr-why__item p {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.70);
	line-height: 1.72;
	margin: 0;
}

/* =============================================
   ZONES SECTION
   ============================================= */
.dr-zones {
	padding: 5rem 1.5rem;
	background-color: var(--color-white);
}

.dr-zones__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.dr-zone-card {
	background-color: var(--color-light-bg);
	border-radius: 14px;
	padding: 2.25rem 1.5rem;
	text-align: center;
	border: 1.5px solid #e4eaf5;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dr-zone-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(27, 45, 107, 0.10);
}

.dr-zone-card__icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background-color: var(--color-navy);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.1rem;
	transition: background-color 0.2s ease;
}

.dr-zone-card:hover .dr-zone-card__icon {
	background-color: var(--color-green);
}

.dr-zone-card__icon svg {
	width: 26px;
	height: 26px;
}

.dr-zone-card__name {
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--color-navy);
	margin: 0 0 0.25rem;
}

.dr-zone-card__province {
	font-size: 0.82rem;
	color: #718096;
	font-weight: 600;
	letter-spacing: 0.03em;
	margin: 0;
}

/* =============================================
   CTA FINALE
   ============================================= */
.dr-cta-final {
	background: linear-gradient(
		140deg,
		var(--color-navy-dark) 0%,
		#1a3a6e                100%
	);
	padding: 5.5rem 1.5rem;
	color: var(--color-white);
}

.dr-cta-final__inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.dr-cta-final__text h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	color: var(--color-white);
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.dr-cta-final__text p {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.76);
	line-height: 1.75;
	margin: 0;
}

.dr-cta-final__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
}

.dr-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--color-orange);
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease;
}

.dr-contact-link:hover {
	color: #ffd97d;
}

.dr-contact-link svg {
	flex-shrink: 0;
}

/* =============================================
   RESPONSIVE – TABLET  (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
	.dr-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dr-why__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}

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

/* =============================================
   RESPONSIVE – MOBILE  (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
	.dr-hero {
		padding: 3.5rem 1.25rem 2.5rem;
	}

	.dr-hero__cta {
		flex-direction: column;
	}

	.dr-btn {
		width: 100%;
		justify-content: center;
	}

	.dr-hero__stats {
		flex-direction: column;
		gap: 0;
	}

	.dr-hero__stat {
		border-right: none !important;
		margin-right: 0 !important;
		padding-right: 0;
		padding-bottom: 1.25rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.dr-hero__stat:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}

	.dr-services__grid {
		grid-template-columns: 1fr;
	}

	.dr-why__grid {
		grid-template-columns: 1fr;
	}

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

	.dr-cta-final {
		padding: 3.5rem 1.25rem;
	}

	.dr-cta-final__contacts {
		flex-direction: column;
		gap: 1rem;
		align-items: center;
	}
}

/* =============================================
   PAGE HERO (generico – usato da più pagine)
   ============================================= */
.dr-page-hero {
	background: linear-gradient(
		140deg,
		var(--color-navy-dark) 0%,
		var(--color-navy)      60%,
		#1e3a8a                100%
	);
	color: var(--color-white);
	padding: 4rem 1.5rem 3.5rem;
	position: relative;
	overflow: hidden;
}

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

.dr-page-hero__deco {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	line-height: 0;
	pointer-events: none;
}

.dr-page-hero__title {
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 800;
	color: var(--color-white);
	margin: 0.5rem 0 1rem;
	line-height: 1.12;
}

.dr-page-hero__subtitle {
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	color: rgba(255, 255, 255, 0.78);
	max-width: 700px;
	line-height: 1.75;
	margin: 0;
}

/* Breadcrumb */
.dr-breadcrumb ol {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.dr-breadcrumb li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.52);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.dr-breadcrumb li::after {
	content: '/';
	color: rgba(255, 255, 255, 0.25);
}

.dr-breadcrumb li:last-child::after {
	display: none;
}

.dr-breadcrumb li[aria-current="page"] {
	color: var(--color-orange);
}

.dr-breadcrumb a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.18s ease;
}

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

/* Eyebrow label */
.dr-eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-green);
	margin-bottom: 0.6rem;
}

/* =============================================
   CHI SIAMO – INTRO / MISSIONE
   ============================================= */
.dr-about-intro {
	padding: 5rem 1.5rem;
	background-color: var(--color-white);
	overflow-x: hidden;
}

.dr-about-intro__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.dr-about-intro__text h2 {
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	font-weight: 800;
	color: var(--color-navy);
	line-height: 1.2;
	margin: 0.25rem 0 1.25rem;
}

.dr-about-intro__text p {
	font-size: 0.97rem;
	color: #4a5568;
	line-height: 1.8;
	margin: 0 0 1rem;
}

/* Card stack visiva */
.dr-about-intro__visual {
	display: flex;
	justify-content: center;
}

.dr-about-intro__card-stack {
	position: relative;
	width: 100%;
	max-width: 360px;
}

.dr-about-visual-card {
	border-radius: 16px;
	padding: 1.75rem;
	font-family: var(--font-primary);
}

.dr-about-visual-card--back {
	background: var(--color-navy);
	color: var(--color-white);
	display: flex;
	align-items: center;
	gap: 1rem;
	font-weight: 700;
	font-size: 0.95rem;
	position: absolute;
	top: -20px;
	right: -20px;
	left: 20px;
	z-index: 0;
	opacity: 0.7;
}

.dr-about-visual-card--back .dr-about-visual-card__icon svg {
	width: 36px;
	height: 36px;
}

.dr-about-visual-card--front {
	background: var(--color-white);
	border: 1.5px solid #e4eaf5;
	box-shadow: 0 16px 48px rgba(27, 45, 107, 0.12);
	position: relative;
	z-index: 1;
	margin-top: 20px;
}

.dr-about-visual-card--front hr {
	border: none;
	border-top: 1px solid #e4eaf5;
	margin: 1.1rem 0;
}

.dr-about-visual-card__stat strong {
	display: block;
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--color-navy);
	line-height: 1;
	margin-bottom: 0.3rem;
}

.dr-about-visual-card__stat span {
	font-size: 0.82rem;
	color: #718096;
	font-weight: 500;
}

.dr-about-visual-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.dr-about-visual-card__list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.87rem;
	color: #4a5568;
	font-weight: 500;
}

/* =============================================
   CHI SIAMO – NUMERI
   ============================================= */
.dr-about-numbers {
	background: linear-gradient(
		140deg,
		var(--color-navy) 0%,
		var(--color-navy-dark) 100%
	);
	padding: 4rem 1.5rem;
}

.dr-about-numbers__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.dr-about-numbers__item {
	text-align: center;
	padding: 1.5rem 1rem;
	border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.dr-about-numbers__item:last-child {
	border-right: none;
}

.dr-about-numbers__value {
	display: block;
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 800;
	color: var(--color-orange);
	line-height: 1;
	margin-bottom: 0.5rem;
}

.dr-about-numbers__plus,
.dr-about-numbers__pct {
	font-size: 0.7em;
	vertical-align: super;
}

.dr-about-numbers__label {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.62);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	line-height: 1.4;
}

/* =============================================
   CHI SIAMO – VALORI
   ============================================= */
.dr-about-values {
	padding: 5rem 1.5rem;
	background-color: var(--color-light-bg);
}

.dr-about-values__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.dr-about-value-card {
	background-color: var(--color-white);
	border-radius: 14px;
	padding: 2.25rem 2rem;
	border: 1.5px solid #e4eaf5;
	position: relative;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dr-about-value-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(27, 45, 107, 0.10);
}

.dr-about-value-card__icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background-color: #eef2ff;
	color: var(--color-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.dr-about-value-card__icon svg {
	width: 28px;
	height: 28px;
}

.dr-about-value-card h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-navy);
	margin: 0 0 0.75rem;
}

.dr-about-value-card p {
	font-size: 0.92rem;
	color: #4a5568;
	line-height: 1.72;
	margin: 0;
}

.dr-about-value-card__accent {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(
		90deg,
		var(--color-green) 0%,
		var(--color-navy)  100%
	);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.dr-about-value-card:hover .dr-about-value-card__accent {
	transform: scaleX(1);
}

/* =============================================
   CHI SIAMO – COME FUNZIONA (passi)
   ============================================= */
.dr-about-how {
	padding: 5rem 1.5rem;
	background-color: var(--color-white);
}

.dr-about-how__grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 4rem;
	align-items: center;
}

/* Visual con step dots */
.dr-about-how__steps-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	height: 320px;
	justify-content: space-between;
}

.dr-about-how__connector {
	position: absolute;
	top: 26px;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background: linear-gradient(
		to bottom,
		var(--color-green),
		var(--color-navy)
	);
	z-index: 0;
}

.dr-about-how__step-dot {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.dr-about-how__step-dot--1 { background-color: var(--color-green); }
.dr-about-how__step-dot--2 { background-color: #1a5fa8; }
.dr-about-how__step-dot--3 { background-color: var(--color-navy); }
.dr-about-how__step-dot--4 { background-color: var(--color-navy-dark); }

/* Content steps */
.dr-about-how__content h2 {
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	font-weight: 800;
	color: var(--color-navy);
	margin: 0.25rem 0 1.75rem;
	line-height: 1.2;
}

.dr-about-how__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	counter-reset: steps;
}

.dr-about-how__step {
	display: flex;
	align-items: flex-start;
	gap: 1.1rem;
}

.dr-about-how__step-num {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--color-white);
	background-color: var(--color-navy);
	border-radius: 6px;
	padding: 0.3rem 0.5rem;
	letter-spacing: 0.05em;
	flex-shrink: 0;
	margin-top: 2px;
	min-width: 32px;
	text-align: center;
	line-height: 1.4;
}

.dr-about-how__step strong {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-navy);
	margin-bottom: 0.3rem;
}

.dr-about-how__step p {
	font-size: 0.9rem;
	color: #4a5568;
	line-height: 1.65;
	margin: 0;
}

/* =============================================
   CHI SIAMO – TEAM
   ============================================= */
.dr-about-team {
	padding: 5rem 1.5rem;
	background-color: var(--color-light-bg);
}

.dr-about-team__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.dr-team-card {
	background-color: var(--color-white);
	border-radius: 14px;
	border: 1.5px solid #e4eaf5;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dr-team-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(27, 45, 107, 0.10);
}

.dr-team-card__avatar {
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dr-team-card__avatar span {
	font-size: 2.2rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.90);
	letter-spacing: 0.05em;
}

.dr-team-card__body {
	padding: 1.5rem;
}

.dr-team-card__name {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--color-navy);
	margin: 0 0 0.25rem;
}

.dr-team-card__role {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-green);
	margin-bottom: 0.85rem;
}

.dr-team-card__bio {
	font-size: 0.88rem;
	color: #4a5568;
	line-height: 1.65;
	margin: 0;
}

.dr-about-team__note {
	text-align: center;
	font-size: 0.9rem;
	color: #718096;
	margin: 0;
}

.dr-about-team__note a {
	color: var(--color-navy);
	font-weight: 600;
}

.dr-about-team__note a:hover {
	color: var(--color-green);
}

/* =============================================
   CHI SIAMO – RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
	.dr-about-intro__grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.dr-about-intro__card-stack {
		max-width: 100%;
	}

	.dr-about-how__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.dr-about-how__steps-visual {
		flex-direction: row;
		height: auto;
		justify-content: center;
		gap: 0;
	}

	.dr-about-how__connector {
		top: 50%;
		bottom: auto;
		left: 26px;
		right: 26px;
		width: auto;
		height: 2px;
		transform: translateY(-50%);
	}

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

	.dr-about-numbers__item:nth-child(2) {
		border-right: none;
	}

	.dr-about-values__grid {
		grid-template-columns: 1fr 1fr;
	}

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

@media (max-width: 640px) {
	.dr-page-hero {
		padding: 3rem 1.25rem 2.5rem;
	}

	.dr-about-intro__card-stack {
		display: none;
	}

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

	.dr-about-numbers__item {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	}

	.dr-about-numbers__item:nth-last-child(-n+2) {
		border-bottom: none;
	}

	.dr-about-values__grid {
		grid-template-columns: 1fr;
	}

	.dr-about-how__steps-visual {
		display: none;
	}

	.dr-about-how__grid {
		grid-template-columns: 1fr;
	}

	.dr-about-team__grid {
		grid-template-columns: 1fr;
	}
}

/* =============================================
   SERVICES NAV – barra di navigazione rapida
   ============================================= */
.dr-services-nav {
	background-color: var(--color-white);
	border-bottom: 1px solid #e4eaf5;
	position: sticky;
	top: 72px; /* altezza .dr-header */
	z-index: 90;
	box-shadow: 0 2px 8px rgba(27, 45, 107, 0.06);
}

.dr-services-nav .dr-container {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.dr-services-nav .dr-container::-webkit-scrollbar {
	display: none;
}

.dr-services-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.6rem 0;
	white-space: nowrap;
}

.dr-services-nav__link {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #718096;
	text-decoration: none;
	padding: 0.45rem 1rem;
	border-radius: 50px;
	border: 1.5px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.dr-services-nav__link:hover {
	color: var(--color-navy);
	border-color: #e4eaf5;
	background-color: var(--color-light-bg);
}

.dr-services-nav__link.is-active {
	color: var(--color-navy);
	border-color: var(--color-navy);
	background-color: transparent;
}

/* =============================================
   SERVICE DETAIL – layout alternato
   ============================================= */
.dr-service-detail {
	padding: 5.5rem 1.5rem;
	background-color: var(--color-white);
	position: relative;
}

.dr-service-detail--alt {
	background-color: var(--color-light-bg);
}

/* Onda di transizione tra sezioni bianche e colorato */
.dr-service-detail__wave {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	line-height: 0;
	pointer-events: none;
}

.dr-service-detail__wave svg {
	width: 100%;
	height: 60px;
}

/* Griglia 2 colonne testo + visual */
.dr-service-detail__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

/* Versione invertita: visual a sinistra, testo a destra */
.dr-service-detail__grid--reverse {
	direction: rtl;
}

.dr-service-detail__grid--reverse > * {
	direction: ltr;
}

/* ── Lato testo ────────────────────────────────── */
.dr-service-detail__content {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.dr-service-detail__title {
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	font-weight: 800;
	color: var(--color-navy);
	line-height: 1.2;
	margin: 0;
}

.dr-service-detail__lead {
	font-size: 0.97rem;
	color: #4a5568;
	line-height: 1.82;
	margin: 0;
}

/* Lista benefici */
.dr-service-detail__benefits {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.dr-service-detail__benefit {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.92rem;
	color: #2d3748;
	font-weight: 500;
	line-height: 1.5;
}

.dr-service-detail__benefit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: rgba(39, 168, 96, 0.12);
	color: var(--color-green);
	flex-shrink: 0;
	margin-top: 1px;
}

.dr-service-detail__actions {
	margin-top: 0.5rem;
}

/* ── Lato visual ───────────────────────────────── */
.dr-service-detail__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.dr-service-detail__icon-block {
	width: 100%;
	max-width: 400px;
	aspect-ratio: 1 / 1;
	border-radius: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: visible;
}

/* Colori per ogni servizio */
.dr-service-detail__icon-block--energy   { background: linear-gradient(135deg, #fff7e6 0%, #ffecc0 100%); }
.dr-service-detail__icon-block--insurance { background: linear-gradient(135deg, #eef2ff 0%, #dce6ff 100%); }
.dr-service-detail__icon-block--bank     { background: linear-gradient(135deg, #eef2ff 0%, #c7d2fe 100%); }
.dr-service-detail__icon-block--mortgage { background: linear-gradient(135deg, #e8f4ff 0%, #bfdbfe 100%); }
.dr-service-detail__icon-block--planning { background: linear-gradient(135deg, #f0fdf6 0%, #bbf7d0 100%); }
.dr-service-detail__icon-block--home     { background: linear-gradient(135deg, #f0fdf6 0%, #a7f3d0 100%); }

/* Colore icona per variante */
.dr-service-detail__icon-block--energy   .dr-service-detail__icon-wrap { color: #d97706; }
.dr-service-detail__icon-block--insurance .dr-service-detail__icon-wrap { color: var(--color-navy); }
.dr-service-detail__icon-block--bank     .dr-service-detail__icon-wrap { color: var(--color-navy-dark); }
.dr-service-detail__icon-block--mortgage .dr-service-detail__icon-wrap { color: #1a5fa8; }
.dr-service-detail__icon-block--planning .dr-service-detail__icon-wrap { color: #15803d; }
.dr-service-detail__icon-block--home     .dr-service-detail__icon-wrap { color: #15803d; }

.dr-service-detail__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.90;
}

/* Badge statistico sovrapposto */
.dr-service-detail__stat-badge {
	position: absolute;
	bottom: -20px;
	right: -20px;
	background-color: var(--color-white);
	border: 1.5px solid #e4eaf5;
	border-radius: 14px;
	padding: 1.1rem 1.4rem;
	box-shadow: 0 10px 32px rgba(27, 45, 107, 0.13);
	min-width: 150px;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.dr-service-detail__stat-num {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--color-navy);
	line-height: 1;
	display: block;
}

.dr-service-detail__stat-desc {
	font-size: 0.78rem;
	color: #718096;
	font-weight: 500;
	line-height: 1.4;
	max-width: 140px;
	display: block;
}

/* =============================================
   SERVIZI – RESPONSIVE (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {

	.dr-service-detail {
		padding: 4rem 1.5rem;
	}

	.dr-service-detail__grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	/* Ripristina direzione per layout invertiti */
	.dr-service-detail__grid--reverse {
		direction: ltr;
	}

	/* Visual sopra il testo su tablet quando invertito */
	.dr-service-detail__grid--reverse .dr-service-detail__visual {
		order: -1;
	}

	.dr-service-detail__icon-block {
		max-width: 320px;
		aspect-ratio: 4 / 3;
	}

	.dr-service-detail__stat-badge {
		bottom: -16px;
		right: -8px;
	}

	.dr-services-nav {
		top: 0;
		position: relative;
	}
}

/* =============================================
   SERVIZI – RESPONSIVE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {

	.dr-service-detail {
		padding: 3.5rem 1.25rem;
	}

	.dr-service-detail__grid {
		gap: 2.5rem;
	}

	.dr-service-detail__icon-block {
		max-width: 100%;
		aspect-ratio: 3 / 2;
		border-radius: 18px;
	}

	.dr-service-detail__icon-block svg {
		width: 72px;
		height: 72px;
	}

	.dr-service-detail__stat-badge {
		bottom: -14px;
		right: 0;
		padding: 0.8rem 1rem;
		min-width: auto;
	}

	.dr-service-detail__stat-num {
		font-size: 1.4rem;
	}

	.dr-service-detail__title {
		font-size: 1.45rem;
	}

	.dr-service-detail__wave {
		display: none;
	}
}

/* =============================================
   CONTATTI – sezione principale
   ============================================= */
.dr-contact-section {
	padding: 5rem 1.5rem;
	background-color: var(--color-white);
}

.dr-contact-layout {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 4rem;
	align-items: start;
}

/* ── Wrapper form ──────────────────────────── */
.dr-contact-form-wrap__title {
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	font-weight: 800;
	color: var(--color-navy);
	margin: 0 0 0.4rem;
}

.dr-contact-form-wrap__sub {
	font-size: 0.93rem;
	color: #718096;
	line-height: 1.65;
	margin: 0 0 1.75rem;
}

/* ── Notice successo / errore ──────────────── */
.dr-contact-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1.1rem 1.25rem;
	border-radius: 10px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	line-height: 1.6;
}

.dr-contact-notice--success {
	background-color: #f0fdf6;
	border: 1.5px solid #86efac;
	color: #166534;
}

.dr-contact-notice--error {
	background-color: #fef2f2;
	border: 1.5px solid #fca5a5;
	color: #991b1b;
}

.dr-contact-notice__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-top: 1px;
}

.dr-contact-notice strong {
	display: block;
	font-weight: 700;
	margin-bottom: 0.2rem;
}

.dr-contact-notice p {
	margin: 0;
}

/* ── Form fields ───────────────────────────── */
.dr-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.dr-contact-form__row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.dr-contact-form__group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.dr-contact-form__label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--color-navy);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.dr-contact-form__label abbr {
	text-decoration: none;
	color: #e53e3e;
	font-size: 1em;
}

.dr-contact-form__optional {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #a0aec0;
	font-size: 0.9em;
}

.dr-contact-form__input,
.dr-contact-form__textarea {
	font-family: var(--font-primary);
	font-size: 0.95rem;
	color: var(--color-navy-dark);
	background-color: var(--color-light-bg);
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.dr-contact-form__input::placeholder,
.dr-contact-form__textarea::placeholder {
	color: #a0aec0;
}

.dr-contact-form__input:focus,
.dr-contact-form__textarea:focus {
	outline: none;
	border-color: var(--color-navy);
	background-color: var(--color-white);
	box-shadow: 0 0 0 3px rgba(27, 45, 107, 0.10);
}

.dr-contact-form__input:invalid:not(:placeholder-shown),
.dr-contact-form__textarea:invalid:not(:placeholder-shown) {
	border-color: #fc8181;
}

.dr-contact-form__textarea {
	resize: vertical;
	min-height: 130px;
}

/* Checkbox privacy */
.dr-contact-form__group--checkbox {
	margin-top: 0.25rem;
}

.dr-contact-form__checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
}

.dr-contact-form__checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.dr-contact-form__checkbox-custom {
	width: 20px;
	height: 20px;
	border: 2px solid #cbd5e0;
	border-radius: 5px;
	background-color: var(--color-light-bg);
	flex-shrink: 0;
	margin-top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.18s ease, background-color 0.18s ease;
	position: relative;
}

.dr-contact-form__checkbox:checked + .dr-contact-form__checkbox-custom {
	background-color: var(--color-green);
	border-color: var(--color-green);
}

.dr-contact-form__checkbox:checked + .dr-contact-form__checkbox-custom::after {
	content: '';
	display: block;
	width: 10px;
	height: 6px;
	border-left: 2px solid white;
	border-bottom: 2px solid white;
	transform: rotate(-45deg) translate(1px, -1px);
}

.dr-contact-form__checkbox:focus + .dr-contact-form__checkbox-custom {
	box-shadow: 0 0 0 3px rgba(39, 168, 96, 0.25);
}

.dr-contact-form__checkbox-text {
	font-size: 0.88rem;
	color: #4a5568;
	line-height: 1.55;
}

.dr-contact-form__checkbox-text a {
	color: var(--color-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(27, 45, 107, 0.3);
}

.dr-contact-form__checkbox-text a:hover {
	color: var(--color-green);
	text-decoration-color: var(--color-green);
}

.dr-contact-form__checkbox-text abbr {
	text-decoration: none;
	color: #e53e3e;
	margin-left: 2px;
}

/* Submit row */
.dr-contact-form__submit {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.dr-contact-form__required-note {
	font-size: 0.78rem;
	color: #a0aec0;
	margin: 0;
}

.dr-contact-form__required-note abbr {
	text-decoration: none;
	color: #e53e3e;
}

/* ── Colonna info ──────────────────────────── */
.dr-contact-info {
	background-color: var(--color-light-bg);
	border-radius: 16px;
	padding: 2rem;
	border: 1.5px solid #e4eaf5;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.dr-contact-info__title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--color-navy);
	margin: 0 0 1.5rem;
}

.dr-contact-info__list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.dr-contact-info__item {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid #e4eaf5;
}

.dr-contact-info__item:last-child {
	border-bottom: none;
}

.dr-contact-info__icon-wrap {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dr-contact-info__icon-wrap--green  { background-color: rgba(39,168,96,.12);  color: var(--color-green); }
.dr-contact-info__icon-wrap--navy   { background-color: rgba(27,45,107,.10);  color: var(--color-navy); }
.dr-contact-info__icon-wrap--orange { background-color: rgba(245,166,35,.12); color: #c57a00; }

.dr-contact-info__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.dr-contact-info__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: #a0aec0;
}

.dr-contact-info__value {
	font-size: 0.97rem;
	font-weight: 600;
	color: var(--color-navy-dark);
	line-height: 1.4;
}

.dr-contact-info__value--link {
	color: var(--color-navy);
	text-decoration: none;
	transition: color 0.18s ease;
}

.dr-contact-info__value--link:hover {
	color: var(--color-green);
}

.dr-contact-info__note {
	font-size: 0.78rem;
	color: #a0aec0;
	font-weight: 400;
	margin-top: 0.1rem;
}

/* Zone servite nel pannello info */
.dr-contact-zones {
	background-color: var(--color-white);
	border-radius: 10px;
	padding: 1.1rem 1.25rem;
	border: 1.5px solid #e4eaf5;
	margin-bottom: 1.5rem;
}

.dr-contact-zones__title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--color-navy);
	margin: 0 0 0.85rem;
}

.dr-contact-zones__list {
	list-style: none;
	margin: 0 0 0.6rem;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 0.75rem;
}

.dr-contact-zones__item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	color: #4a5568;
	font-weight: 500;
}

.dr-contact-zones__item small {
	color: #a0aec0;
	font-size: 0.78rem;
}

.dr-contact-zones__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--color-green);
	flex-shrink: 0;
}

.dr-contact-zones__note {
	font-size: 0.78rem;
	color: #a0aec0;
	margin: 0;
	line-height: 1.5;
}

/* CTA rapida nel pannello info */
.dr-contact-info__quick-cta {
	border-top: 1px solid #e4eaf5;
	padding-top: 1.5rem;
	margin-top: auto;
}

.dr-contact-info__quick-cta > p {
	font-size: 0.88rem;
	color: #718096;
	margin: 0 0 0.75rem;
	font-weight: 500;
}

/* =============================================
   MAPPA PLACEHOLDER
   ============================================= */
.dr-contact-map {
	background-color: var(--color-light-bg);
	padding: 4.5rem 1.5rem;
}

.dr-contact-map .dr-section-header {
	margin-bottom: 2.5rem;
}

.dr-contact-map__placeholder {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(
		140deg,
		var(--color-navy-dark) 0%,
		var(--color-navy)      100%
	);
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1200px;
	margin: 0 auto;
}

/* Griglia di sfondo decorativa */
.dr-contact-map__grid-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 48px 48px;
	pointer-events: none;
}

.dr-contact-map__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 3rem 2rem;
	text-align: center;
}

/* Silhouette Puglia */
.dr-contact-map__visual {
	color: var(--color-white);
	opacity: 0.18;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	pointer-events: none;
}

/* Pin città */
.dr-contact-map__pins {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 1.5rem;
}

.dr-contact-map__pin {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.dr-contact-map__pin-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--color-green);
	box-shadow: 0 0 0 3px rgba(39,168,96,.3);
	flex-shrink: 0;
	animation: dr-ping 2.5s ease-in-out infinite;
}

.dr-contact-map__pin--2 .dr-contact-map__pin-dot { animation-delay: .4s; }
.dr-contact-map__pin--3 .dr-contact-map__pin-dot { animation-delay: .8s; }
.dr-contact-map__pin--4 .dr-contact-map__pin-dot { animation-delay: 1.2s; }

@keyframes dr-ping {
	0%, 100% { box-shadow: 0 0 0 3px rgba(39,168,96,.3); }
	50%       { box-shadow: 0 0 0 7px rgba(39,168,96,.1); }
}

.dr-contact-map__pin-label {
	font-size: 0.88rem;
	font-weight: 700;
	color: rgba(255,255,255,.88);
	letter-spacing: 0.02em;
}

/* Label zona */
.dr-contact-map__label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background-color: rgba(255,255,255,.10);
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 50px;
	padding: 0.65rem 1.25rem;
	color: var(--color-white);
}

.dr-contact-map__label > div {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.dr-contact-map__label strong {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--color-white);
	line-height: 1.3;
}

.dr-contact-map__label span {
	font-size: 0.75rem;
	color: rgba(255,255,255,.62);
}

/* Link Google Maps */
.dr-contact-map__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--color-orange);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.18s ease;
}

.dr-contact-map__cta:hover {
	color: #ffd97d;
}

/* =============================================
   CONTATTI – RESPONSIVE (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {

	.dr-contact-layout {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.dr-contact-info {
		/* info panel va SOPRA il form su tablet */
		order: -1;
	}

	.dr-contact-map__placeholder {
		min-height: 320px;
	}
}

/* =============================================
   CONTATTI – RESPONSIVE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {

	.dr-contact-section {
		padding: 3.5rem 1.25rem;
	}

	.dr-contact-form__row--2col {
		grid-template-columns: 1fr;
	}

	.dr-contact-form__submit {
		flex-direction: column;
		align-items: flex-start;
	}

	.dr-contact-form__submit .dr-btn {
		width: 100%;
		justify-content: center;
	}

	.dr-contact-info {
		order: 0;
		padding: 1.5rem;
	}

	.dr-contact-zones__list {
		grid-template-columns: 1fr;
	}

	.dr-contact-map {
		padding: 3rem 1.25rem;
	}

	.dr-contact-map__placeholder {
		min-height: 280px;
		border-radius: 14px;
	}

	.dr-contact-map__inner {
		padding: 2rem 1.25rem;
	}

	.dr-contact-map__pins {
		gap: 0.75rem 1rem;
	}

	.dr-contact-map__label {
		flex-direction: column;
		text-align: center;
		border-radius: 12px;
		padding: 0.9rem 1rem;
	}

	.dr-contact-map__label > div {
		text-align: center;
	}
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.dr-login-page {
	min-height: 100vh;
	background: linear-gradient(
		140deg,
		var(--color-navy-dark) 0%,
		var(--color-navy)      60%,
		#1e3a8a                100%
	);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
	position: relative;
	overflow: hidden;
}

.dr-login-bg-deco {
	position: absolute;
	top: -120px; right: -120px;
	width: 500px; height: 500px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(39,168,96,.10) 0%, transparent 65%);
	pointer-events: none;
}

.dr-login-card {
	background: var(--color-white);
	border-radius: 20px;
	padding: 2.5rem 2.25rem;
	width: 100%;
	max-width: 420px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
	position: relative;
	z-index: 1;
}

/* Barra colorata superiore */
.dr-login-card__deco {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--color-green) 0%, var(--color-navy) 100%);
	border-radius: 20px 20px 0 0;
}

/* Logo */
.dr-login-card__logo {
	text-align: center;
	margin-bottom: 1.75rem;
}

.dr-login-card__logo-link {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
}

.dr-login-card__logo-name {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--color-navy);
	font-family: var(--font-primary);
}

/* Header */
.dr-login-card__header {
	text-align: center;
	margin-bottom: 1.75rem;
}

.dr-login-card__header .dr-eyebrow {
	color: var(--color-green);
}

.dr-login-card__title {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--color-navy);
	margin: .35rem 0 .5rem;
	line-height: 1.2;
}

.dr-login-card__sub {
	font-size: .87rem;
	color: #718096;
	margin: 0;
	line-height: 1.55;
}

/* Notices */
.dr-login-notice {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .85rem 1rem;
	border-radius: 8px;
	font-size: .87rem;
	font-weight: 500;
	margin-bottom: 1.25rem;
	line-height: 1.5;
}

.dr-login-notice--error {
	background: #fef2f2;
	border: 1.5px solid #fca5a5;
	color: #991b1b;
}

.dr-login-notice--info {
	background: #f0fdf6;
	border: 1.5px solid #86efac;
	color: #166534;
}

/* Form */
.dr-login-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

/* Password wrapper */
.dr-login-form__pwd-wrap {
	position: relative;
}

.dr-login-form__pwd-wrap .dr-contact-form__input {
	padding-right: 2.8rem;
}

.dr-login-form__pwd-toggle {
	position: absolute;
	right: .7rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #a0aec0;
	padding: .3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color .18s ease;
	line-height: 0;
}

.dr-login-form__pwd-toggle:hover {
	color: var(--color-navy);
}

/* Meta row */
.dr-login-form__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	flex-wrap: wrap;
}

.dr-login-form__remember {
	display: flex;
	align-items: center;
	gap: .45rem;
	cursor: pointer;
	font-size: .85rem;
	color: #4a5568;
	font-weight: 500;
	font-family: var(--font-primary);
}

.dr-login-form__remember input[type="checkbox"] {
	width: 16px; height: 16px;
	accent-color: var(--color-green);
	flex-shrink: 0;
}

.dr-login-form__forgot {
	font-size: .82rem;
	color: var(--color-navy);
	font-weight: 600;
	text-decoration: none;
	transition: color .18s ease;
}

.dr-login-form__forgot:hover {
	color: var(--color-green);
}

/* Card footer */
.dr-login-card__footer {
	text-align: center;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e4eaf5;
}

.dr-login-card__footer a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .85rem;
	color: #718096;
	font-weight: 500;
	text-decoration: none;
	transition: color .18s ease;
	font-family: var(--font-primary);
}

.dr-login-card__footer a:hover {
	color: var(--color-navy);
}

/* =============================================
   DASHBOARD – LAYOUT GENERALE
   ============================================= */
.dr-dashboard-layout {
	display: flex;
	min-height: 100vh;
	font-family: var(--font-primary);
}

/* Sidebar */
.dr-dashboard-sidebar {
	width: 260px;
	background-color: var(--color-navy-dark);
	color: var(--color-white);
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0; left: 0;
	height: 100vh;
	overflow-y: auto;
	z-index: 200;
	transition: transform .3s ease;
}

.dr-dashboard-sidebar__logo {
	padding: 1.25rem;
	border-bottom: 1px solid rgba(255,255,255,.08);
	flex-shrink: 0;
}

.dr-dashboard-sidebar__logo a {
	display: flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
}

.dr-dashboard-sidebar__logo-name {
	font-size: .95rem;
	font-weight: 800;
	color: var(--color-white);
	line-height: 1.2;
}

/* Nav sidebar */
.dr-dashboard-nav {
	flex: 1;
	padding: .75rem 0;
	overflow-y: auto;
}

.dr-dashboard-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dr-dashboard-nav__item a {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .65rem 1.25rem;
	color: rgba(255,255,255,.58);
	font-size: .87rem;
	font-weight: 500;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease;
	line-height: 1.3;
}

.dr-dashboard-nav__item a:hover {
	color: var(--color-white);
	background-color: rgba(255,255,255,.06);
}

.dr-dashboard-nav__item.is-active > a {
	color: var(--color-white);
	border-left-color: var(--color-green);
	background-color: rgba(255,255,255,.09);
}

.dr-dashboard-nav__item.is-active > a svg {
	color: var(--color-green);
}

.dr-dashboard-nav__item a svg {
	width: 16px; height: 16px;
	flex-shrink: 0;
}

/* User info bottom sidebar */
.dr-dashboard-sidebar__user {
	padding: 1rem 1.25rem;
	border-top: 1px solid rgba(255,255,255,.08);
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-shrink: 0;
}

.dr-dashboard-user-avatar {
	width: 34px; height: 34px;
	border-radius: 50%;
	background-color: var(--color-green);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .88rem;
	font-weight: 800;
	flex-shrink: 0;
}

.dr-dashboard-user-avatar--consulente { background-color: #1a5fa8; }
.dr-dashboard-user-avatar--fornitore  { background-color: #d97706; }

.dr-dashboard-sidebar__user-info {
	min-width: 0;
	flex: 1;
}

.dr-dashboard-sidebar__user-name {
	display: block;
	font-size: .87rem;
	font-weight: 700;
	color: var(--color-white);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dr-dashboard-sidebar__user-role {
	display: block;
	font-size: .68rem;
	color: rgba(255,255,255,.40);
	text-transform: uppercase;
	letter-spacing: .07em;
	margin-top: .1rem;
}

/* Dashboard body */
.dr-dashboard-body {
	flex: 1;
	margin-left: 260px;
	background-color: var(--color-light-bg);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	transition: margin-left .3s ease;
}

/* Menu a scomparsa su desktop (apri/chiudi con l'hamburger) */
.dr-dashboard-layout.is-collapsed .dr-dashboard-sidebar { transform: translateX(-100%); }
.dr-dashboard-layout.is-collapsed .dr-dashboard-body { margin-left: 0; }

/* Topbar */
.dr-dashboard-topbar {
	background-color: var(--color-white);
	border-bottom: 1px solid #e4eaf5;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.5rem;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 4px rgba(27,45,107,.06);
}

.dr-dashboard-topbar__left,
.dr-dashboard-topbar__right {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.dr-dashboard-topbar__title {
	font-size: .88rem;
	font-weight: 700;
	color: var(--color-navy);
}

.dr-dashboard-topbar__greeting {
	font-size: .88rem;
	color: #718096;
	font-weight: 500;
}

.dr-dashboard-topbar__logout {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .85rem;
	font-weight: 600;
	color: #718096;
	text-decoration: none;
	transition: color .18s ease;
	white-space: nowrap;
}

.dr-dashboard-topbar__logout:hover {
	color: #e53e3e;
}

/* Hamburger toggle (apri/chiudi menu — desktop e mobile) */
.dr-dashboard-menu-toggle {
	display: flex;
	background: none;
	border: 1.5px solid #e4eaf5;
	border-radius: 6px;
	width: 36px; height: 36px;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 0;
	flex-shrink: 0;
}

.dr-dashboard-menu-toggle span {
	display: block;
	width: 16px; height: 1.5px;
	background-color: #4a5568;
	border-radius: 2px;
}

/* Welcome banner per ruolo */
.dr-dashboard-welcome {
	position: relative;
	overflow: hidden;
	padding: 2.5rem 2rem;
}

.dr-dashboard-welcome--cliente   { background: linear-gradient(135deg, #219653 0%, #166534 100%); }
.dr-dashboard-welcome--consulente { background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%); }
.dr-dashboard-welcome--fornitore  { background: linear-gradient(135deg, #d97706 0%, #92400e 100%); }

.dr-dashboard-welcome::before {
	content: '';
	position: absolute;
	top: -50px; right: -50px;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
	pointer-events: none;
}

.dr-dashboard-welcome__inner {
	position: relative;
	z-index: 1;
}

.dr-dashboard-welcome__inner h1 {
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 800;
	color: var(--color-white);
	margin: .35rem 0 .5rem;
	line-height: 1.2;
}

.dr-dashboard-welcome__inner p {
	font-size: .93rem;
	color: rgba(255,255,255,.78);
	margin: 0;
	max-width: 580px;
	line-height: 1.65;
}

/* Role badge */
.dr-role-badge {
	display: inline-block;
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	padding: .3rem .85rem;
	border-radius: 50px;
	margin-bottom: .6rem;
	border: 1px solid rgba(255,255,255,.3);
	background: rgba(255,255,255,.18);
	color: var(--color-white);
}

/* Dashboard main area */
.dr-dashboard-main {
	padding: 2rem;
	flex: 1;
}

.dr-dashboard-section-title {
	font-size: .93rem;
	font-weight: 700;
	color: var(--color-navy);
	margin: 0 0 1.1rem;
	display: flex;
	align-items: center;
	gap: .5rem;
	text-transform: uppercase;
	letter-spacing: .05em;
}

/* Stat cards */
.dr-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 2rem;
}

.dr-dashboard-stat-card {
	background-color: var(--color-white);
	border-radius: 12px;
	padding: 1.25rem;
	border: 1.5px solid #e4eaf5;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.dr-dashboard-stat-card__icon {
	width: 36px; height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dr-dashboard-stat-card__icon svg { width: 16px; height: 16px; }

.dr-dashboard-stat-card__icon--green  { background: rgba(39,168,96,.12); color: var(--color-green); }
.dr-dashboard-stat-card__icon--navy   { background: rgba(27,45,107,.10); color: var(--color-navy); }
.dr-dashboard-stat-card__icon--orange { background: rgba(217,119,6,.12); color: #d97706; }
.dr-dashboard-stat-card__icon--blue   { background: rgba(26,95,168,.12); color: #1a5fa8; }

.dr-dashboard-stat-card__value {
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--color-navy);
	line-height: 1;
}

.dr-dashboard-stat-card__label {
	font-size: .72rem;
	color: #718096;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	line-height: 1.35;
}

/* Placeholder grid */
.dr-dashboard-placeholder-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.1rem;
}

.dr-dashboard-placeholder-card {
	background-color: var(--color-white);
	border-radius: 12px;
	padding: 1.5rem;
	border: 1.5px dashed #e4eaf5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 150px;
	gap: .65rem;
}

.dr-dashboard-placeholder-card__icon {
	width: 44px; height: 44px;
	border-radius: 10px;
	background-color: var(--color-light-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #a0aec0;
}

.dr-dashboard-placeholder-card__icon svg { width: 20px; height: 20px; }

.dr-dashboard-placeholder-card h3 {
	font-size: .93rem;
	font-weight: 700;
	color: var(--color-navy);
	margin: 0;
}

.dr-dashboard-placeholder-card p {
	font-size: .8rem;
	color: #a0aec0;
	margin: 0;
	line-height: 1.5;
}

.dr-dashboard-soon-badge {
	display: inline-block;
	font-size: .66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #a0aec0;
	background-color: var(--color-light-bg);
	padding: .2rem .7rem;
	border-radius: 50px;
	border: 1px solid #e4eaf5;
}

/* CTA box nel dashboard cliente */
.dr-dashboard-cta-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	background-color: var(--color-white);
	border-radius: 12px;
	padding: 1.35rem 1.5rem;
	border: 1.5px solid #e4eaf5;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.dr-dashboard-cta-box__text strong {
	display: block;
	font-size: .97rem;
	font-weight: 700;
	color: var(--color-navy);
	margin-bottom: .2rem;
}

.dr-dashboard-cta-box__text p {
	font-size: .85rem;
	color: #718096;
	margin: 0;
}

/* Overlay mobile */
.dr-dashboard-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 180;
}

.dr-dashboard-overlay.is-visible {
	display: block;
}

/* =============================================
   DASHBOARD – RESPONSIVE (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {

	.dr-dashboard-sidebar {
		transform: translateX(-100%);
	}

	.dr-dashboard-sidebar.is-open {
		transform: translateX(0);
	}

	.dr-dashboard-body {
		margin-left: 0;
	}

	.dr-dashboard-menu-toggle {
		display: flex;
	}

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

/* =============================================
   DASHBOARD – RESPONSIVE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {

	.dr-dashboard-welcome {
		padding: 1.75rem 1.25rem;
	}

	.dr-dashboard-main {
		padding: 1.25rem;
	}

	.dr-dashboard-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: .75rem;
	}

	.dr-dashboard-placeholder-grid {
		grid-template-columns: 1fr;
	}

	.dr-dashboard-topbar {
		padding: 0 1rem;
	}

	.dr-dashboard-topbar__greeting {
		display: none;
	}

	.dr-login-card {
		padding: 2rem 1.5rem;
	}
}
