/* || General Styles */

html, body, header, nav, h1, h2, h3, h4, div, ul, li, a, p, button, main, section, img, footer {
	margin: 0;
	padding: 0;
	border: 0;
}

html {
	background-color: #fff;
	color: #1d1d1f;
	scroll-behavior: smooth;
}

/* || Utilities */

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

main a {
	color: #0066cc;
}

main a:hover {
	text-decoration-line: underline;
}

a:focus-visible {
	outline: 3px solid #0066cc;
	outline-offset: 4px;
}

@media only screen and (max-width: 1024px) {
	main a:focus {
		text-decoration-line: underline;
	}
}

.visuallyhidden {
	clip: rect(0 0 0 0);
	clip-path: inset(0 0 100% 100%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.red {
	color: #e11d2e;
}

/* || Typography */

html {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 10px;
}

body {
	font-size: 17px;
	font-size: 1.7rem;
	line-height: 1.5;
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* || Navigation Bar */

.navbar {
	position: fixed;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid #ececf0;
	z-index: 999;
}

.navbar-content {
	margin: 0 auto;
	padding-top: 16px;
	padding-right: calc(max(22px, env(safe-area-inset-right)));
	padding-bottom: 16px;
	padding-left: calc(max(22px, env(safe-area-inset-left)));
	max-width: 1000px;
}

.main-menu {
	display: flex;
	justify-content: space-between;
	user-select: none;
	align-items: center;
	gap: 24px;
}

.menu-link {
	font-size: 17px;
	font-size: 1.7rem;
	line-height: 3.3;
	letter-spacing: 0.05rem;
	color: #424245;
	opacity: .9;
}

.menu-link:hover {
	opacity: 1;
}

.home-link {
	opacity: .8;
}

.home-link:hover {
	opacity: 1;
}

/* || Main */

main {
	position: relative;
	top: 89px;
}

/* || Contatti Sections */

.contatti-first-section {
	background: linear-gradient(135deg, #ffffff, #f7f7f9);
	display: grid;
	grid-template-columns: minmax(22px, 1fr) minmax(0, 560px) minmax(320px, 640px) minmax(22px, 1fr);
	column-gap: 56px;
	align-items: center;
	min-height: 180px;
	padding: 24px 0;
}

.contatti-first-section-content {
	grid-column: 2;
}

.contatti-first-section-title {
	font-size: 72px;
	font-size: 7.2rem;
	font-weight: 700;
	line-height: 1.02;
	color: #1d1d1f;
}

.contatti-first-section-p {
	font-size: 24px;
	font-size: 2.4rem;
	line-height: 1.45;
	color: #515154;
	margin-top: 20px;
	max-width: 620px;
}

.contatti-first-section-link {
	font-size: 17px;
	font-size: 1.7rem;
	margin-top: 24px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.contatti-first-section-image {
	grid-column: 3;
	width: 100%;
}

.contatti-first-section-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(29, 29, 31, 0.12);
	display: block;
}

.button-link {
	display: inline-block;
	background-color: #e11d2e;
	color: #ffffff;
	border: 2px solid #e11d2e;
	border-radius: 999px;
	padding: 10px 24px;
	font-weight: 700;
	transition: background-color 0.2s, color 0.2s;
}

.button-link:hover {
	background-color: #b91524;
	border-color: #b91524;
	text-decoration-line: none;
	color: #ffffff;
}

.button-outline {
	background-color: transparent;
	color: #e11d2e;
}

.button-outline:hover {
	background-color: #e11d2e;
	color: #ffffff;
}

.contatti-second-section {
	background-color: #f7f7f9;
	padding: 100px 22px;
}

.contatti-form-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	margin-bottom: 64px;
}

.contatti-info-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
	flex: 0 0 360px;
}

.info-box {
	background-color: #ffffff;
	padding: 6px 32px 32px;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
	border: 1px solid #e6e6e8;
}

.info-box h2 {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1d1d1f;
	margin: 0 0 16px 0;
}

.info-box-subheading {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1d1d1f;
	margin: 28px 0 16px 0;
}

.info-list {
	list-style: disc;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.info-list li {
	font-size: 1.5rem;
	line-height: 1.5;
	color: #515154;
}

.info-box .info-box-note {
	font-size: 1.5rem;
	line-height: 1.5;
	color: #515154;
	margin-top: 12px;
	margin-bottom: 0;
}

.icon-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.icon-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 1.5rem;
	line-height: 1.5;
	color: #515154;
}

.icon-list svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #e11d2e;
}

.icon-list a {
	color: #e11d2e;
}

.contact-card-box {
	background-color: #ffffff;
	padding: 6px 40px 40px;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
	border: 1px solid #e6e6e8;
	flex: 1;
}

.contact-card-box h2 {
	font-size: 2.7rem;
	margin: 0 0 16px;
}

.error-message {
	display: none;
	color: #e11d2e;
	font-size: 14px;
	font-size: 1.6rem;
	margin-top: 4px;
	font-weight: 500;
}

input.invalid, textarea.invalid {
	border-color: #e11d2e;
}

.privacy-consent-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}

