/* ID */
#divHelp { visibility: hidden; position: fixed; width: 350px; height: 250px; background: #fff; z-index: 10000; right: 20px; bottom: 20px; border: 1px solid var(--w-primary-deep); border-radius: 10px; padding: 20px; }
#helpTitle { border-bottom: 2px solid var(--w-primary-deep) }
#helpClose {  visibility: hidden; position: fixed; right: 30px; bottom: 240px }
#helpImage { visibility: hidden; position: fixed; z-index: 15; right: 340px; bottom: 240px; width: 60px; height: 60px; border: 1px solid var(--w-primary-deep); border-radius: 50%; background: #fff; padding: 5px; }
#helpText { padding: 5px; font-size: 12px }
#onirica { color:red; }

/* CLASS */
.button-border.button-pr { border-color: var(--w-primary-deep); color: var(--w-primary-deep) }
.button.button-border:not(.button-fill):hover.button-pr { background-color: var(--w-primary-deep);}
.button.button-border.button-pr.button-fill::before { background-color: var(--w-primary-deep); }
.g-recaptcha div { margin: auto!important }
.cert_title {font-weight: 400!important; font-size: 26px!important }
.cert_subtitle { font-weight:400!important; font-size:16px!important }
.dashboardIcon { border-radius: 5px; margin: auto; margin-bottom: 10px; border: 3px solid var(--w-primary-deep); height: 250px; width: 250px; padding: 30px; background: #fff; box-shadow: 5px 5px rgba(0,0,0,0.2) }
.dashboardIcon:hover{ margin-left: 5px; margin-top: 5px;  margin-bottom: 5px; box-shadow: none; }
.divider_title { font-size: 45px; margin: 0px; text-shadow: 1px 3px 5px #333;  }
.error input, .error textarea, .error select, .error div.well { border: 1px solid #CB0C0F!important;}
.error div.checkbox{ color: #CB0C0F!important;}
.error #consentLabel { color: #CB0C0F!important}
.fbox_dashboard { border: 3px solid var(--w-primary-deep); padding:5px; border-radius: 10px }
.fbox_dashboard:hover{ box-shadow: inset 0px 0px 7px rgba(94, 110, 81, 0.5)}
.h1_title { color: var(--w-primary-deep); text-align: center; font-size :30px }
.icon_pr { border: 2px solid #4F001D; padding: 3px }
.icon_amber { border: 2px solid #EB9C4D; padding: 3px }
.icon_red { border: 2px solid #C02942; padding: 3px }
.icon_green { border: 2px solid #59ba41; padding: 3px }
.icon_grey { border: 2px solid #777777; padding: 3px }
.icon_info { width: 15px; height: 15px }
.icon_info img { width: 15px; height: 15px }
.icon_counter { width: 64px; height: 64px }
.img_profile { height: 100px; margin-top: 10px; margin-bottom: 10px; margin-left: auto; margin-right: auto; display: block;}
.img_shadow { box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.3) }
.lbl_cert:hover { color: var(--w-primary-deep);}
.modalTitle { padding: 30px; padding-bottom: 15px }
.modalTitle h4 { margin: 0px }
.modalBody { padding: 15px 30px }
.modalFooter { padding: 30px }
.modalFooter .button-mini { width:100px }
.modal_stripe { border-bottom: 1px solid var(--w-primary-deep); background: var(--w-primary-deep); height: 20px }
.modal-content form { margin-bottom: 0px }
.notice { width: 400px; position: fixed; z-index: 20000; right: 5px; top: 5px; }
.obj_cover { object-fit: cover!important }
.table.b_none th, .table.b_none td { border: 0px !important }
.table_colored { vertical-align: middle; margin-bottom: 0px }
.table_colored th, .table_colored td, .table_colored select, .table_colored input { font-size: 15px }
.table_colored thead th, .table_colored tfoot th { background-color: var(--w-primary-deep)!important; color: #fff!important; text-transform: uppercase }
.td_action { min-width: 50px; width: 50px }
.td_action img, .icon_action { min-width: 30px; min-height: 30px; width: 30px; height: 30px; cursor:pointer }

.chart-samples ul { list-style: none; }
.chart-samples h4 { text-transform: uppercase; margin-bottom: 20px; font-weight: 400; }
.chart-samples li { font-size: 16px; line-height: 2.2; font-weight: 600; }
.chart-samples li a:not(:hover) { color: #AAA; }
.rpg_post span { color: var(--w-primary-deep) }
.slider_title { position: absolute; width: 100%; text-align: center; color: white; text-shadow: 1px 3px 5px #333; z-index:1000; top:40%; font-size: 100px; margin: 0px; font-family:Scharnhorst; font-weight: 100; }
.table_cookie p { margin-bottom: 0px!important }


/* FONT */
@font-face {
    font-family: "Scharnhorst";
    src: url(../fonts/Scharnhorst.ttf);
}

.dh_font{
    font-family: Scharnhorst;
    font-weight: 100;
}

/* MEDIA */
@media (min-width: 1201px) and (max-width: 1500px){
    .slider_title { font-size: 80px; }
}
@media (min-width: 992px) and (max-width: 1200px){
    .slider_title { font-size: 75px; }
}
@media (min-width: 1200px){
    #privateAreaHeaderRow { display: block }
}
@media (min-width: 768px) and (max-width: 992px){
    .slider_title { font-size: 60px; }
}
@media (max-width: 767px){
    .slider_title { font-size: 55px; }
    .footer_left{ text-align: center }
    .footer_right{ text-align: center }
}
@media (max-width: 660px){
    .slider_title { top:35%; font-size: 40px; }
}
@media (max-width: 1200px){
    .footer_left{ text-align: center }
    .footer_right{ text-align: center }
}
@media (max-width: 991px){
    .txt_a_c_sm { text-align: center!important }
    .dark .sticky-header #header-wrap, .sticky-header.dark #header-wrap { background: var(--w-primary-deep) }
    #logo img{ height: 60px }
}

/* Grid filter attivo */
.grid-filter.style-3 li.activeFilter a {
    color: var(--w-primary-deep) !important;
    border-color: var(--w-primary-deep) !important;
}

/* Magnific Popup — frecce FontAwesome */
.mfp-arrow::before,
.mfp-arrow::after { display: none; }
.mfp-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    top: 50%; transform: translateY(-50%);
    margin-top: 0; opacity: .85;
    background: rgba(0,0,0,.38); border-radius: 50%;
}
.mfp-arrow-left  { left: 16px; }
.mfp-arrow-right { right: 16px; }
.mfp-arrow-left::before, .mfp-arrow-right::before {
    display: block;
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 1.3rem; color: #fff;
    border: none; width: auto; height: auto; margin: 0;
}
.mfp-arrow-left::before  { content: "\f053"; }
.mfp-arrow-right::before { content: "\f054"; }
.mfp-arrow:hover { opacity: 1; background: rgba(0,0,0,.6); }

/* Report gallery */
.report-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.report-gallery__thumb { aspect-ratio: 1; overflow: hidden; border-radius: 8px; cursor: pointer; background: #f3f4f6; }
.report-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; display: block; }
.report-gallery__thumb:hover img { transform: scale(1.06); }

/* Lightbox */
#reportLightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 9999; align-items: center; justify-content: center; }
#reportLightbox.active { display: flex; }
#lbImg { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 4px; display: block; }
#lbClose { position: absolute; top: 14px; right: 20px; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; opacity: .8; transition: opacity .15s; }
#lbClose:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.8rem; cursor: pointer; padding: 10px 16px; user-select: none; opacity: .7; transition: opacity .15s; line-height: 1; }
.lb-nav:hover { opacity: 1; }
#lbPrev { left: 8px; }
#lbNext { right: 8px; }
#lbCounter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .85rem; white-space: nowrap; }
.modal .btn { border-radius: 0 !important; }

/* Portfolio gallery thumbnails */
.cog-arr { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; cursor: pointer; z-index: 2; transition: background .2s, opacity .2s; opacity: 0; }
.cog-gallery-thumb:hover .cog-arr { opacity: 1; }
.cog-arr:hover { background: rgba(0,0,0,.72); }
.cog-arr-l { left: 8px; }
.cog-arr-r { right: 8px; }
.cog-photo-counter { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.5); color: #fff; font-size: .7rem; padding: 2px 7px; border-radius: 10px; z-index: 2; }

/* ============================================================ */
/* Pulsanti fixed (standard RPG)                                */
/* ============================================================ */
#whatsappBtn { position:fixed; bottom:16px; right: 16px; width: 38px; height: 38px; z-index: 10000 }
#gotoTop { --cnvs-gotoTop-position-boxed-right: 16px; --cnvs-gotoTop-position-boxed-bottom: 70px; }

.powered_by { font-size:11px!important; height:22px; padding:4px; background:white; border-radius:3px; color:rgba(0,0,0,0.65)!important; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 1px 1px -1px rgba(0,0,0,0.15); font-weight:400; text-decoration: none !important; border-bottom: none !important; display: inline-flex !important; align-items: center; }
.powered_by:hover { background-color: #ddd; color: rgba(0,0,0,0.65) !important; opacity: 1; }
.powered_by img { height:19px; margin-right:5px; vertical-align: middle; }

/* ============================================================ */
/* Symfony Profiler toolbar fix                                  */
/* ============================================================ */
[id^="sfwdt"].sf-toolbar-closed .sf-toolbar-clearer { display: none !important; }
[id^="sfwdt"].sf-toolbar-closed .sf-toolbarreset .sf-toolbar-block { display: none !important; }
[id^="sfwdt"].sf-toolbar-closed .sf-toolbarreset .sf-toolbar-toggle-button { top: -37px !important; border-top: 2px solid #262626 !important; }
[id^="sfwdt"].sf-toolbar-opened .sf-toolbar-toggle-button .sf-toolbar-icon-closed { display: none !important; }
[id^="sfwdt"].sf-toolbar-opened .sf-toolbar-toggle-button .sf-toolbar-icon-opened { display: block !important; }
[id^="sfwdt"].sf-toolbar-closed .sf-toolbar-toggle-button .sf-toolbar-icon-closed { display: block !important; }
[id^="sfwdt"].sf-toolbar-closed .sf-toolbar-toggle-button .sf-toolbar-icon-opened { display: none !important; }



/* ================================================================
   DESIGNPUNTOZERO — tema del sito
   Palette del sito storico: inchiostro (#060707 · #1B1A18 · #20211F · #313130),
   sabbia/rame (#D2A37F · #B8866B), grigi caldi (#515252 · #939597 · #C0C0C0 · #DCDCDC · #F8F8F8)
   Font: Noto Serif Display (titoli) + Nunito Sans (testo)
   Struttura: demo Canvas "Solo Architect" (css/solo-architect.css)
   Prefisso classi custom: rpg_
   ================================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
	--dz-ink-deep:  #060707;
	--dz-ink:       #1B1A18;
	--dz-ink-soft:  #20211F;
	--dz-ink-bar:   #121110;   /* barra in fondo: stesso tono del footer, un gradino sotto */
	--dz-line-dark: #313130;
	--dz-sand:      #D2A37F;
	--dz-sand-deep: #B8866B;
	--dz-sand-ink:  #8A5E3F;   /* sabbia scurita: testo/link su fondo chiaro (contrasto AA) */
	--dz-sand-wash: #F2ECE6;   /* sabbia schiarita: sezioni alternate */
	--dz-text:      #313130;
	--dz-muted:     #515252;
	--dz-grey:      #939597;
	--dz-silver:    #C0C0C0;
	--dz-line:      #DCDCDC;
	--dz-paper:     #F8F8F8;
	--dz-white:     #FFFFFF;

	--dz-serif: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
	--dz-sans:  'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--dz-ease:  cubic-bezier(.2, .7, .2, 1);
	--dz-gutter: clamp(1rem, 4vw, 3rem);

	/* Canvas / Bootstrap */
	--cnvs-themecolor: var(--dz-sand);
	--cnvs-themecolor-rgb: 210, 163, 127;
	--cnvs-body-font: var(--dz-sans);
	--cnvs-primary-font: var(--dz-serif);
	--cnvs-secondary-font: var(--dz-serif);
	--bs-body-font-family: var(--dz-sans);
	--w-primary-deep: var(--dz-sand-ink); /* usata dai CSS standard RPG */
}

/* ── BASE ──────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	font-family: var(--dz-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--dz-text);
	background: var(--dz-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--dz-serif); font-weight: 300; color: var(--dz-ink); letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
a:hover { color: var(--dz-sand-ink); }
img { max-width: 100%; }
::selection { background: var(--dz-sand); color: var(--dz-ink-deep); }
:focus-visible { outline: 2px solid var(--dz-sand-deep); outline-offset: 3px; }
#wrapper { background: transparent; overflow: clip; }

.rpg_skip { position: fixed; top: -100px; left: 1rem; z-index: 1000; background: var(--dz-white); color: var(--dz-ink); padding: .75rem 1.25rem; font-weight: 700; }
.rpg_skip:focus { top: 1rem; }

/* ── TIPOGRAFIA ────────────────────────────────────── */
.rpg_kicker {
	display: inline-flex; align-items: center; gap: .75rem;
	font-family: var(--dz-sans); font-size: .75rem; font-weight: 700;
	letter-spacing: .2em; text-transform: uppercase;
	color: var(--dz-sand-ink); margin: 0 0 1.25rem;
}
.rpg_kicker--light { color: var(--dz-sand); }
.rpg_num { font-family: var(--dz-serif); font-size: .95rem; font-weight: 400; letter-spacing: .05em; display: inline-flex; align-items: center; gap: .75rem; }
.rpg_num::after { content: ''; width: 2.5rem; height: 1px; background: currentColor; opacity: .6; }

.rpg_h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; font-weight: 300; margin: 0 0 1.5rem; }
.rpg_h2--sm { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.rpg_h2--caps { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.2; letter-spacing: .03em; }
.rpg_h2--sm.rpg_h2--caps { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.rpg_lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--dz-ink); margin-bottom: 1.25rem; }
.rpg_statement { font-family: var(--dz-serif); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.35; color: var(--dz-ink); margin: 0; text-wrap: balance; }
.rpg_lead--sm { font-size: 1.125rem; line-height: 1.7; color: var(--dz-ink); }

/* ── BOTTONI E LINK ────────────────────────────────── */
.rpg_btn {
	display: inline-flex; align-items: center; gap: .6rem;
	padding: 1rem 1.75rem; margin-top: .75rem;
	font-family: var(--dz-sans); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--dz-white); background: var(--dz-ink); border: 1px solid var(--dz-ink);
	text-decoration: none; transition: background .3s, border-color .3s, color .3s;
}
.rpg_btn:hover { background: var(--dz-sand-deep); border-color: var(--dz-sand-deep); color: var(--dz-white); }
.rpg_btn--light { background: var(--dz-white); border-color: var(--dz-white); color: var(--dz-ink); }
.rpg_btn--light:hover { background: var(--dz-sand); border-color: var(--dz-sand); color: var(--dz-ink-deep); }
.rpg_btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--dz-white); }
.rpg_btn--ghost-light:hover { background: var(--dz-white); border-color: var(--dz-white); color: var(--dz-ink); }

.rpg_link {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--dz-ink); text-decoration: none;
	padding-bottom: .35rem; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: color .3s, background-size .4s var(--dz-ease);
}
.rpg_link::after { content: '\2192'; font-size: 1rem; letter-spacing: 0; transition: transform .3s var(--dz-ease); }
.rpg_link:hover { color: var(--dz-sand-ink); background-size: 40% 1px; }
.rpg_link:hover::after { transform: translateX(4px); }
.rpg_link--back::after { content: none; }

/* ── HEADER ────────────────────────────────────────── */
/* Header: social | logo | hamburger */
.rpg_header {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.rpg_header {
	position: fixed; inset: 0 0 auto; z-index: 400;
	padding: 1.25rem var(--dz-gutter);
	transition: background .4s, padding .4s, transform .45s var(--dz-ease);
}
.rpg_header::before { content: ''; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(6,7,7,.55), transparent); pointer-events: none; transition: opacity .4s; z-index: -1; }
.rpg_header.is-scrolled, .rpg_header:not(.is-over-hero) { background: rgba(27,26,24,.94); padding-block: .6rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.rpg_header.is-scrolled::before, .rpg_header:not(.is-over-hero)::before { opacity: 0; }
.rpg_header.is-hidden { transform: translateY(-100%); }
.rpg_header__social { justify-self: start; display: flex; gap: .5rem; }
.rpg_header__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--dz-white); font-size: 1.1rem; text-decoration: none; transition: background .3s, color .3s; }
.rpg_header__social a:hover { background: rgba(255,255,255,.12); color: var(--dz-sand); }
.rpg_header__logo { display: block; line-height: 0; justify-self: center; }
.rpg_header__logo img { height: clamp(48px, 6vw, 66px); width: auto; transition: height .4s; }
.rpg_header.is-scrolled .rpg_header__logo img { height: 44px; }

/* Hamburger */
.rpg_menu_btn {
	justify-self: end; width: 50px; height: 50px; padding: 0;
	display: grid; place-items: center;
	color: var(--dz-white); background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 50%;
	cursor: pointer; transition: background .3s, border-color .3s, color .3s;
}
.rpg_menu_btn:hover { background: var(--dz-white); color: var(--dz-ink); border-color: var(--dz-white); }
.rpg_menu_btn__icon { position: relative; width: 20px; height: 14px; }
.rpg_menu_btn__icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--dz-ease), top .35s var(--dz-ease), opacity .2s; }
.rpg_menu_btn__icon span:nth-child(1) { top: 0; }
.rpg_menu_btn__icon span:nth-child(2) { top: 6.25px; }
.rpg_menu_btn__icon span:nth-child(3) { top: 12.5px; }
.rpg_menu_btn.is-open .rpg_menu_btn__icon span:nth-child(1) { top: 6.25px; transform: rotate(45deg); }
.rpg_menu_btn.is-open .rpg_menu_btn__icon span:nth-child(2) { opacity: 0; }
.rpg_menu_btn.is-open .rpg_menu_btn__icon span:nth-child(3) { top: 6.25px; transform: rotate(-45deg); }

/* ── MENU A COMPARSA SCHERMO INTERO ────────────────── */
.rpg_menu {
	position: fixed; inset: 0; z-index: 500;
	background: radial-gradient(120% 90% at 100% 0%, rgba(210,163,127,.10), transparent 55%), var(--dz-ink-deep);
	color: var(--dz-silver); overflow-y: auto; overscroll-behavior: contain;
	opacity: 0; clip-path: inset(0 0 100% 0);
	transition: opacity .5s var(--dz-ease), clip-path .7s var(--dz-ease);
}
.rpg_menu[hidden] { display: none; }
.rpg_menu.is-open { opacity: 1; clip-path: inset(0 0 0 0); }

/* La chiusura e' sospesa sopra le colonne, non in una barra: la barra in alto
   rifaceva l'header che invece deve sparire. */
.rpg_menu__close { position: absolute; top: clamp(1rem, 2.5vw, 2rem); right: clamp(1rem, 2.5vw, 2rem); z-index: 2; }

/* Due colonne divise da un filo che corre per tutta l'altezza: il bordo sta
   sulla colonna di destra, cosi' la linea segue il contenuto piu' alto. */
.rpg_menu__body {
	display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	min-height: 100%; width: 100%;
}
.rpg_menu__main {
	display: flex; flex-direction: column; justify-content: center;
	padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}
.rpg_menu__aside {
	display: flex; flex-direction: column; justify-content: center;
	border-left: 1px solid rgba(255,255,255,.12);
	padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
	opacity: 0; transform: translateY(20px);
	transition: opacity .6s .45s, transform .6s .45s var(--dz-ease);
}
.rpg_menu.is-open .rpg_menu__aside { opacity: 1; transform: none; }

/* Il logo e' l'elemento dominante del pannello, come nel resto del sito il
   marchio apre sempre la pagina. */
.rpg_menu__logo { display: block; margin-bottom: clamp(2rem, 5vw, 4rem); }
.rpg_menu__logo img { width: min(560px, 100%); height: auto; }

.rpg_menu__nav .rpg_kicker { display: block; color: var(--dz-grey-mid, #939597); margin-bottom: 1.25rem; }
.rpg_menu__nav ul { list-style: none; margin: 0; padding: 0; }
.rpg_menu__nav li { overflow: hidden; }
/* Voci contenute e ariose, non titoli: il peso visivo ce l'ha il logo.
   La riga sotto compare al passaggio e segna quella corrente. */
.rpg_menu__nav a {
	display: block; padding: .85rem 0 .85rem 1.25rem;
	font-family: var(--dz-sans, inherit); font-size: clamp(1rem, 1.2vw, 1.15rem); font-weight: 400; line-height: 1.3;
	color: var(--dz-white); text-decoration: none;
	border-bottom: 1px solid transparent;
	transform: translateY(110%);
	transition: transform .8s var(--dz-ease), color .3s, border-color .3s, padding-left .3s var(--dz-ease);
	transition-delay: calc(var(--i) * 55ms + 150ms), 0s, 0s, 0s;
}
.rpg_menu.is-open .rpg_menu__nav a { transform: none; }
.rpg_menu__nav a:hover, .rpg_menu__nav a:focus-visible { color: var(--dz-sand); border-bottom-color: rgba(255,255,255,.35); padding-left: 1.6rem; }
.rpg_menu__nav a[aria-current="page"] { color: var(--dz-sand); border-bottom-color: rgba(255,255,255,.35); }

.rpg_menu__block { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.rpg_menu__block:last-child { margin-bottom: 0; }
.rpg_menu__block .rpg_kicker { display: block; color: var(--dz-grey-mid, #939597); margin-bottom: .55rem; }
.rpg_menu__block p { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.6; }

.rpg_menu__social { display: flex; gap: 1rem; font-size: 1.35rem; }
.rpg_menu__social a { display: inline-flex; }

.rpg_menu a:not(.rpg_menu__nav a) { color: var(--dz-white); text-decoration: none; }
.rpg_menu a:not(.rpg_menu__nav a):hover { color: var(--dz-sand); }

/* Sotto i 992px le colonne si impilano e il filo passa sopra i recapiti */
@media (max-width: 991.98px) {
	.rpg_menu__body { grid-template-columns: 1fr; }
	.rpg_menu__main { padding-bottom: 1rem; }
	.rpg_menu__aside { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 2.5rem; }
	.rpg_menu__logo img { width: min(360px, 100%); }
}

.rpg_social { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.rpg_social a { display: inline-flex; align-items: center; gap: .5rem; }
.rpg_social--stack { flex-direction: column; gap: .5rem; }
body.rpg_menu_open { overflow: hidden; }
/* A menu aperto l'header sparisce: il menu ha gia' il suo logo, i social e il
   pulsante di chiusura, e finche' il pannello si apre l'header si vedrebbe
   sotto con un secondo logo e un secondo pulsante. visibility, non solo
   opacity, cosi' non resta cliccabile. */
body.rpg_menu_open .rpg_header { opacity: 0; visibility: hidden; transition: opacity .25s var(--dz-ease), visibility 0s linear .25s; }

/* ── HERO VIDEO ────────────────────────────────────── */
.rpg_hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; justify-content: flex-end;
	color: var(--dz-white); background: var(--dz-ink-deep) url('../../video/hero-poster.webp') center / cover no-repeat;
	overflow: hidden; isolation: isolate;
}
.rpg_hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rpg_hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,7,7,.45) 0%, rgba(6,7,7,.1) 35%, rgba(6,7,7,.35) 60%, rgba(6,7,7,.85) 100%); }
.rpg_hero__title { font-size: clamp(3rem, 8.5vw, 7.75rem); font-weight: 200; line-height: .98; letter-spacing: -.025em; color: var(--dz-white); margin: 0 0 1.5rem; }
.rpg_hero__title em { font-style: italic; color: var(--dz-sand); }
.rpg_hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34ch; color: rgba(255,255,255,.88); margin-bottom: 1.25rem; }
.rpg_hero__actions { display: flex; flex-wrap: wrap; gap: 0 1rem; }
/* Invito a scorrere in fondo alla hero. Il filetto che sfuma nel rame porta
   l'occhio verso il basso; la freccia da sola si perdeva sul video. */
.rpg_hero__scroll {
	position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%); z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: .35rem;
	color: rgba(255,255,255,.85); font-size: 1.3rem; line-height: 1; text-decoration: none;
	transition: color .25s ease;
}
.rpg_hero__scroll::before { content: ""; width: 1px; height: 46px; background: linear-gradient(180deg, rgba(255,255,255,0), var(--dz-sand)); }
.rpg_hero__scroll:hover { color: var(--dz-sand); }
/* L'animazione si ferma per chi ha chiesto meno movimento nelle preferenze
   di sistema: un elemento che pulsa all'infinito da' fastidio a molti. */
@media (prefers-reduced-motion: no-preference) {
	.rpg_hero__scroll { animation: rpg_scroll_cue 2.4s ease-in-out infinite; }
	@keyframes rpg_scroll_cue {
		0%, 100% { transform: translate(-50%, 0); }
		50%      { transform: translate(-50%, 7px); }
	}
}

/* ── SEZIONI ───────────────────────────────────────── */
.rpg_section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.rpg_section--paper { background: var(--dz-paper); }
.rpg_section--white { background: var(--dz-white); }
.rpg_section--sand  { background: var(--dz-sand-wash); }
.rpg_section--ink   { background: var(--dz-ink); color: var(--dz-silver); }
.rpg_section--ink h2, .rpg_section--ink h3 { color: var(--dz-white); }
.rpg_section--ink a:not(.rpg_btn):hover { color: var(--dz-sand); }
.rpg_section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.rpg_section__foot { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }

.rpg_frame { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 5; background: var(--dz-line); }
.rpg_frame--portrait { aspect-ratio: 3 / 4; }
.rpg_frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--dz-ease); }
.rpg_frame:hover img { transform: scale(1.03); }

/* Selected Works (demo) — adattamenti */
.sw-project { overflow: hidden; }
.sw-img-wrap { min-height: 560px; }
.sw-text-inner { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 5rem); max-width: 560px; }
.sw-num { font-family: var(--dz-serif); font-size: 1rem; color: var(--dz-sand-ink); letter-spacing: .08em; }
.sw-desc { color: var(--dz-muted); font-size: 1.0625rem; }
.sw-desc.rpg_lead--sm { color: var(--dz-ink); }
/* Variante compatta (store): immagine più piccola dentro il container, sempre sfalsata */
.sw-project--compact { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sw-project--compact .sw-img-wrap { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
.sw-project--compact .sw-text-inner { padding: 0; max-width: 560px; }
.sw-tags { color: var(--dz-muted); border-top-color: rgba(49,49,48,.15); margin-bottom: 2rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* ── VALORI (home) ─────────────────────────────────── */

/* ── CAROSELLO (scroll-snap nativo) ────────────────── */
.rpg_rail { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.rpg_rail__bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--dz-line); }
.rpg_rail__title { font-family: var(--dz-sans); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dz-muted); margin: 0; }
.rpg_latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }

