/* Coup de coeur – stili aggiuntivi per le pagine collegate al database (IT e EN).
   Non sostituisce nulla di all.css: usa le stesse variabili colore del sito. */

/* ---------- Sezioni (oggetti-arredo-complementi) ---------- */
.cdc-sezioni > [class*="col-"] { margin-bottom: 24px; }
.cdc-sezione { display: block; text-decoration: none; color: inherit; outline-offset: 4px; }
.cdc-sezione .st-sezione-sfondo {
	position: relative; overflow: hidden; isolation: isolate;
	background-image: none; background-color: transparent; margin-bottom: 0;
}
.cdc-sezione-bg {
	position: absolute; inset: 0; z-index: -2;
	background-size: cover; background-position: center;
	transform: scale(1.001);
	transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.cdc-sezione .st-sezione-sfondo::before {           /* velo scuro come nell'originale (nero al 30%) */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(0,0,0,.30);
	transition: background-color .6s ease;
}
.cdc-sezione .st-sezione-sfondo::after {            /* cornice sottile che compare al passaggio */
	content: ""; position: absolute; inset: 22px; pointer-events: none;
	border: 1px solid rgba(240,239,235,.8);
	opacity: 0; transform: scale(1.04);
	transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.cdc-sezione .st-sezione-sfondo p { margin: 0; padding: 0 48px; text-align: center; }
.cdc-sezione .st-titolo-sezione { transition: letter-spacing .6s ease; }
.cdc-sezione:hover .cdc-sezione-bg, .cdc-sezione:focus-visible .cdc-sezione-bg { transform: scale(1.07); }
.cdc-sezione:hover .st-sezione-sfondo::before, .cdc-sezione:focus-visible .st-sezione-sfondo::before { background-color: rgba(45,44,77,.50); }
.cdc-sezione:hover .st-sezione-sfondo::after, .cdc-sezione:focus-visible .st-sezione-sfondo::after { opacity: 1; transform: scale(1); }
.cdc-sezione:hover .st-titolo-sezione, .cdc-sezione:focus-visible .st-titolo-sezione {
	letter-spacing: .04em;
	text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: .22em;
}

/* ---------- Riquadri oggetto (elenco-oggetti e "potrebbe anche interessarti") ---------- */
.cdc-oggetti > .cdc-ogg { margin-bottom: 50px; }
.cdc-ogg-img {
	display: block; position: relative; overflow: hidden;
	aspect-ratio: 1 / 1; width: 100%;
	background: var(--swatch-var-3003);
}
.cdc-ogg-img img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center;
	transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.cdc-ogg-img::after {
	content: ""; position: absolute; inset: 16px; pointer-events: none;
	border: 1px solid rgba(255,255,255,.85);
	opacity: 0; transform: scale(1.04);
	transition: opacity .5s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.cdc-ogg:hover .cdc-ogg-img img { transform: scale(1.06); filter: brightness(.9); }
.cdc-ogg:hover .cdc-ogg-img::after { opacity: 1; transform: scale(1); }
.cdc-ogg:hover .st-link-oggetto { color: var(--swatch-var-4253) !important; }
.cdc-ogg-small .cdc-ogg-img::after { inset: 12px; }
.cdc-nofoto {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-family: "Montserrat-Regular", sans-serif; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--swatch-var-7196); text-align: center; padding: 20px;
}

/* ---------- Paginazione ---------- */
.cdc-pagine { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; margin: 10px 0 60px; }
.cdc-pagine a, .cdc-pagine span { font-family: "Montserrat-Regular", sans-serif; font-size: 1.05em; padding: 4px 2px; }
.cdc-pagine .is-current { color: var(--swatch-var-4253); border-bottom: 1px solid var(--swatch-var-4253); }

/* ---------- Galleria (oggetto) ---------- */
.cdc-gal { max-width: 960px; margin: 0 auto 10px; }
.cdc-gal-stage { position: relative; padding: 0 76px; }
.cdc-gal-main {
	display: block; position: relative; width: 100%;
	aspect-ratio: 3 / 2;
	background: var(--swatch-var-3003); cursor: zoom-in; overflow: hidden;
}
.cdc-gal-main img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center;      /* come "background cover": riquadro sempre uguale, la foto intera si vede nell'ingrandimento */
	transition: opacity .35s ease;
}
.cdc-gal-main.is-loading img { opacity: 0; }
.cdc-gal-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 60px; height: 110px; padding: 0; margin: 0;
	background: none; border: 0; cursor: pointer;
	color: var(--swatch-var-7196); transition: color .25s ease, transform .25s ease;
}
.cdc-gal-arrow svg { width: 26px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cdc-gal-arrow:hover, .cdc-gal-arrow:focus-visible { color: var(--swatch-var-622); }
.cdc-gal-prev { left: 0; }
.cdc-gal-next { right: 0; }
.cdc-gal-prev:hover { transform: translate(-4px, -50%); }
.cdc-gal-next:hover { transform: translate(4px, -50%); }
.cdc-gal-thumbs { position: relative; overflow-x: auto; overflow-y: hidden; padding: 14px 0 4px; scrollbar-width: thin; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.cdc-gal-thumbs-in { display: flex; gap: 14px; width: max-content; margin: 0 auto; padding: 0 2px; }
.cdc-gal-thumb {
	flex: 0 0 auto; display: block; width: 96px; height: 96px; padding: 3px;
	border: 1px solid var(--swatch-var-7446); background: #fff;
	opacity: .65; transition: opacity .25s ease, border-color .25s ease;
}
.cdc-gal-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cdc-gal-thumb:hover { opacity: 1; }
.cdc-gal-thumb.is-active { opacity: 1; border-color: var(--swatch-var-7196); }
.cdc-gal-vuota { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; background: var(--swatch-var-3003); }

@media (max-width: 767px) {
	.cdc-gal-stage { padding: 0; }
	.cdc-gal-arrow { width: 44px; height: 72px; background: rgba(255,255,255,.75); }
	.cdc-gal-arrow svg { width: 18px; height: 36px; }
	.cdc-gal-prev { left: 0; } .cdc-gal-next { right: 0; }
	.cdc-gal-prev:hover, .cdc-gal-next:hover { transform: translateY(-50%); }
	.cdc-gal-thumb { width: 68px; height: 68px; padding: 2px; }
	.cdc-gal-thumbs-in { gap: 10px; }
	.cdc-sezione .st-sezione-sfondo p { padding: 0 30px; }
}

/* ---------- Ingrandimento a schermo intero ---------- */
.cdc-lb {
	position: fixed; inset: 0; z-index: 3000; display: none;
	align-items: center; justify-content: center;
	background: rgba(255,255,255,.55);                /* la pagina resta visibile, sfocata */
	-webkit-backdrop-filter: blur(16px) saturate(1.1);
	backdrop-filter: blur(16px) saturate(1.1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .cdc-lb { background: rgba(255,255,255,.94); } }
.cdc-lb.is-open { display: flex; }
.cdc-lb img { max-width: calc(100vw - 180px); max-height: calc(100vh - 130px); margin-bottom: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.22); object-fit: contain; transition: opacity .3s ease; }
.cdc-lb.is-loading img { opacity: 0; }
.cdc-lb button { position: absolute; background: none; border: 0; padding: 0; cursor: pointer; color: var(--swatch-var-7196); transition: color .2s ease; }
.cdc-lb button:hover, .cdc-lb button:focus-visible { color: var(--swatch-var-622); }
.cdc-lb .cdc-gal-arrow { color: var(--swatch-var-7196); }
.cdc-lb .cdc-gal-prev { left: 20px; } .cdc-lb .cdc-gal-next { right: 20px; }
.cdc-lb-close { top: 18px; right: 22px; width: 44px; height: 44px; }
.cdc-lb-close svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.cdc-lb-count { position: absolute; bottom: 18px; margin: 0; line-height: 1.4; left: 0; right: 0; text-align: center; color: var(--swatch-var-622); font-family: "Montserrat-Regular", sans-serif; font-size: .9rem; letter-spacing: .1em; }
@media (max-width: 767px) {
	.cdc-lb img { max-width: 100vw; max-height: calc(100vh - 140px); }
	.cdc-lb .cdc-gal-arrow { background: none; top: auto; bottom: 6px; transform: none; }
	.cdc-lb .cdc-gal-prev { left: 10px; } .cdc-lb .cdc-gal-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.cdc-sezione-bg, .cdc-ogg-img img, .cdc-sezione .st-sezione-sfondo::after, .cdc-ogg-img::after, .cdc-gal-main img, .cdc-lb img { transition: none !important; }
}

/* ---------- Testo dell'oggetto (HTML dal pannello: p, ul, ol, li, a) ---------- */
/* stesso aspetto dei paragrafi del sito (i <p> usano CormorantGaramond-Medium, colore 622) */
.st-testo ul, .st-testo ol, .st-testo li { font-family: "CormorantGaramond-Medium"; font-size: inherit; color: var(--swatch-var-622); line-height: inherit; }
.st-testo ul, .st-testo ol { margin-bottom: 1rem; padding-left: 0; list-style-position: inside; }
.st-testo p:last-child { margin-bottom: 0; }

/* ---------- Form "Richiedi informazioni" ---------- */
.cdc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }   /* campo trappola antispam */
.cdc-form { position: relative; }
.cdc-form .invalid-feedback { font-family: "Montserrat-Regular", sans-serif; font-size: .85rem; }
.cdc-form .form-check .invalid-feedback { margin-left: 0; }
.cdc-form .st-button:disabled { opacity: .7; cursor: wait; }
.cdc-form-esito .alert { font-family: "Montserrat-Regular", sans-serif; margin-top: 4px; border-radius: 0; }
.cdc-form-esito .alert-success { background: #fff; border-color: var(--swatch-var-622); color: var(--swatch-var-622); }
.cdc-form-esito .alert-danger { background: #fff; border-color: #b3261e; color: #b3261e; }
