/*
Theme Name:   Красный Апельсин
Description:  Tema vetrina dell'agenzia Красный Апельсин (orangetours.su) per offerte viaggio curate. Richiede il plugin Orange Tours Core.
Version:      0.2.0
Requires PHP: 8.1
Requires at least: 6.4
Text Domain:  orangetours
License:      GPL-2.0-or-later
*/

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Token ---------- */

:root {
	--ot-navy: #0b1d33;
	--ot-navy-soft: #13294a;
	--ot-accent: #e8872f;
	--ot-accent-hover: #f09a48;
	--ot-beige: #f6f1ea;
	--ot-white: #ffffff;
	--ot-text: #4d5560;
	--ot-muted: #7a828c;
	--ot-border: rgba(11, 29, 51, 0.08);
	--ot-shadow: 0 18px 46px rgba(11, 29, 51, 0.05);
	--ot-shadow-hover: 0 22px 52px rgba(11, 29, 51, 0.1);
	--ot-radius-lg: 28px;
	--ot-radius: 22px;
	--ot-container: min(1180px, 100% - 44px);
	--ot-container-wide: min(1460px, 100% - 44px);
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	background: var(--ot-white);
	color: var(--ot-text);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ot-navy);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.035em;
}

p {
	margin: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 18px;
	clip: auto;
	background: var(--ot-navy);
	color: var(--ot-white);
	border-radius: 999px;
}

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

.ot-container {
	width: var(--ot-container);
	margin: 0 auto;
}

.ot-container-wide {
	width: var(--ot-container-wide);
	margin: 0 auto;
}

.ot-section {
	padding: 76px 0 82px;
}

.ot-section--tight {
	padding-top: 24px;
}

/* ---------- Tipografia di sezione ---------- */

.ot-label {
	display: block;
	margin-bottom: 18px;
	color: var(--ot-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.34em;
	text-transform: uppercase;
}

.ot-h2 {
	font-size: clamp(28px, 3vw, 42px);
	letter-spacing: -0.04em;
}

.ot-intro {
	max-width: 760px;
	margin-top: 22px;
	font-size: 16px;
	line-height: 1.82;
}

.ot-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 42px;
}

/* ---------- Pulsanti ---------- */

.ot-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.ot-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.ot-btn:hover {
	transform: translateY(-1px);
}

.ot-btn--primary {
	background: var(--ot-accent);
	border-color: var(--ot-accent);
	color: var(--ot-navy);
}

.ot-btn--primary:hover {
	background: var(--ot-accent-hover);
	border-color: var(--ot-accent-hover);
}

.ot-btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.42);
	color: var(--ot-white);
}

.ot-btn--ghost:hover {
	border-color: var(--ot-accent);
	color: var(--ot-accent);
}

.ot-btn--outline {
	background: transparent;
	border-color: rgba(11, 29, 51, 0.18);
	color: var(--ot-navy);
}

.ot-btn--outline:hover {
	border-color: var(--ot-accent);
	color: var(--ot-accent);
}

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

/* ---------- Header ---------- */

.ot-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s;
}

.ot-header.is-scrolled {
	border-bottom-color: var(--ot-border);
}

.ot-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}

.ot-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ot-navy);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ot-logo__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ot-accent);
}

.ot-logo img {
	max-height: 44px;
	width: auto;
}

.ot-nav ul {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ot-nav a {
	color: var(--ot-navy);
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s;
}

.ot-nav a:hover,
.ot-nav .current-menu-item > a,
.ot-nav .current_page_item > a {
	color: var(--ot-accent);
}

.ot-header__actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ot-header__phone {
	color: var(--ot-navy);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.ot-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--ot-border);
	border-radius: 50%;
	background: var(--ot-white);
	color: var(--ot-navy);
	cursor: pointer;
}

.ot-menu-toggle span,
.ot-menu-toggle span::before,
.ot-menu-toggle span::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s;
}

.ot-menu-toggle span {
	position: relative;
}

.ot-menu-toggle span::before,
.ot-menu-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.ot-menu-toggle span::before {
	top: -6px;
}

.ot-menu-toggle span::after {
	top: 6px;
}

.ot-menu-toggle[aria-expanded="true"] span {
	background: transparent;
}