/* ── CARD ──────────────────────────────────────────── */
.rpg_card { position: relative; display: flex; flex-direction: column; height: 100%; }
.rpg_card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dz-line); margin-bottom: 1.5rem; }
.rpg_card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--dz-ease); }
.rpg_card:hover .rpg_card__media img { transform: scale(1.05); }
.rpg_card__body { display: flex; flex-direction: column; flex: 1; }
.rpg_card__date { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dz-sand-ink); margin-bottom: .75rem; }
.rpg_card__title { font-size: clamp(1.3rem, 1.8vw, 1.5rem); line-height: 1.25; font-weight: 400; margin: 0 0 .85rem; }
.rpg_card__title a { text-decoration: none; color: var(--dz-ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--dz-ease); }
.rpg_card__title a::after { content: ''; position: absolute; inset: 0; }
.rpg_card:hover .rpg_card__title a { background-size: 100% 1px; }
.rpg_card__excerpt { font-size: .95rem; line-height: 1.65; color: var(--dz-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.25rem; }
.rpg_card__cta { margin-top: auto; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dz-ink); display: inline-flex; gap: .5rem; align-items: center; }
.rpg_card__cta i { transition: transform .3s var(--dz-ease); }
.rpg_card:hover .rpg_card__cta { color: var(--dz-sand-ink); }
.rpg_card:hover .rpg_card__cta i { transform: translateX(4px); }
.rpg_card:focus-within { outline: 2px solid var(--dz-sand-deep); outline-offset: 6px; }
.rpg_card:focus-within :focus-visible { outline: none; }

