/* Conti a Riposo
	notte viola al posto del blu del modello, giallo tenue per le azioni, fondo lavanda chiarissimo */

:root {
	--mezzanotte: #241f45;
	--mezzanotte-fonda: #17132e;
	--lavanda: #f3f2fb;
	--giallo: #ffd37d;
	--inchiostro-viola: #4a4766;
	--bordo: #d9d6ee;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: #fff;
	color: var(--inchiostro-viola);
	font: 300 1.0625rem/1.75 "Lexend", Arial, sans-serif;
	overflow-x: clip;
}

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

a {
	color: var(--mezzanotte);
}

h1, h2, h3 {
	color: var(--mezzanotte);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 .55em;
	text-wrap: balance;
}

:focus-visible {
	outline: 3px solid #7a6ff0;
	outline-offset: 2px;
}

.header__skip {
	position: absolute;
	left: -9999px;
}

.header__skip:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	background: #fff;
	padding: 8px 12px;
}

/* barra alta: logo con didascalia, menu, bottone giallo */
.header {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 1210px;
	margin: 0 auto;
	padding: 22px 30px;
}

.header__brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header__logo img {
	width: 180px;
}

.header__caption {
	border-left: 1px solid var(--bordo);
	color: var(--mezzanotte);
	font-size: .95rem;
	padding-left: 16px;
}

.header__nav {
	margin-left: auto;
}

.header__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.header__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--inchiostro-viola);
	font-weight: 400;
	text-decoration: none;
}

.header__link .chev {
	color: #7a6ff0;
}

.header__link:hover,
.header__link--on {
	color: var(--mezzanotte);
	text-decoration: underline;
	text-underline-offset: 6px;
}

.header__burger {
	display: none;
	margin-left: auto;
	background: var(--lavanda);
	border: 1px solid var(--bordo);
	border-radius: 4px;
	color: var(--mezzanotte);
	font: 400 1rem "Lexend", sans-serif;
	padding: 8px 14px;
}

/* pulsanti gialli e a filo */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	font: 600 1rem "Lexend", sans-serif;
	padding: 12px 20px;
	text-decoration: none;
}

.btn--yellow {
	background: var(--giallo);
	color: var(--mezzanotte);
}

.btn--yellow:hover {
	background: #ffc757;
}

.btn--line {
	background: transparent;
	border-color: #b6b0de;
	color: var(--mezzanotte);
}

.btn--line:hover {
	border-color: var(--mezzanotte);
}

.btn--big {
	padding: 16px 24px;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--mezzanotte);
	font-weight: 600;
	text-decoration: none;
}

.link-arrow .arr {
	color: #7a6ff0;
}

/* barra di icone a destra */
.side-icons {
	position: fixed;
	right: 0;
	top: 150px;
	z-index: 30;
	display: flex;
	flex-direction: column;
	background: var(--lavanda);
	border: 1px solid var(--bordo);
	border-right: 0;
	border-radius: 10px 0 0 10px;
}

.side-icons a {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: var(--mezzanotte);
}

.side-icons a:hover {
	background: #e7e4f8;
}

