/* =========================================================
   Raccuja Dive – Landing affitti brevi
   Palette: maiolica siciliana (blu cobalto + ocra) su pietra
   Type: Bodoni Moda (display) / Karla (testo)
   ========================================================= */

.raccuja-dive-page {
	--rd-blu: #1b4b7e;
	--rd-blu-scuro: #12314f;
	--rd-ocra: #d9a227;
	--rd-verde: #7e9481;
	--rd-inchiostro: #16283c;
	--rd-pietra: #f2f0e9;
	--rd-carta: #fbfaf7;
	--rd-bordo: rgba(22, 40, 60, 0.14);

	--rd-display: "Bodoni Moda", "Didot", Georgia, "Times New Roman", serif;
	--rd-body: "Karla", "Helvetica Neue", Arial, sans-serif;

	--rd-wrap: 1180px;
	--rd-gutter: clamp(20px, 5vw, 56px);
	--rd-section-y: clamp(64px, 8vw, 120px);
}

/* Reset dei contenitori del tema su questa pagina --------------------- */
.raccuja-dive-page #qodef-page-outer,
.raccuja-dive-page #qodef-page-inner {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

.raccuja-dive-page .rd {
	background: var(--rd-carta);
	color: var(--rd-inchiostro);
	font-family: var(--rd-body);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: clip;
}

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

.rd img {
	display: block;
	max-width: 100%;
	height: auto;
}

.rd :focus-visible {
	outline: 3px solid var(--rd-ocra);
	outline-offset: 3px;
}

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

.rd-section {
	padding-block: var(--rd-section-y);
}

/* Tipografia ---------------------------------------------------------- */
.rd-eyebrow {
	margin: 0 0 18px;
	font-family: var(--rd-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rd-blu);
}

.rd-eyebrow--light {
	color: var(--rd-ocra);
}

.rd-h2 {
	margin: 0 0 28px;
	font-family: var(--rd-display);
	font-weight: 400;
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.18;
	letter-spacing: -0.01em;
	color: var(--rd-inchiostro);
}

.rd-h2--center {
	max-width: 22ch;
	margin-inline: auto;
	margin-bottom: 48px;
	text-align: center;
}

.rd-h2--light {
	color: var(--rd-carta);
}

/* Bottoni -------------------------------------------------------------- */
.rd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--rd-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.rd-btn:hover,
.rd-btn:focus {
	text-decoration: none;
	transform: translateY(-2px);
}

.rd-btn--solid {
	background: var(--rd-blu);
	border-color: var(--rd-blu);
	color: #fff;
}

.rd-btn--solid:hover,
.rd-btn--solid:focus {
	background: var(--rd-blu-scuro);
	border-color: var(--rd-blu-scuro);
	color: #fff;
}

.rd-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: #fff;
}

.rd-btn--ghost:hover,
.rd-btn--ghost:focus {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.rd-btn--wa {
	background: var(--rd-verde);
	border-color: var(--rd-verde);
	color: #fff;
}

.rd-btn--wa:hover,
.rd-btn--wa:focus {
	background: #6b8270;
	border-color: #6b8270;
	color: #fff;
}

.rd-btn--block {
	width: 100%;
}

/* HERO ----------------------------------------------------------------- */
.rd-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(86vh, 780px);
	padding: clamp(48px, 8vw, 96px) 0 0;
	background: var(--rd-blu-scuro);
	overflow: hidden;
}

.rd-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.rd-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 55%;
}

.rd-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(18, 49, 79, .55) 0%, rgba(18, 49, 79, .35) 40%, rgba(18, 49, 79, .88) 100%);
}

.rd-hero__body {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--rd-wrap);
	margin: 0 auto;
	padding: 0 var(--rd-gutter) clamp(40px, 6vw, 72px);
	color: #fff;
}

.rd-hero__title {
	margin: 0;
	font-family: var(--rd-display);
	font-weight: 700;
	font-size: clamp(52px, 11vw, 132px);
	line-height: .95;
	letter-spacing: -0.02em;
	color: #fff;
}

.rd-hero__claim {
	max-width: 34ch;
	margin: 18px 0 32px;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 300;
	color: rgba(255, 255, 255, .92);
}

.rd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Quote: la striscia numeri sotto l'hero */
.rd-quote {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: rgba(255, 255, 255, .18);
	border-top: 1px solid rgba(255, 255, 255, .18);
}

.rd-quote__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 26px var(--rd-gutter);
	background: var(--rd-blu-scuro);
	color: #fff;
}

.rd-quote__num {
	font-family: var(--rd-display);
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1;
	color: var(--rd-ocra);
}

.rd-quote__unit {
	margin-left: 4px;
	font-family: var(--rd-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .7);
}

.rd-quote__label {
	font-size: 14px;
	color: rgba(255, 255, 255, .78);
}

/* Fascia in maiolica ---------------------------------------------------- */
.rd-strip {
	height: 42px;
	line-height: 0;
	border-top: 1px solid var(--rd-bordo);
	border-bottom: 1px solid var(--rd-bordo);
	background: var(--rd-carta);
}

