:root {
  --ink: #25486d;
  --ink-2: #3a638b;
  --text: #172033;
  --muted: #5d6a7c;
  --line: #dce4ef;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --accent: #238991;
  --whatsapp: #25d366;
  --shadow: 0 18px 45px rgba(37, 72, 109, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 58px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.text-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 68px;
  padding: 8px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(37, 72, 109, 0.96);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 72, 109, 0.16);
  backdrop-filter: blur(10px);
}

.brand img {
  width: 56px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand span {
  display: grid;
  gap: 0;
  line-height: 1.1;
}

.brand strong {
  color: #fff;
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  color: #f0d98d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  grid-column: 3;
  width: 46px;
  height: auto;
  justify-self: end;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #d8f3ef;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 64px 20px 76px;
  color: #fff;
  overflow: hidden;
  background: #25486d;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::before {
  background: url("../torino.jpg") center / cover no-repeat;
  filter: saturate(0.82) contrast(0.96) brightness(1.02);
  transform: scale(1.02);
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(37, 72, 109, 0.72), rgba(37, 72, 109, 0.48) 48%, rgba(37, 72, 109, 0.18)),
    linear-gradient(180deg, rgba(37, 72, 109, 0.08), rgba(37, 72, 109, 0.18));
}

.hero-content {
  width: min(660px, 100%);
  margin-left: max(20px, calc((100vw - 1160px) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0d98d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 24px;
}

.hero-lead {
  max-width: 660px;
  color: #e9f0f7;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 72, 109, 0.18);
}

.hero .button-primary {
  background: #fff;
  color: var(--ink);
}

.button-outline {
  margin: 28px auto 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: #e9f0f7;
}

.hero-contact a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--soft);
}

.page-hero {
  padding: 96px 0 52px;
  background: var(--soft);
}

.page-hero h1 {
  max-width: 780px;
  color: var(--ink);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.legal-content {
  display: grid;
  gap: 28px;
  padding: 64px 0 86px;
}

.legal-block {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-block h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.legal-block p,
.legal-block li {
  color: var(--muted);
}

.legal-block ul {
  margin: 0;
  padding-left: 22px;
}

.privacy-page {
  background: var(--soft);
}

.privacy-document {
  padding: 56px 0 76px;
}

.privacy-document .section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.privacy-document .section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.privacy-header {
  margin-bottom: 36px;
  text-align: center;
}

.privacy-logo {
  width: 82px;
  height: auto;
  margin: 0 auto 20px;
}

.privacy-document h1,
.privacy-document h2,
.privacy-document h3 {
  color: var(--ink);
}

.privacy-document h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.privacy-document h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.privacy-document p,
.privacy-document li,
.privacy-document td {
  color: var(--muted);
}

.privacy-document a {
  color: var(--ink);
  font-weight: 800;
}

.privacy-document ul {
  padding-left: 22px;
}

.info-table {
  width: 100%;
  margin: 16px 0 24px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.info-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.info-table tr:last-child td {
  border-bottom: 0;
}

.contact-info {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.privacy-signature,
.back-link {
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p,
.narrow p,
.contact-layout p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.service-card,
.review-card,
.hours,
.contact-form,
.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-trigger {
  width: 100%;
  min-height: 86px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.service-trigger i {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.service-card.is-open .service-trigger i {
  transform: rotate(180deg);
}

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.service-card.is-open .service-panel {
  grid-template-rows: 1fr;
}

.service-panel ul {
  min-height: 0;
  margin: 0;
  padding: 0 18px;
  overflow: hidden;
  list-style: none;
}

.service-card.is-open .service-panel ul {
  padding: 16px 18px 20px;
}

.service-panel li {
  padding: 9px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.service-panel li:last-child {
  border-bottom: 0;
}

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

.review-card {
  padding: 24px;
}

.stars {
  margin-bottom: 12px;
  color: #d98a00;
  letter-spacing: 0;
}

.review-card p {
  color: var(--muted);
  font-style: italic;
}

.review-card strong {
  color: var(--ink);
}

.hours {
  padding: 14px 24px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.hours div:last-child {
  border-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.contact-form {
  padding: 28px;
}

label {
  display: block;
  margin: 16px 0 8px;
  color: var(--ink);
  font-weight: 800;
}

label:first-child {
  margin-top: 0;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bcc8d8;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

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

.contact-form .button,
.modal-dialog .button {
  width: 100%;
  margin-top: 18px;
}

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

.map-card {
  padding: 16px;
}

.map-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.map-card p {
  margin-bottom: 10px;
  color: var(--muted);
}

.map-card iframe {
  width: 100%;
  height: 150px;
  border: 0;
  border-radius: 8px;
}

.map-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  padding: 28px 20px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.error-page {
  min-height: calc(100vh - 124px);
  display: grid;
  place-items: center;
  padding: 76px 20px;
  background: var(--soft);
}

.error-card {
  width: min(560px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.error-code {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-card h1 {
  color: var(--ink);
}

.error-card p {
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.floating-contacts {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 900;
  display: grid;
  gap: 8px;
}

.floating-contacts a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 72, 109, 0.92);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 72, 109, 0.18);
  font-size: 15px;
}

.floating-contacts .whatsapp {
  background: #1fae59;
}

.back-to-top {
  position: fixed;
  left: 18px;
  bottom: 24px;
  z-index: 900;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 72, 109, 0.92);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 72, 109, 0.18);
  font-size: 15px;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--ink-2);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(37, 72, 109, 0.68);
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.rating {
  display: flex;
  gap: 4px;
}

.rating button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #b8c2d0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.rating button.is-active {
  color: #d98a00;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    transform: none;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

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

@media (max-width: 780px) {
  html {
    scroll-padding-top: 56px;
  }

  .site-header {
    min-height: 62px;
    padding: 7px 14px;
  }

  .brand img {
    width: 50px;
    height: auto;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
  }

  .brand-mark {
    width: 38px;
    justify-self: end;
  }

  .site-nav {
    inset: 62px 0 auto 0;
  }

  .hero {
    min-height: auto;
    padding: 58px 20px 66px;
  }

  .hero-content {
    margin-left: 0;
  }

  .section {
    padding: 64px 0;
  }

  .service-grid,
  .reviews,
  .contact-layout,
  .maps {
    grid-template-columns: 1fr;
  }

  .floating-contacts {
    right: 12px;
    bottom: 76px;
  }

  .back-to-top {
    left: 12px;
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1160px);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hours div {
    display: grid;
    gap: 2px;
  }

  .contact-form,
  .modal-dialog,
  .map-card,
  .review-card {
    padding: 20px;
  }

  .floating-contacts a {
    width: 40px;
    height: 40px;
  }
}