/* hero con la ruota */
.apertura {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 30px;
	align-items: center;
	background: linear-gradient(180deg, #fff 0, var(--lavanda) 70%);
	padding: 40px 30px 100px;
}

.apertura > * {
	min-width: 0;
}

.apertura__testo {
	max-width: 560px;
	justify-self: end;
}

.apertura__titolo {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	font-weight: 400;
	line-height: 1.02;
}

.apertura__sotto {
	font-size: 1.35rem;
	margin: 0 0 34px;
}

.apertura__azioni {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin: 0 0 30px;
}

.apertura__oppure {
	font-size: .98rem;
}

.wheel {
	position: relative;
	max-width: 600px;
}

.wheel__svg {
	width: 100%;
	height: auto;
}

.wheel__slice {
	cursor: pointer;
	transition: opacity .2s;
}

.wheel__slice text {
	fill: var(--mezzanotte);
	font: 600 15px "Lexend", sans-serif;
}

.wheel__slice:hover,
.wheel__slice:focus {
	opacity: .82;
	outline: none;
}

.wheel__slice.is-on path {
	stroke: var(--mezzanotte);
	stroke-width: 3;
}

.wheel__center {
	fill: #fff;
	font: 600 20px "Lexend", sans-serif;
	letter-spacing: .08em;
}

.wheel__center--accent {
	fill: var(--giallo);
}

.wheel__pill {
	position: absolute;
	margin: 0;
	background: #fff;
	box-shadow: 0 2px 10px rgba(36, 31, 69, .1);
	color: var(--mezzanotte);
	font-weight: 400;
	padding: 8px 18px;
}

.wheel__pill b {
	color: #6457e0;
	font-weight: 400;
}

.wheel__pill--1 {
	top: 0;
	left: 44%;
}

.wheel__pill--2 {
	top: 16%;
	right: -2%;
}

.wheel__pill--3 {
	top: 32%;
	right: 4%;
}

.wheel__info {
	background: #fff;
	border-left: 4px solid var(--giallo);
	font-size: .98rem;
	margin: 10px 0 0;
	min-height: 5.5em;
	padding: 12px 16px;
}

/* righe */
.row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	max-width: 1210px;
	margin: 0 auto;
	padding: 100px 30px;
}

.row > * {
	min-width: 0;
}

.row--intro {
	background: var(--lavanda);
	max-width: none;
	padding-left: max(30px, calc((100% - 1150px) / 2));
	padding-right: max(30px, calc((100% - 1150px) / 2));
}

.row__title {
	font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.row__img {
	width: 100%;
	border-radius: 6px;
	aspect-ratio: 47 / 33;
	object-fit: cover;
}

.zigzag {
	max-width: 1210px;
	margin: 0 auto;
	padding: 60px 30px;
}

.zig {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 120px;
	align-items: center;
	margin-bottom: 140px;
}

.zig > * {
	min-width: 0;
}

.zig--reverse .zig__media {
	order: 2;
}

.zig__media {
	position: relative;
}

.zig__img {
	width: 100%;
	border-radius: 8px;
	aspect-ratio: 57 / 34;
	object-fit: cover;
}

.zig__card {
	position: absolute;
	left: 30px;
	bottom: -30px;
	display: grid;
	gap: 8px;
	width: 176px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
	padding: 14px;
}

.zig--reverse .zig__card {
	left: auto;
	right: 30px;
	top: -26px;
	bottom: auto;
}

.zig__bar {
	display: block;
	height: 12px;
	border-radius: 2px;
}

.zig__bar--a {
	background: #4cb08a;
	width: 70%;
}

.zig__bar--b {
	background: #c6dfd5;
	width: 85%;
}

.zig__bar--c {
	background: #f2a65a;
	width: 60%;
}

.zig__card--tag {
	width: auto;
	color: var(--mezzanotte);
	font: 400 .9rem "Lexend", sans-serif;
	padding: 10px 16px;
}

.zig__card--dots {
	display: flex;
	gap: 10px;
	width: auto;
}

.zig__card--dots i {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #a9d8f5;
}

.zig__card--dots i:nth-child(2) {
	background: #f6d365;
}

.zig__card--dots i:nth-child(3) {
	background: #9ed39b;
}

.zig__title {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.zig__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: #6457e0;
	color: #fff;
	font-size: 1.2rem;
	flex: none;
}

/* fasce */
.band {
	padding: 90px 30px;
	text-align: center;
}

.band--light {
	background: var(--lavanda);
}

.band--dark {
	background: var(--mezzanotte);
}

.band--dark .band__title {
	color: #fff;
}

.band__title {
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.band__text {
	max-width: 720px;
	margin: 0 auto 36px;
}

.band__groups {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	max-width: 860px;
	margin: 0 auto;
}

.group-box {
	display: grid;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--bordo);
	border-radius: 8px;
	color: var(--inchiostro-viola);
	padding: 26px 24px;
	text-align: left;
	text-decoration: none;
}

.group-box strong {
	color: var(--mezzanotte);
	font-size: 1.25rem;
	font-weight: 400;
}

.group-box__go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--mezzanotte);
	font-weight: 600;
	margin-top: 6px;
}