/* INTRO ----------------------------------------------------------------- */
.rd-intro {
	background: var(--rd-carta);
}

.rd-intro__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.rd-intro__text p {
	margin: 0 0 18px;
	color: rgba(22, 40, 60, .82);
}

.rd-intro__text p:last-child {
	margin-bottom: 0;
}

.rd-intro__lead .rd-h2 {
	margin-bottom: 0;
}

/* STANZE ---------------------------------------------------------------- */
.rd-rooms {
	background: var(--rd-pietra);
}

.rd-rooms .rd-eyebrow {
	text-align: center;
}

.rd-rooms__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 3vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rd-room__media {
	overflow: hidden;
	margin-bottom: 18px;
	background: #ddd;
	aspect-ratio: 4 / 3;
}

.rd-room__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}

.rd-room:hover .rd-room__media img {
	transform: scale(1.05);
}

.rd-room__title {
	margin: 0 0 6px;
	font-family: var(--rd-display);
	font-size: 22px;
	font-weight: 500;
	color: var(--rd-inchiostro);
}

.rd-room__text {
	margin: 0;
	font-size: 15px;
	color: rgba(22, 40, 60, .72);
}

/* FUORI ----------------------------------------------------------------- */
.rd-outdoor {
	background: var(--rd-blu-scuro);
	color: #fff;
}

.rd-outdoor__grid {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.rd-outdoor__media {
	margin: 0;
	border: 8px solid rgba(255, 255, 255, .08);
}

.rd-outdoor__media img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.rd-features {
	margin: 0;
}

.rd-feature {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.rd-feature:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.rd-feature dt {
	font-family: var(--rd-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rd-ocra);
}

.rd-feature dd {
	margin: 6px 0 0;
	color: rgba(255, 255, 255, .8);
}

/* GALLERIA -------------------------------------------------------------- */
.rd-gallery {
	background: var(--rd-carta);
}

.rd-gallery .rd-eyebrow {
	text-align: center;
}

.rd-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px;
	grid-auto-flow: row dense;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Ultima cella della griglia: invito all'azione */
.rd-grid__cta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: var(--rd-blu);
	color: #fff;
}

.rd-grid__cta p {
	margin: 0;
	font-family: var(--rd-display);
	font-size: 20px;
	line-height: 1.25;
}

.rd-grid__cta a {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rd-ocra);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 3px;
}

.rd-grid__cta a:hover {
	color: #fff;
}

.rd-grid__item.is-wide {
	grid-column: span 2;
}

.rd-grid__item.is-tall {
	grid-row: span 2;
}

.rd-grid__btn {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #ddd;
	cursor: zoom-in;
	overflow: hidden;
}

.rd-grid__btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}

.rd-grid__btn:hover img,
.rd-grid__btn:focus-visible img {
	transform: scale(1.06);
}

.rd-grid__caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 34px 14px 12px;
	background: linear-gradient(180deg, rgba(18, 49, 79, 0) 0%, rgba(18, 49, 79, .82) 100%);
	color: #fff;
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s ease, transform .3s ease;
}

.rd-grid__btn:hover .rd-grid__caption,
.rd-grid__btn:focus-visible .rd-grid__caption {
	opacity: 1;
	transform: none;
}

/* CONTATTI -------------------------------------------------------------- */
.rd-contact {
	background: var(--rd-pietra);
}

.rd-contact__grid {
	display: grid;
	grid-template-columns: 0.8fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.rd-contact__note {
	margin: 0 0 32px;
	color: rgba(22, 40, 60, .75);
}

.rd-phone {
	display: block;
	margin-bottom: 18px;
	padding: 18px 0;
	border-top: 1px solid var(--rd-bordo);
	border-bottom: 1px solid var(--rd-bordo);
	text-decoration: none;
	color: var(--rd-inchiostro);
}

.rd-phone:hover .rd-phone__num {
	color: var(--rd-blu);
}

.rd-phone__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(22, 40, 60, .55);
}

.rd-phone__num {
	display: block;
	margin-top: 4px;
	font-family: var(--rd-display);
	font-size: 30px;
	transition: color .25s ease;
}

/* Form */
.rd-form {
	padding: clamp(24px, 3vw, 40px);
	background: var(--rd-carta);
	border: 1px solid var(--rd-bordo);
}

.rd-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.rd-field {
	display: block;
	margin-bottom: 18px;
}

.rd-field--sm {
	max-width: 140px;
}

.rd-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(22, 40, 60, .65);
}

.rd-form input[type="text"],
.rd-form input[type="email"],
.rd-form input[type="tel"],
.rd-form input[type="date"],
.rd-form input[type="number"],
.rd-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--rd-bordo);
	border-radius: 2px;
	background: #fff;
	color: var(--rd-inchiostro);
	font-family: var(--rd-body);
	font-size: 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.rd-form input:focus,