.ot-menu-toggle[aria-expanded="true"] span::before {
	transform: translateY(6px) rotate(45deg);
}

.ot-menu-toggle[aria-expanded="true"] span::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.ot-hero-wrap {
	padding: 24px 0 70px;
}

.ot-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 610px;
	overflow: hidden;
	border-radius: 30px;
	background-color: var(--ot-navy);
	background-position: center;
	background-size: cover;
}

.ot-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 29, 51, 0.9) 0%, rgba(11, 29, 51, 0.72) 42%, rgba(11, 29, 51, 0.12) 100%);
}

.ot-hero--no-image {
	background-image: radial-gradient(circle at 85% 25%, rgba(232, 135, 47, 0.35), transparent 38%), radial-gradient(circle at 70% 90%, rgba(19, 41, 74, 0.9), transparent 45%), linear-gradient(135deg, var(--ot-navy) 0%, var(--ot-navy-soft) 100%);
}

.ot-hero--no-image::before {
	display: none;
}

.ot-hero__content {
	position: relative;
	width: min(760px, 100%);
	padding: 74px 78px;
	color: var(--ot-white);
}

.ot-hero h1 {
	color: var(--ot-white);
	font-size: clamp(38px, 3.8vw, 58px);
	line-height: 1.06;
	letter-spacing: -0.045em;
}

.ot-hero p {
	max-width: 560px;
	margin-top: 26px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 18px;
	line-height: 1.68;
}

.ot-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	margin-top: 42px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ot-hero__stat strong {
	display: block;
	color: var(--ot-white);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.ot-hero__stat span {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

/* ---------- Card offerta ---------- */

.ot-offer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ot-offer-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ot-white);
	border: 1px solid var(--ot-border);
	border-radius: var(--ot-radius);
	box-shadow: var(--ot-shadow);
	transition: transform 0.25s, box-shadow 0.25s;
}

.ot-offer-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ot-shadow-hover);
}

.ot-offer-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ot-beige);
}

.ot-offer-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s;
}

.ot-offer-card:hover .ot-offer-card__media img {
	transform: scale(1.045);
}

.ot-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--ot-accent);
	color: var(--ot-navy);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.ot-offer-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 24px 22px;
}

.ot-offer-card__place {
	color: var(--ot-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.ot-offer-card__title {
	margin-top: 10px;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.ot-offer-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ot-offer-card__hotel {
	margin-top: 8px;
	color: var(--ot-muted);
	font-size: 14px;
	line-height: 1.5;
}

.ot-stars {
	color: var(--ot-accent);
	letter-spacing: 0.08em;
}

.ot-offer-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	color: var(--ot-text);
	font-size: 14px;
}

.ot-offer-card__facts li + li::before {
	content: "·";
	margin-right: 14px;
	color: var(--ot-muted);
}

.ot-offer-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 20px;
}

.ot-price {
	display: flex;
	flex-direction: column;
}

.ot-price__old {
	color: var(--ot-muted);
	font-size: 14px;
	text-decoration: line-through;
}

.ot-price__value {
	color: var(--ot-navy);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	white-space: nowrap;
}

.ot-price__note {
	color: var(--ot-muted);
	font-size: 12px;
}

.ot-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--ot-beige);
	color: var(--ot-navy);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Perché noi ---------- */

.ot-why-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 72px;
	align-items: start;
}

.ot-why-list {
	display: grid;
	gap: 26px;
}

.ot-why-item {
	padding-left: 26px;
	border-left: 3px solid var(--ot-accent);
}

.ot-why-item h3 {
	margin-bottom: 9px;
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.ot-why-item p {
	font-size: 15.5px;
	line-height: 1.74;
}

/* ---------- Destinazioni ---------- */

.ot-dest-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.ot-dest-card {
	position: relative;
	display: block;
	min-height: 360px;
	overflow: hidden;
	border-radius: 26px;
	background: var(--ot-navy);
	box-shadow: 0 22px 55px rgba(11, 29, 51, 0.1);
}

.ot-dest-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s;
}

.ot-dest-card:hover img {
	transform: scale(1.045);
}