.group-box:hover {
	border-color: #7a6ff0;
}

.band--icons {
	background-color: #f3f2fb;
	padding: 90px 30px;
}

.band--icons .band__title {
	max-width: 1210px;
	margin: 0 auto 40px;
}

.icon-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	max-width: 1210px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.icon-row__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #ffd37d;
	color: #241f45;
}

.icon-row__name {
	font-size: 19px;
	margin: 18px 0 8px;
}

.icon-row p {
	margin: 0;
}

.limits {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.limits li {
	border-bottom: 1px solid var(--bordo);
	padding: 12px 0 12px 30px;
	position: relative;
}

.limits li:before {
	content: "";
	position: absolute;
	left: 0;
	top: 20px;
	width: 14px;
	height: 3px;
	background: #f2a65a;
}

.limits__note {
	font-size: .98rem;
}

.domande-box {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 30px 100px;
}

.domanda__voce {
	border-bottom: 1px solid var(--bordo);
}

.domanda__testo {
	display: block;
	width: 100%;
	background: none;
	border: 0;
	color: var(--mezzanotte);
	cursor: pointer;
	font: 400 1.15rem "Lexend", sans-serif;
	padding: 20px 40px 20px 0;
	position: relative;
	text-align: left;
}

.domanda__testo:after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 14px;
	color: #6457e0;
	font-size: 1.6rem;
}

.domanda__testo[aria-expanded="true"]:after {
	content: "\2013";
}

.domanda__risposta p {
	margin: 0 0 20px;
}