.rd-form textarea:focus {
	border-color: var(--rd-blu);
	box-shadow: 0 0 0 3px rgba(27, 75, 126, .12);
	outline: none;
}

.rd-form textarea {
	resize: vertical;
}

.rd-field.has-error input,
.rd-field.has-error textarea {
	border-color: #b3261e;
}

.rd-field__error {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	color: #b3261e;
}

.rd-field.has-error .rd-field__error {
	display: block;
}

.rd-check {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-start;
	margin: 6px 0 24px;
	font-size: 14px;
	color: rgba(22, 40, 60, .78);
}

.rd-check input {
	margin-top: 4px;
	accent-color: var(--rd-blu);
}

.rd-check a {
	color: var(--rd-blu);
	text-decoration: underline;
}

.rd-check .rd-field__error {
	flex: 0 0 100%;
}

.rd-check.has-error .rd-field__error {
	display: block;
}

.rd-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rd-form__feedback {
	margin: 16px 0 0;
	font-size: 15px;
	min-height: 1.4em;
}

.rd-form__feedback.is-ok {
	color: #2f6b41;
}

.rd-form__feedback.is-ko {
	color: #b3261e;
}

.rd-form.is-loading {
	opacity: .7;
	pointer-events: none;
}

/* PNRR ------------------------------------------------------------------ */
.rd-funding {
	padding-block: clamp(32px, 4vw, 56px);
	background: var(--rd-carta);
	border-top: 1px solid var(--rd-bordo);
}

.rd-funding__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	justify-content: center;
}

.rd-funding__logo {
	width: min(420px, 100%);
	height: auto;
	mix-blend-mode: multiply;
}

.rd-funding__text {
	flex: 1 1 320px;
	max-width: 52ch;
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(22, 40, 60, .7);
}

/* Barra sticky mobile ---------------------------------------------------- */
.rd-sticky {
	display: none;
	position: fixed;
	inset: auto 0 0 0;
	z-index: 90;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(251, 250, 247, .96);
	border-top: 1px solid var(--rd-bordo);
	backdrop-filter: blur(6px);
}

.rd-sticky .rd-btn {
	flex: 1;
	padding: 14px 12px;
}

.rd-sticky .rd-btn--ghost {
	border-color: var(--rd-blu);
	color: var(--rd-blu);
	background: transparent;
	flex: 0 0 34%;
}

.rd-sticky .rd-btn--ghost:hover {
	background: rgba(27, 75, 126, .08);
	color: var(--rd-blu);
}

/* LIGHTBOX --------------------------------------------------------------- */
.rd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: rgba(18, 49, 79, .95);
}

.rd-lightbox[hidden] {
	display: none;
}

.rd-lightbox__figure {
	margin: 0;
	max-width: min(1100px, 92vw);
	text-align: center;
}

.rd-lightbox__figure img {
	max-height: 78vh;
	width: auto;
	margin: 0 auto;
	object-fit: contain;
}

.rd-lightbox__figure figcaption {
	margin-top: 14px;
	color: rgba(255, 255, 255, .85);
	font-size: 14px;
}

.rd-lightbox__close,
.rd-lightbox__nav {
	border: 1px solid rgba(255, 255, 255, .3);
	background: transparent;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	transition: background-color .2s ease;
}

.rd-lightbox__close:hover,
.rd-lightbox__nav:hover {
	background: rgba(255, 255, 255, .16);
}

.rd-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	font-size: 28px;
}

.rd-lightbox__nav {
	flex: 0 0 auto;
	width: 48px;
	height: 64px;
	font-size: 32px;
}

/* RESPONSIVE ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.rd-intro__grid,
	.rd-outdoor__grid,
	.rd-contact__grid {
		grid-template-columns: 1fr;
	}

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

	.rd-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 180px;
	}
}

@media (max-width: 680px) {
	.raccuja-dive-page .rd {
		font-size: 16px;
	}

	.rd-hero {
		min-height: 78vh;
	}

	.rd-quote {
		grid-template-columns: 1fr;
	}

	.rd-quote__item {
		flex-direction: row;
		align-items: baseline;
		gap: 12px;
		padding-block: 16px;
	}

	.rd-rooms__list {
		grid-template-columns: 1fr;
	}

	.rd-grid {
		grid-auto-rows: 150px;
	}

	.rd-grid__caption {
		opacity: 1;
		transform: none;
		font-size: 12px;
	}

	.rd-form__row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.rd-field--sm {
		max-width: none;
	}

	.rd-sticky {
		display: flex;
	}

	.rd-funding {
		padding-bottom: 96px;
	}

	.rd-lightbox__nav {
		width: 40px;
		height: 52px;
	}
}

/* Motion ----------------------------------------------------------------- */
.rd-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
	.rd *,
	.rd *::before,
	.rd *::after {
		animation: none !important;
		transition: none !important;
	}

	.rd-reveal {
		opacity: 1;
		transform: none;
	}
}