.ot-dest-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(11, 29, 51, 0.88) 0%, rgba(11, 29, 51, 0.42) 50%, rgba(11, 29, 51, 0.06) 100%);
}

.ot-dest-card__content {
	position: absolute;
	right: 32px;
	bottom: 32px;
	left: 32px;
	z-index: 2;
}

.ot-dest-card h3 {
	color: var(--ot-white);
	font-size: 31px;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.ot-dest-card p {
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 15.5px;
}

/* ---------- Come funziona ---------- */

.ot-beige-box {
	padding: 58px;
	border-radius: var(--ot-radius-lg);
	background: var(--ot-beige);
}

.ot-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-top: 42px;
}

.ot-step {
	min-height: 220px;
	padding: 30px 26px;
	background: var(--ot-white);
	border: 1px solid var(--ot-border);
	border-radius: var(--ot-radius);
	box-shadow: var(--ot-shadow);
}

.ot-step__num {
	display: block;
	margin-bottom: 22px;
	color: var(--ot-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.22em;
}

.ot-step h3 {
	margin-bottom: 12px;
	font-size: 20px;
	line-height: 1.23;
	letter-spacing: -0.02em;
}

.ot-step p {
	font-size: 15px;
	line-height: 1.7;
}

/* ---------- Archivio ---------- */

.ot-page-head {
	padding: 42px 0 36px;
}

.ot-page-head h1 {
	font-size: clamp(34px, 3.6vw, 52px);
	letter-spacing: -0.045em;
}

.ot-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.ot-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 9px 18px;
	border: 1px solid rgba(11, 29, 51, 0.14);
	border-radius: 999px;
	color: var(--ot-navy);
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ot-chip small {
	color: var(--ot-muted);
	font-weight: 500;
}

.ot-chip:hover {
	border-color: var(--ot-accent);
}

.ot-chip.is-active {
	background: var(--ot-navy);
	border-color: var(--ot-navy);
	color: var(--ot-white);
}

.ot-chip.is-active small {
	color: rgba(255, 255, 255, 0.7);
}

.ot-empty {
	padding: 58px;
	border-radius: var(--ot-radius-lg);
	background: var(--ot-beige);
	text-align: center;
}

.ot-empty h2 {
	font-size: 26px;
}

.ot-empty p {
	max-width: 520px;
	margin: 14px auto 0;
}

.ot-empty .ot-btns {
	justify-content: center;
}

.ot-pagination {
	margin-top: 48px;
}

.ot-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.ot-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ot-border);
	border-radius: 999px;
	color: var(--ot-navy);
	font-weight: 600;
}

.ot-pagination .page-numbers.current {
	background: var(--ot-navy);
	border-color: var(--ot-navy);
	color: var(--ot-white);
}

/* ---------- Scheda offerta ---------- */

.ot-breadcrumbs {
	padding-top: 28px;
	color: var(--ot-muted);
	font-size: 14px;
}

.ot-breadcrumbs a:hover {
	color: var(--ot-accent);
}

.ot-breadcrumbs span[aria-hidden] {
	margin: 0 8px;
}

.ot-offer-head {
	padding: 22px 0 30px;
}

.ot-offer-head h1 {
	max-width: 900px;
	font-size: clamp(30px, 3.4vw, 48px);
	letter-spacing: -0.045em;
}

.ot-offer-head__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin-top: 18px;
	font-size: 15px;
}

.ot-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 14px;
	height: clamp(320px, 42vw, 520px);
}

.ot-gallery figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--ot-radius);
	background: var(--ot-beige);
}

.ot-gallery figure:first-child {
	grid-row: span 2;
}

.ot-gallery--single {
	grid-template-columns: 1fr;
}

.ot-gallery--double figure:nth-child(2) {
	grid-row: span 2;
}

.ot-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ot-offer-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 56px;
	align-items: start;
	padding: 48px 0 20px;
}

.ot-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin-bottom: 38px;
}

.ot-fact {
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--ot-beige);
}