/* ── CITAZIONE "OLTRE IL DESIGN" (Philosophy della demo) ── */
.rpg_quote__inner { max-width: 820px; margin: 0 auto; }
.rpg_quote blockquote { margin: 0; }
.rpg_quote blockquote p { font-family: var(--dz-serif); font-style: italic; font-weight: 200; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; letter-spacing: .02em; color: var(--dz-white); margin-bottom: 1.25rem; }
.rpg_quote blockquote footer { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dz-sand); }
.rpg_quote hr { width: 80px; border: 0; border-top: 1px solid rgba(255,255,255,.25); margin: 0 0 2.5rem; opacity: 1; }
.rpg_quote__text { font-size: 1.125rem; line-height: 1.8; margin-bottom: 2.5rem; }
.rpg_quote__pillars { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.rpg_quote__pillars li { border-top: 1px solid rgba(255,255,255,.35); padding-top: 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dz-white); }

/* ── HEADER PAGINE INTERNE ─────────────────────────── */
.rpg_pagehead { position: relative; min-height: clamp(480px, 74svh, 780px); display: flex; align-items: flex-end; color: var(--dz-white); background: var(--dz-ink-deep); isolation: isolate; overflow: hidden; }
.rpg_pagehead__media { position: absolute; inset: 0; z-index: -2; }
.rpg_pagehead__media img { width: 100%; height: 100%; object-fit: cover; animation: rpg-kenburns 14s var(--dz-ease) both; }
.rpg_pagehead::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,7,7,.5) 0%, rgba(6,7,7,.15) 40%, rgba(6,7,7,.82) 100%); }
.rpg_pagehead__inner { padding-top: 9rem; padding-bottom: clamp(3rem, 7vh, 5rem); }
.rpg_pagehead__title { font-size: clamp(2.4rem, 5.8vw, 5.25rem); font-weight: 200; line-height: 1.02; letter-spacing: -.02em; color: var(--dz-white); max-width: 22ch; margin: 0 0 1.25rem; }
.rpg_pagehead__claim { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; max-width: 48ch; color: rgba(255,255,255,.88); margin: 0; }
@keyframes rpg-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