.privacy-consent-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin-top: 3px;
	padding: 0;
	border-radius: 4px;
	cursor: pointer;
	accent-color: #e11d2e;
}

.privacy-consent-row label {
	font-weight: 400;
	cursor: pointer;
}

.privacy-consent-row label a {
	color: #e11d2e;
}

#confirmation-message {
	display: none;
	background-color: #f7f7f9;
	border-left: 4px solid #e11d2e;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#confirmation-message h3 {
	font-size: 2.0rem;
	font-weight: 700;
	color: #1d1d1f;
	margin-bottom: 12px;
	margin-top: 0;
}

#confirmation-message p {
	font-size: 1.5rem;
	color: #515154;
	line-height: 1.5;
	margin: 0;
}

.contatti-container {
	max-width: 1280px;
	margin: 0 auto;
}

.contatti-second-section p {
	font-size: 24px;
	font-size: 2.4rem;
	line-height: 1.45;
	color: #515154;
	margin-bottom: 32px;
}

.contatti-second-section p.contatti-second-section-subtitle {
	font-size: 1.6rem;
	line-height: 1.6;
	margin-bottom: 24px;
}

form ul {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

form li {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

label {
	font-size: 1.6rem;
	font-weight: 600;
}

input, textarea {
	padding: 12px;
	border: 1px solid #d2d2d7;
	border-radius: 8px;
	font-size: 1.6rem;
	font-family: inherit;
}

textarea {
	min-height: 150px;
	resize: vertical;
}

button {
	display: inline-block;
	background-color: #e11d2e;
	color: #ffffff;
	border: 2px solid #e11d2e;
	border-radius: 999px;
	padding: 12px 32px;
	font-weight: 700;
	font-size: 1.6rem;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
	width: 100%;
}

button:hover {
	background-color: #b91524;
	border-color: #b91524;
}

.contatti-second-section h2 {
	font-size: 42px;
	font-size: 4.2rem;
	font-weight: 700;
	line-height: 1.1;
	color: #1d1d1f;
	margin: 64px 0 32px;
}

iframe {
	width: 100%;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

#oto-map {
	height: 440px;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
	border: 1px solid #e6e6e8;
	z-index: 1;
}

.oto-popup {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.45;
	min-width: 180px;
}

.oto-popup strong {
	font-size: 14px;
	font-weight: 700;
	color: #1d1d1f;
}

.oto-popup span {
	color: #515154;
}

.oto-popup a {
	color: #0066cc;
	text-decoration: none;
}

.oto-popup a:hover {
	text-decoration: underline;
}

.oto-popup-link {
	color: #e11d2e !important;
	font-weight: 600;
	margin-top: 2px;
}

/* || Media Queries */

@media (max-width: 1024px) {
	.contatti-first-section {
		grid-template-columns: 22px 1fr 22px;
		column-gap: 0;
		row-gap: 32px;
		padding: 32px 0;
	}

	.contatti-first-section-content,
	.contatti-first-section-image {
		grid-column: 2;
	}
}

@media (max-width: 767px) {
	main {
		top: 82px;
	}

	.navbar-content {
		padding-right: 16px;
		padding-left: 16px;
	}

	.menu-link {
		font-size: 15px;
		font-size: 1.5rem;
	}

	.contatti-first-section {
		grid-template-columns: 16px 1fr 16px;
	}

	.contatti-first-section-title {
		font-size: 46px;
		font-size: 4.6rem;
	}

	.contatti-first-section-p {
		font-size: 20px;
		font-size: 2rem;
	}

	.contatti-first-section-link {
		margin-top: 20px;
	}

	.contatti-second-section {
		padding: 50px 16px;
	}

	.contatti-second-section p {
		font-size: 20px;
		font-size: 2rem;
	}

	.contatti-second-section h2 {
		font-size: 32px;
		font-size: 3.2rem;
	}

	.contact-card-box {
		padding: 24px 16px;
	}

	.contatti-form-layout {
		flex-direction: column;
	}

	.contatti-info-column {
		flex: 1 1 auto;
		width: 100%;
	}

	#oto-map {
		height: 300px;
	}
}