/* testata chiara delle pagine di approfondimento */
.page-top {
	background: linear-gradient(180deg, #fff 0, var(--lavanda) 100%);
	padding: 70px 30px 60px;
}

.page-top > * {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.page-top__eyebrow {
	color: #6457e0;
	font-size: .9rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.page-top__title {
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.page-top__lead {
	font-size: 1.2rem;
}

.content {
	max-width: min(860px, 100%);
	margin: 0 auto;
	padding: 50px 30px 100px;
	overflow-wrap: anywhere;
}

.content h2 {
	font-size: 1.8rem;
	margin-top: 1.5em;
}

.content__img {
	width: 100%;
	border-radius: 8px;
	aspect-ratio: 12 / 7;
	object-fit: cover;
	margin: 30px 0;
}

.table-plain,
.legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.table-plain th,
.table-plain td,
.legal-table th,
.legal-table td {
	border-bottom: 1px solid var(--bordo);
	padding: 12px 10px 12px 0;
	text-align: left;
	vertical-align: top;
}

.table-plain th,
.legal-table th {
	color: var(--mezzanotte);
	font-weight: 600;
	width: 30%;
}

.legal-cappello {
	font-size: 1.1rem;
}

.body-container--legal .page-top {
	padding-bottom: 40px;
}

.body-container--page .content > p:first-child {
	font-size: 1.15rem;
}

/* chiedi un posto */
.place-form {
	display: grid;
	gap: 18px;
}

.place-form__set {
	border: 1px solid var(--bordo);
	border-radius: 8px;
	margin: 0;
	padding: 14px 20px;
}

.place-form__set legend {
	color: var(--mezzanotte);
	font-weight: 600;
	padding: 0 6px;
}

.place-form__choice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 6px 0;
}

.place-form__choice input {
	margin-top: 7px;
	accent-color: #6457e0;
}

.place-form__field label {
	display: block;
	color: var(--mezzanotte);
	font-weight: 400;
	margin-bottom: 6px;
}

.place-form__field input,
.place-form__field select {
	width: 100%;
	border: 1px solid #b6b0de;
	border-radius: 4px;
	font: 300 1rem "Lexend", sans-serif;
	padding: 13px 14px;
}

.place-form__field input[aria-invalid="true"] {
	border: 2px solid #b4232a;
}

.place-form__err {
	color: #b4232a;
	font-size: .9rem;
	margin: 4px 0 0;
	min-height: 1.3em;
}

.place-form__opt {
	color: #6d6a87;
}

.place-form__hp {
	position: absolute;
	left: -9999px;
}

.form-alert {
	background: #fff4f2;
	border-left: 4px solid #b4232a;
	margin-bottom: 20px;
	padding: 12px 16px;
}

/* piede */
.footer {
	background: var(--mezzanotte-fonda);
	color: #cfcbe8;
	font-size: .95rem;
	padding: 70px 30px 30px;
}

.footer__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: 36px;
	max-width: 1210px;
	margin: 0 auto;
}

.footer__col img {
	width: 170px;
	margin-bottom: 14px;
}

.footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer__col li {
	margin-bottom: 8px;
}

.footer__col a,
.footer__link-btn {
	color: #fff;
	text-decoration: none;
}

.footer__col a:hover,
.footer__link-btn:hover {
	text-decoration: underline;
}

.footer__link-btn {
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-align: left;
}

.footer__title {
	color: var(--giallo);
	font-weight: 600;
	margin: 0 0 12px;
}

.footer__mail {
	overflow-wrap: anywhere;
}

.footer__legal {
	max-width: 1210px;
	margin: 40px auto 0;
	border-top: 1px solid #332d5c;
	padding-top: 20px;
}

/* consenso */
.consent {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 80;
	max-width: 430px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 34px rgba(23, 19, 46, .25);
	padding: 22px 24px;
	font-size: .95rem;
}

.consent__title {
	color: var(--mezzanotte);
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 6px;
}

.consent__more {
	display: flex;
	gap: 8px;
}

.consent__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.consent .btn {
	padding: 9px 14px;
	font-size: .9rem;
}

@media (max-width: 992px) {
	.icon-row {
		grid-template-columns: 1fr 1fr;
	}
	.header__caption {
		display: none;
	}
	.apertura,
	.row,
	.zig {
		grid-template-columns: 1fr;
	}
	.apertura__testo {
		justify-self: start;
	}
	.zig {
		gap: 50px;
		margin-bottom: 90px;
	}
	.zig--reverse .zig__media {
		order: 0;
	}
	.footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.header {
		flex-wrap: wrap;
		padding: 16px;
	}
	.header__burger {
		display: block;
	}
	.header__nav {
		display: none;
		flex-basis: 100%;
		margin-left: 0;
	}
	.header__nav.is-open {
		display: block;
	}
	.header__menu {
		flex-direction: column;
	}
	.header > .btn {
		display: none;
	}
	.side-icons {
		top: auto;
		bottom: 120px;
	}
	.apertura {
		padding: 30px 16px 60px;
	}
	.apertura__sotto {
		font-size: 1.15rem;
	}
	.wheel__pill {
		position: static;
		display: inline-block;
		margin: 4px 6px 0 0;
		font-size: .9rem;
	}
	.row,
	.zigzag,
	.domande-box,
	.band,
	.content,
	.page-top {
		padding-left: 16px;
		padding-right: 16px;
	}
	.row {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	.band__groups,
	.footer__inner {
		grid-template-columns: 1fr;
	}
	.zig__card {
		left: 12px;
		bottom: -20px;
		width: 140px;
	}
	.consent {
		left: 12px;
		right: 12px;
		max-width: none;
	}
}

@media (max-width: 480px) {
	.icon-row {
		grid-template-columns: 1fr;
	}
	.apertura__azioni {
		gap: 12px;
	}
	.legal-table th,
	.table-plain th {
		width: 38%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wheel__slice {
		transition: none;
	}
}

.footer__col--wide p {
	max-width: 34ch;
}

.body-container--home .footer {
	margin-top: 0;
}

.row--limits .row__img {
	aspect-ratio: 4 / 3;
}

.row__aside {
	background: var(--lavanda);
	border-left: 4px solid var(--giallo);
	padding: 26px 28px;
	margin: 0;
}