.rpg_crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 2rem; padding: 0; font-size: .75rem; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.rpg_crumbs li { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpg_crumbs li + li::before { content: '/'; margin: 0 .6rem; opacity: .5; }
.rpg_crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.rpg_crumbs a:hover { color: var(--dz-sand); }

/* ── ELENCHI / GRIGLIE ─────────────────────────────── */
.rpg_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 2.5vw, 2.25rem); list-style: none; margin: 0; padding: 0; }

/* Elenco con filtro laterale (Scelte di design) */
.rpg_filtered { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.rpg_filtered__aside { position: sticky; top: 7rem; }
.rpg_filter__title { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dz-muted); padding-bottom: 1rem; margin: 0; }
.rpg_filter { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dz-line); }
.rpg_filter li { border-bottom: 1px solid var(--dz-line); }
.rpg_filter__btn { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .9rem 0 .9rem 1rem; background: none; border: 0; font-family: var(--dz-sans); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: left; color: var(--dz-muted); cursor: pointer; transition: color .25s; }
.rpg_filter__btn::before { content: ''; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--dz-sand-deep); transform: translateY(-50%); transition: height .3s var(--dz-ease); }
.rpg_filter__btn:hover, .rpg_filter__btn[aria-pressed="true"] { color: var(--dz-ink); }
.rpg_filter__btn:hover::before { height: 38%; }
.rpg_filter__btn[aria-pressed="true"]::before { height: 72%; }
.rpg_filter__btn:focus-visible { outline: 2px solid var(--dz-sand-deep); outline-offset: 2px; }
.rpg_filter__count { font-size: .68rem; font-weight: 600; color: var(--dz-grey); transition: color .25s; }
.rpg_filter__btn:hover .rpg_filter__count, .rpg_filter__btn[aria-pressed="true"] .rpg_filter__count { color: var(--dz-sand-ink); }
.rpg_entries { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.rpg_entries > li[hidden] { display: none; }
.rpg_card--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
.rpg_card--row .rpg_card__media { margin-bottom: 0; }

.rpg_features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; list-style: none; margin: clamp(3.5rem, 7vw, 5.5rem) 0 0; padding: 0; }
.rpg_features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rpg_wide { padding-inline: var(--dz-gutter); }
/* Valori (home): 4 card uguali in riga, testo intero in una finestra */
.rpg_valcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); list-style: none; margin: clamp(3.5rem, 7vw, 5.5rem) 0 0; padding: 0; }
.rpg_valcard { position: relative; cursor: pointer; display: flex; flex-direction: column; padding: clamp(1.75rem, 2.5vw, 2.5rem); background: var(--dz-white); border-top: 2px solid var(--dz-ink); transition: transform .5s var(--dz-ease), box-shadow .5s; }
.rpg_valcard:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(6,7,7,.35); }
.rpg_valcard__num { display: block; font-family: var(--dz-serif); font-size: 2.25rem; font-weight: 200; line-height: 1; color: var(--dz-sand-ink); margin-bottom: 1.5rem; }
.rpg_valcard__title { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.35; font-weight: 400; letter-spacing: .03em; color: var(--dz-ink); margin: 0 0 1rem; min-height: calc(1.35em * 3); }
.rpg_valcard__teaser { font-size: .95rem; line-height: 1.65; color: var(--dz-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rpg_valcard__teaser br { display: none; }
.rpg_valcard__open { all: unset; cursor: pointer; }
.rpg_valcard__open::after { content: ''; position: absolute; inset: 0; }
.rpg_valcard:has(.rpg_valcard__open:focus-visible) { outline: 2px solid var(--dz-sand-deep); outline-offset: 4px; }
.rpg_valcard__open:focus-visible { outline: none; }
.rpg_dialog { width: min(640px, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); padding: clamp(2rem, 5vw, 3.5rem); border: 0; background: var(--dz-paper); color: var(--dz-text); font-size: 1rem; line-height: 1.75; box-shadow: 0 40px 80px -40px rgba(6,7,7,.6); }
.rpg_dialog::backdrop { background: rgba(6,7,7,.72); }
.rpg_dialog[open] { animation: rpg-fade .4s var(--dz-ease); }
.rpg_dialog__title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; font-weight: 400; letter-spacing: .02em; color: var(--dz-ink); margin: 0 0 1.5rem; }
.rpg_dialog p { margin: 0 0 1rem; }
.rpg_dialog__close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--dz-line); border-radius: 50%; background: transparent; color: var(--dz-ink); cursor: pointer; transition: background .3s, color .3s; }
.rpg_dialog__close:hover { background: var(--dz-ink); color: var(--dz-white); }
@keyframes rpg-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 1199.98px) { .rpg_valcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .rpg_valcards { grid-template-columns: 1fr; } .rpg_valcard__title { min-height: 0; } }
.rpg_features li { border-top: 1px solid var(--dz-ink); padding-top: 1.5rem; color: var(--dz-muted); font-size: .95rem; line-height: 1.65; }
.rpg_features__num { display: block; font-family: var(--dz-serif); color: var(--dz-sand-ink); margin-bottom: .5rem; }
.rpg_features strong { display: block; font-family: var(--dz-serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; color: var(--dz-ink); margin-bottom: .5rem; }

/* ── GALLERIE ──────────────────────────────────────── */
.rpg_gallery { display: grid; gap: clamp(.5rem, 1.2vw, 1rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rpg_gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rpg_gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--dz-line); cursor: zoom-in; }
.rpg_gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--dz-ease), opacity .3s; }
.rpg_gallery a:hover img { transform: scale(1.04); }
.rpg_figure a { display: block; cursor: zoom-in; }
.rpg_figure img { width: 100%; height: auto; max-height: 85vh; object-fit: cover; }