.ot-fact span {
	display: block;
	color: var(--ot-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ot-fact strong {
	display: block;
	margin-top: 4px;
	color: var(--ot-navy);
	font-size: 16px;
	line-height: 1.35;
}

.ot-content {
	font-size: 17px;
	line-height: 1.8;
}

.ot-content > * + * {
	margin-top: 1.1em;
}

.ot-content h2,
.ot-content h3 {
	margin-top: 1.6em;
	font-size: 24px;
	letter-spacing: -0.03em;
}

.ot-content ul {
	padding-left: 1.2em;
}

.ot-content li + li {
	margin-top: 0.4em;
}

.ot-content li::marker {
	color: var(--ot-accent);
}

.ot-booking {
	position: sticky;
	top: 110px;
	padding: 30px;
	background: var(--ot-white);
	border: 1px solid var(--ot-border);
	border-radius: var(--ot-radius-lg);
	box-shadow: var(--ot-shadow-hover);
}

.ot-booking .ot-price__value {
	font-size: 34px;
}

.ot-booking__save {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(232, 135, 47, 0.14);
	color: #a3561a;
	font-size: 13px;
	font-weight: 700;
}

.ot-booking__list {
	display: grid;
	gap: 10px;
	margin: 24px 0;
	padding: 22px 0;
	border-top: 1px solid var(--ot-border);
	border-bottom: 1px solid var(--ot-border);
	list-style: none;
	font-size: 14.5px;
}

.ot-booking__list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.ot-booking__list span {
	color: var(--ot-muted);
}

.ot-booking__list strong {
	color: var(--ot-navy);
	text-align: right;
}

.ot-booking .ot-btns {
	flex-direction: column;
	margin-top: 0;
}

.ot-booking__note {
	margin-top: 18px;
	color: var(--ot-muted);
	font-size: 13px;
	line-height: 1.6;
}

.ot-related {
	border-top: 1px solid var(--ot-border);
	margin-top: 40px;
}

/* ---------- Pagine generiche ---------- */

.ot-page {
	padding: 20px 0 80px;
}

.ot-page .ot-content {
	max-width: 780px;
}

/* ---------- Contatti ---------- */

.ot-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
}

.ot-contact-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 26px;
	border-radius: var(--ot-radius);
	background: var(--ot-beige);
	transition: transform 0.25s, box-shadow 0.25s;
}

a.ot-contact-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ot-shadow-hover);
}