/* ── BRAND ─────────────────────────────────────────── */
.rpg_brands + .rpg_brands { margin-top: 3.5rem; }
.rpg_brands__title { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 400; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(49,49,48,.2); }
.rpg_brands__title span { font-family: var(--dz-sans); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dz-muted); }
.rpg_brands__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.rpg_brands__grid li { background: var(--dz-white); aspect-ratio: 1; display: grid; place-items: center; padding: .5rem; }
.rpg_brands__grid img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.rpg_brands__grid li:hover img, .rpg_brands__grid a:focus-visible img { filter: none; opacity: 1; }
.rpg_brands__grid a { display: block; width: 100%; height: 100%; }
.rpg_brands__grid a:focus-visible { outline: 2px solid var(--dz-sand-deep); outline-offset: 4px; }

/* ── CONTENUTO ARTICOLO ────────────────────────────── */
.rpg_prose { max-width: 760px; margin: 0 auto; font-size: 1.125rem; line-height: 1.85; color: var(--dz-text); }
.rpg_prose > * + * { margin-top: 0; }
.rpg_prose p { margin-bottom: 1.5rem; }
.rpg_prose .rpg_lead { font-family: var(--dz-serif); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.45; color: var(--dz-ink); margin-bottom: 2.5rem; }
.rpg_prose h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 400; line-height: 1.2; margin: 3.5rem 0 1rem; }
.rpg_prose h3 { font-size: 1.4rem; font-weight: 400; margin: 2.5rem 0 .75rem; }
.rpg_prose strong { font-weight: 700; color: var(--dz-ink); }
.rpg_prose a { color: var(--dz-sand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rpg_prose a:hover { color: var(--dz-ink); }
.rpg_prose ul, .rpg_prose ol { padding-left: 1.25rem; margin-bottom: 1.5rem; }
.rpg_prose blockquote { border-left: 2px solid var(--dz-sand); padding-left: 1.5rem; font-family: var(--dz-serif); font-style: italic; font-size: 1.35rem; color: var(--dz-ink); margin: 2.5rem 0; }
.rpg_prose .rpg_gallery, .rpg_prose .rpg_figure { width: min(1120px, calc(100vw - 2 * var(--dz-gutter))); margin: 3rem 0 3rem 50%; transform: translateX(-50%); }
.rpg_prose .rpg_figure { width: min(960px, calc(100vw - 2 * var(--dz-gutter))); }
/* Variante a tutta larghezza (Scelte di design): testo in col-12, immagini dentro la colonna */
.rpg_prose--full { max-width: none; margin: 0; }
.rpg_prose--full .rpg_gallery, .rpg_prose--full .rpg_figure { width: 100%; margin: 3rem 0; transform: none; }
.rpg_post_foot.rpg_post_foot--full { max-width: none; }
/* Testata ridotta (solo immagine) e titolo dentro il testo */
.rpg_prose .rpg_post_subtitle { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 300; line-height: 1.4; color: var(--dz-ink); margin: 0 0 1.25rem; }
.rpg_pagehead--compact { min-height: clamp(260px, 40svh, 420px); }
.rpg_post_head { margin-bottom: 2.5rem; }
.rpg_post_head .rpg_post_head__meta { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dz-sand-ink); margin: 0 0 1rem; }
.rpg_post_head__title { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; color: var(--dz-ink); margin: 0; }
/* Articolo precedente / successivo */
.rpg_post_foot.rpg_post_foot--share { justify-content: center; }
.rpg_post_nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--dz-line); }
.rpg_post_nav__link--prev { grid-column: 1; }
.rpg_post_nav__all { grid-column: 2; justify-self: center; }
.rpg_post_nav__all::after { content: none; }
.rpg_post_nav__link { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: var(--dz-ink); }
.rpg_post_nav__link--next { grid-column: 3; text-align: right; align-items: flex-end; }
.rpg_post_nav__label { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dz-sand-ink); }
.rpg_post_nav__label i { transition: transform .3s var(--dz-ease); }
.rpg_post_nav__link--prev:hover .rpg_post_nav__label i { transform: translateX(-4px); }
.rpg_post_nav__link--next:hover .rpg_post_nav__label i { transform: translateX(4px); }
.rpg_post_nav__title { font-family: var(--dz-serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.3; max-width: 36ch; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--dz-ease); }
.rpg_post_nav__link:hover .rpg_post_nav__title { background-size: 100% 1px; }
.rpg_post_nav__link:focus-visible { outline: 2px solid var(--dz-sand-deep); outline-offset: 6px; }
@media (max-width: 575.98px) {
	.rpg_post_nav { grid-template-columns: 1fr; gap: 1.75rem; }
	.rpg_post_nav__link--prev, .rpg_post_nav__link--next, .rpg_post_nav__all { grid-column: 1; }
	.rpg_post_nav__all { order: 3; }
}
/* Galleria a miniature in fondo all'articolo: foto piccole, si ingrandiscono nel lightbox */
.rpg_prose .rpg_gallery--thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--dz-line); }
.rpg_gallery--thumbs a { aspect-ratio: 1; }
@media (max-width: 991.98px) { .rpg_prose .rpg_gallery--thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .rpg_prose .rpg_gallery--thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rpg_post_foot { max-width: 760px; margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid var(--dz-line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.rpg_share { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dz-muted); }
.rpg_share span { margin-right: .5rem; }
.rpg_share a { width: 40px; height: 40px; border: 1px solid var(--dz-line); border-radius: 50%; display: grid; place-items: center; color: var(--dz-ink); text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.rpg_share a:hover { background: var(--dz-ink); border-color: var(--dz-ink); color: var(--dz-white); }

/* ── CTA / VISITA ──────────────────────────────────── */
.rpg_cta__text { font-size: 1.125rem; margin: 0; }
.rpg_visit .rpg_h2 { margin-bottom: 2.5rem; }
.rpg_visit__address { font-style: normal; font-size: 1.05rem; line-height: 1.75; color: var(--dz-white); margin: 0 0 1.5rem; }
.rpg_visit__text { color: var(--dz-silver); line-height: 1.75; margin: 0 0 2rem; }
.rpg_visit__rule { display: block; width: 2.25rem; height: 1px; background: var(--dz-sand); margin-bottom: 1.75rem; }
.rpg_visit .rpg_btn { margin-top: 0; }
.rpg_map { height: 480px; background: var(--dz-ink-soft); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.rpg_map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(.95); }

/* ── FOOTER ────────────────────────────────────────── */
.rpg_footer { background: var(--dz-ink); color: var(--dz-silver); padding-top: clamp(4rem, 8vw, 6rem); font-size: .98rem; }
.rpg_footer > .container { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.rpg_footer .rpg_kicker { color: var(--dz-sand); font-size: .72rem; margin-bottom: 1rem; }
/* Nel footer i link sono sottolineati: su fondo scuro il solo cambio di colore
   non basta a distinguerli dal testo. Restano fuori il logo e i pulsanti tondi
   dei social, dove la sottolineatura taglierebbe l'immagine. */
.rpg_footer a { color: var(--dz-white); text-decoration: underline; text-underline-offset: .18em; }
.rpg_footer a:hover { color: var(--dz-sand); }
.rpg_footer .rpg_footer__logo,
.rpg_footer .powered_by { text-decoration: none; }
.rpg_footer address { font-style: normal; line-height: 1.8; }
/* Recapiti con icona: l'icona sta fuori dal testo e non rientra quando
   l'indirizzo va a capo, cosi' le righe restano incolonnate. */
/* Widget del footer, impianto Canvas: le icone dell'elenco recapiti in sabbia
   e la riga che non rientra quando l'indirizzo va a capo. */
.rpg_footer .widget ul { margin: 0; padding: 0; }
.rpg_footer .widget .list-unstyled li { display: flex; align-items: flex-start; }
.rpg_footer .widget .list-unstyled i { color: var(--dz-sand); flex: 0 0 auto; line-height: 1.8; }
.rpg_footer .widget h4 { color: var(--dz-white); }
/* La ragione sociale sta su una riga sola: sotto i 576px la colonna e' troppo
   stretta e li' si lascia andare a capo, altrimenti sborderebbe. */
.rpg_contacts__name { white-space: nowrap; }
@media (max-width: 575.98px) { .rpg_contacts__name { white-space: normal; } }
.rpg_footer .rpg_link { color: var(--dz-white); margin-top: .75rem; }
/* Il logo cresce con la colonna invece di stare a una misura fissa: 240px sul
   desktop, ma non oltre la larghezza disponibile, cosi' non sborda quando la
   colonna si stringe. */
.rpg_footer__logo img { width: min(240px, 100%); height: auto; margin-bottom: 1.5rem; }
/* Il nero pieno spezzava la pagina in due: qui il fondo e' lo stesso del
   footer appena abbassato, cosi' la barra si stacca senza sembrare un'altra
   sezione. Il tema la imporrebbe nera, da cui gli !important. */
.rpg_bottombar { background: var(--dz-ink-bar) !important; padding: 14px 0 !important; font-size: .85rem; }
.rpg_bottombar__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem; }
.rpg_bottombar__links a { color: var(--dz-silver); }
.m_none { margin-left: 0; margin-right: 0; }
#gotoTop { background-color: var(--dz-ink); }
#gotoTop:hover { background-color: var(--dz-sand-deep); }

/* ── ANIMAZIONI DI COMPARSA ────────────────────────── */
.rpg-js .rpg_reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--dz-ease), transform 1s var(--dz-ease); transition-delay: var(--d, 0ms); }
.rpg-js .rpg_reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.rpg-js .rpg_reveal { opacity: 1; transform: none; }
	.rpg_hero__video { display: none; }
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1199.98px) {
	.rpg_features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
	.rpg_menu__body { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; padding-top: 1rem; }
	.rpg_menu__aside { border-left: 0; border-top: 1px solid var(--dz-line-dark); padding: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 2rem; }
	.rpg_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rpg_filtered { grid-template-columns: 1fr; }
	.rpg_filtered__aside { position: static; }
	.rpg_filter { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; border-top: 0; }
	.rpg_filter li { border-bottom: 0; }
	.rpg_filter__btn { width: auto; padding: .4rem 0; gap: .4rem; border-bottom: 1px solid transparent; }
	.rpg_filter__btn::before { content: none; }
	.rpg_filter__btn[aria-pressed="true"] { border-bottom-color: var(--dz-sand-deep); }
	.rpg_features--3 { grid-template-columns: 1fr; }
	.sw-img-wrap { min-height: 360px; }
	.rpg_map { height: 360px; }
}
@media (max-width: 767.98px) {
	.container { --bs-gutter-x: 2.5rem; }
	body { font-size: 1rem; }
	.rpg_header__social { gap: 0; }
	.rpg_header__social a { width: 38px; height: 38px; }
	.rpg_menu_btn { width: 44px; height: 44px; }
	.rpg_header__logo img { height: 46px; }
	.rpg_grid, .rpg_features, .rpg_card--row { grid-template-columns: 1fr; }
	.rpg_card--row .rpg_card__media { margin-bottom: .25rem; }
	.rpg_gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rpg_quote__pillars li { font-size: .62rem; letter-spacing: .12em; }
	.rpg_brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
	.rpg_crumbs li { max-width: 22ch; }
	.rpg_prose { font-size: 1.0625rem; }
}