.ot-contact-card__label {
	color: var(--ot-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ot-contact-card strong {
	color: var(--ot-navy);
	font-size: 20px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.ot-contact-card small {
	color: var(--ot-text);
	font-size: 14px;
	line-height: 1.5;
}

.ot-contact-card__wa {
	margin-top: 4px;
	color: var(--ot-accent);
	font-size: 14px;
	font-weight: 600;
}

.ot-contact-card__wa:hover {
	color: var(--ot-navy);
}

.ot-request {
	margin-top: 64px;
	padding: 48px;
	border: 1px solid var(--ot-border);
	border-radius: var(--ot-radius-lg);
	box-shadow: var(--ot-shadow);
}

.ot-request__head {
	margin-bottom: 36px;
}

.ot-page .ot-request__body {
	max-width: none;
	font-size: 16px;
}

/* ---------- Modulo di richiesta ---------- */

.ot-form {
	display: grid;
	gap: 34px;
}

/* L'ancora #zayavka non deve finire sotto l'header fisso. */
.ot-form,
.ot-form-done {
	scroll-margin-top: 110px;
}

.ot-form__group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ot-form__group legend {
	margin-bottom: 18px;
	padding: 0;
	color: var(--ot-navy);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ot-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.ot-form__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ot-form__group > .ot-form__field + .ot-form__field,
.ot-form__grid + .ot-form__field {
	margin-top: 18px;
}

.ot-form__field[hidden] {
	display: none;
}

.ot-form__label {
	display: block;
	margin: 0 0 7px;
	color: var(--ot-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.ot-form__label small {
	color: var(--ot-muted);
	font-weight: 500;
}

.ot-form input[type="text"],
.ot-form input[type="tel"],
.ot-form input[type="email"],
.ot-form input[type="date"],
.ot-form input[type="number"],
.ot-form select,
.ot-form textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid rgba(11, 29, 51, 0.16);
	border-radius: 14px;
	background: var(--ot-white);
	color: var(--ot-navy);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ot-form textarea {
	min-height: 120px;
	resize: vertical;
}

.ot-form input:focus,
.ot-form select:focus,
.ot-form textarea:focus {
	border-color: var(--ot-accent);
	box-shadow: 0 0 0 3px rgba(232, 135, 47, 0.18);
	outline: none;
}

.ot-form ::placeholder {
	color: #a3a9b1;
}

.ot-form__field.has-error input,
.ot-form__field.has-error textarea {
	border-color: #c0392b;
}

.ot-form__error {
	margin-top: 6px;
	color: #b03a2e;
	font-size: 13.5px;
	line-height: 1.45;
}

.ot-form__alert {
	padding: 16px 20px;
	border-radius: 14px;
	background: #fdecea;
	color: #8c2b22;
	font-weight: 600;
}

.ot-form__switch {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 18px;
	padding: 5px;
	border-radius: 999px;
	background: var(--ot-beige);
}

.ot-form__switch label {
	position: relative;
	cursor: pointer;
}

.ot-form__switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ot-form__switch label:has(input) {
	padding: 9px 18px;
	border-radius: 999px;
	color: var(--ot-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.ot-form__switch label:has(input:checked) {
	background: var(--ot-navy);
	color: var(--ot-white);
}

.ot-form__switch label:has(input:focus-visible) {
	outline: 2px solid var(--ot-accent);
	outline-offset: 2px;
}

.ot-rooms {
	margin-top: 22px;
}

.ot-rooms__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ot-content .ot-rooms__list li + li {
	margin-top: 0;
}

.ot-rooms__row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ot-rooms__row label {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 14px;
}

.ot-rooms__name {
	flex: 0 0 92px;
	color: var(--ot-navy);
	font-size: 14px;
	font-weight: 600;
}

.ot-rooms__remove {
	flex: 0 0 44px;
	height: 44px;
	border: 1px solid rgba(11, 29, 51, 0.16);
	border-radius: 999px;
	background: var(--ot-white);
	color: var(--ot-navy);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ot-rooms__remove:hover {
	border-color: #c0392b;
	color: #c0392b;
}

.ot-rooms__remove[hidden],
.ot-rooms__add[hidden] {
	display: none;
}

.ot-rooms__add {
	margin-top: 14px;
	min-height: 42px;
	padding: 10px 20px;
}

.ot-form__footer {
	display: grid;
	gap: 18px;
	justify-items: start;
	padding-top: 26px;
	border-top: 1px solid var(--ot-border);
}

.ot-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.55;
	cursor: pointer;
}

.ot-form__consent input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--ot-accent);
}

.ot-form__consent a {
	color: var(--ot-navy);
	text-decoration: underline;
}

.ot-form__consent.has-error span {
	color: #b03a2e;
}

.ot-form__footer .ot-btn {
	min-width: 240px;
}

.ot-form__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ot-form-done {
	padding: 42px;
	border-radius: var(--ot-radius);
	background: var(--ot-beige);
	text-align: center;
}

.ot-form-done h2 {
	font-size: 28px;
}

.ot-form-done p {
	margin-top: 12px;
}

/* ---------- Footer ---------- */

.ot-footer {
	margin-top: 40px;
	background: var(--ot-navy);
	color: var(--ot-white);
}

.ot-footer-cta {
	padding: 58px 0 54px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: radial-gradient(circle at 85% 20%, rgba(232, 135, 47, 0.18), transparent 34%), linear-gradient(135deg, var(--ot-navy) 0%, var(--ot-navy-soft) 100%);
}

.ot-footer-cta__grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 42px;
	align-items: center;
}

.ot-footer-cta h2 {
	max-width: 720px;
	color: var(--ot-white);
	font-size: clamp(26px, 2.8vw, 38px);
	line-height: 1.16;
	letter-spacing: -0.04em;
}

.ot-footer-cta p {
	max-width: 680px;
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.68);
}

.ot-footer-cta .ot-btns {
	justify-content: flex-end;
	margin-top: 0;
}

.ot-footer-main {
	padding: 56px 0 42px;
}

.ot-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 1fr;
	gap: 46px;
}

.ot-footer .ot-logo {
	margin-bottom: 22px;
	color: var(--ot-white);
}

.ot-footer-brand p {
	max-width: 360px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 15px;
	line-height: 1.75;
}

.ot-footer h3 {
	margin-bottom: 20px;
	color: var(--ot-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.ot-footer-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ot-footer-list a,
.ot-footer-list span {
	color: rgba(255, 255, 255, 0.68);
	font-size: 15px;
	line-height: 1.55;
	transition: color 0.2s;
}

.ot-footer-list a:hover {
	color: var(--ot-accent);
}

.ot-footer-list strong {
	display: block;
	color: var(--ot-white);
	font-size: 14px;
}

.ot-footer-bottom {
	padding: 24px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.56);
	font-size: 13px;
}

.ot-footer-bottom__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.ot-footer-bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ot-footer-bottom a:hover {
	color: var(--ot-accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.ot-offer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ot-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ot-offer-layout {
		grid-template-columns: minmax(0, 1fr) 330px;
		gap: 36px;
	}

	.ot-header__phone {
		display: none;
	}
}

@media (max-width: 900px) {
	.ot-menu-toggle {
		display: inline-block;
	}

	.ot-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 12px 22px 26px;
		background: var(--ot-white);
		border-bottom: 1px solid var(--ot-border);
		box-shadow: 0 24px 40px rgba(11, 29, 51, 0.08);
	}

	.ot-nav.is-open {
		display: block;
	}

	.ot-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ot-nav a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid var(--ot-border);
		font-size: 17px;
	}

	.ot-header__actions .ot-btn {
		display: none;
	}

	.ot-why-grid,
	.ot-footer-cta__grid,
	.ot-offer-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.ot-footer-cta .ot-btns {
		justify-content: flex-start;
	}

	.ot-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ot-footer-brand {
		grid-column: 1 / -1;
	}

	.ot-booking {
		position: static;
	}

	.ot-dest-card {
		min-height: 300px;
	}
}

@media (max-width: 680px) {
	.ot-section {
		padding: 56px 0 60px;
	}

	.ot-header__inner {
		min-height: 70px;
	}

	.ot-logo {
		font-size: 17px;
		letter-spacing: 0.05em;
	}

	.ot-logo__dot {
		width: 10px;
		height: 10px;
	}

	.ot-hero-wrap {
		padding: 8px 0 48px;
	}

	.ot-hero h1 {
		font-size: 34px;
	}

	.ot-hero .ot-label {
		letter-spacing: 0.22em;
	}

	.ot-hero {
		min-height: 0;
		border-radius: 24px;
	}

	.ot-hero::before {
		background: linear-gradient(180deg, rgba(11, 29, 51, 0.7) 0%, rgba(11, 29, 51, 0.9) 100%);
	}

	.ot-hero__content {
		padding: 44px 26px;
	}

	.ot-hero p {
		font-size: 16px;
	}

	.ot-hero__stats {
		gap: 22px;
	}

	.ot-offer-grid,
	.ot-dest-grid,
	.ot-steps,
	.ot-footer-grid {
		grid-template-columns: 1fr;
	}

	.ot-section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ot-beige-box,
	.ot-empty {
		padding: 34px 22px;
		border-radius: 24px;
	}

	.ot-gallery {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		height: auto;
	}

	.ot-gallery figure {
		aspect-ratio: 4 / 3;
	}

	.ot-gallery figure:first-child {
		grid-row: auto;
	}

	.ot-gallery figure:nth-child(n + 2) {
		display: none;
	}

	.ot-btns .ot-btn {
		flex: 1 1 100%;
	}

	.ot-request {
		margin-top: 44px;
		padding: 30px 20px;
		border-radius: 24px;
	}

	.ot-form__grid,
	.ot-form__grid--3 {
		grid-template-columns: 1fr;
	}

	.ot-rooms__row label {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.ot-rooms__row {
		align-items: flex-end;
	}

	.ot-rooms__name {
		flex-basis: auto;
	}

	.ot-form__footer {
		justify-items: stretch;
	}

	.ot-form__footer .ot-btn {
		min-width: 0;
		width: 100%;
	}

	.ot-form-done {
		padding: 30px 20px;
	}

	.ot-dest-card__content {
		right: 24px;
		bottom: 24px;
		left: 24px;
	}

	.ot-dest-card h3 {
		font-size: 26px;
	}
}

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