/* Griglie "ultimi 4" della home: 4 colonne solo su xl, 2 da sm a lg, 1 su xs */
@media (max-width: 1199.98px) { .rpg_latest { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; } }
@media (max-width: 575.98px) { .rpg_latest { grid-template-columns: 1fr; } }
/* sm/md: le foto verticali a tutta larghezza diventerebbero altissime */
@media (min-width: 576px) and (max-width: 991.98px) { .rpg_frame, .rpg_frame--portrait { aspect-ratio: 4 / 3; } }
.rpg_footer .rpg_link { white-space: nowrap; }

/* Eventi in home: 3 colonne; sotto lg ogni evento diventa una riga (foto a sinistra, testo a destra) */
.rpg_latest.rpg_latest--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 991.98px) {
	.rpg_latest.rpg_latest--3 { grid-template-columns: 1fr; gap: 2.5rem; }
	.rpg_latest--3 .rpg_card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; align-items: start; }
	.rpg_latest--3 .rpg_card__media { margin-bottom: 0; }
}
@media (max-width: 575.98px) {
	.rpg_latest--3 .rpg_card { display: flex; gap: 0; }
	.rpg_latest--3 .rpg_card__media { margin-bottom: 1.5rem; }
}

/* ── Articolo con layout blog + sidebar (prova: post_blog.html.twig) ── */
.rpg_blog .rpg_prose { max-width: none; margin: 0; }
.rpg_blog .entry-title h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.15; color: var(--dz-ink); }
.rpg_blog .sidebar .posts-sm .entry-image img { width: 72px; height: 72px; object-fit: cover; border-radius: 0; }
/* categorie in verticale nella sidebar, con quella dell'articolo aperto evidenziata */
.rpg_catlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dz-line); }
.rpg_catlist li { border-bottom: 1px solid var(--dz-line); }
.rpg_catlist__link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0 .8rem 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dz-muted); text-decoration: none; transition: color .25s; }
.rpg_catlist__link::before { content: ''; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--dz-sand-deep); transform: translateY(-50%); transition: height .3s var(--dz-ease); }
.rpg_catlist__link:hover, .rpg_catlist__link.is-active { color: var(--dz-ink); }
.rpg_catlist__link:hover::before { height: 38%; }
.rpg_catlist__link.is-active::before { height: 72%; }
.rpg_catlist__count { font-size: .68rem; font-weight: 600; color: var(--dz-grey); transition: color .25s; }
.rpg_catlist__link:hover .rpg_catlist__count, .rpg_catlist__link.is-active .rpg_catlist__count { color: var(--dz-sand-ink); }
/* condividi nella sidebar: icone più grandi; il pulsante Instagram è un <button> */
.rpg_blog .rpg_share { flex-wrap: wrap; gap: .6rem; }
.rpg_blog .rpg_share a, .rpg_blog .rpg_share button { width: 44px; height: 44px; font-size: 1rem; }
.rpg_share a, .rpg_share button { letter-spacing: 0; }
.rpg_share a i, .rpg_share button i { display: block; line-height: 1; }
.rpg_share a i::before, .rpg_share button i::before { display: block; vertical-align: 0; line-height: 1; }
.rpg_share button { border: 1px solid var(--dz-line); border-radius: 50%; display: grid; place-items: center; background: none; color: var(--dz-ink); padding: 0; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.rpg_share button:hover, .rpg_share button.is-done { background: var(--dz-ink); border-color: var(--dz-ink); color: var(--dz-white); }
.rpg_share button:focus-visible { outline: 2px solid var(--dz-sand-deep); outline-offset: 2px; }
.rpg_blog .sidebar .entry-meta li { white-space: nowrap; }
