:root {
  --ink: #0f1c1a;
  --ink-soft: #2a3d38;
  --muted: #5a6f69;
  --paper: #f3f6f4;
  --surface: #ffffff;
  --line: #d5e0db;
  --teal: #0b6e4f;
  --teal-deep: #08553d;
  --teal-soft: #e6f3ee;
  --accent: #c45c26;
  --accent-soft: #f8ebe3;
  --shadow: 0 18px 50px rgba(15, 28, 26, 0.1);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(11, 110, 79, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 38, 0.08), transparent 55%),
    linear-gradient(180deg, #eef4f1 0%, var(--paper) 35%, #e8efeb 100%);
  line-height: 1.6;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 244, 0.86);
  border-bottom: 1px solid rgba(213, 224, 219, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(11, 110, 79, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(11, 110, 79, 0.28);
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff !important;
}

.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff !important;
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(196, 92, 38, 0.25);
}

.btn-accent:hover {
  background: #a84b1d;
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 28, 24, 0.88) 0%, rgba(8, 28, 24, 0.55) 48%, rgba(8, 28, 24, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%231a3d36'/%3E%3Cstop offset='1' stop-color='%230b6e4f'/%3E%3C/linearGradient%3E%3ClinearGradient id='road' x1='0.5' y1='0' x2='0.5' y2='1'%3E%3Cstop stop-color='%232a2f2e'/%3E%3Cstop offset='1' stop-color='%23111111'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='800' fill='url(%23sky)'/%3E%3Cpath d='M0 420 Q300 360 600 420 T1200 400 L1200 800 L0 800 Z' fill='%230d4a38' opacity='0.45'/%3E%3Cpath d='M420 800 L560 320 L640 320 L780 800 Z' fill='url(%23road)'/%3E%3Cpath d='M590 320 L610 320 L620 800 L580 800 Z' fill='%23e8f0ec' opacity='0.35'/%3E%3Ccircle cx='920' cy='160' r='48' fill='%23f4e8d0' opacity='0.7'/%3E%3Cpath d='M180 520 h140 l-20 40 h-140z' fill='%23c45c26' opacity='0.85'/%3E%3Cpath d='M900 540 h160 l-24 48 h-160z' fill='%23dff0e8' opacity='0.4'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 14ch;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 1rem;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff !important;
}

.hero .btn-secondary:hover {
  background: #fff;
  color: var(--ink) !important;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  animation: fadeUp 0.8s ease 0.4s both;
}

.trust-item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 14px;
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.trust-item span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.advantage {
  padding: 1.4rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.advantage:hover {
  transform: translateY(-4px);
}

.advantage-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.advantage h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.advantage p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Packages */
.packages {
  background: linear-gradient(180deg, rgba(11, 110, 79, 0.05), transparent 40%);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.package {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.package.featured {
  border-color: var(--teal);
  box-shadow: 0 22px 50px rgba(11, 110, 79, 0.16);
  transform: translateY(-6px);
}

.package.featured::before {
  content: "Consigliato";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.package h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.package .price {
  margin: 0.4rem 0 1rem;
  font-size: 2.2rem;
  font-weight: 750;
  color: var(--teal-deep);
  letter-spacing: -0.03em;
}

.package .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.package ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.package li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.package li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

.package .excluded {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.package .excluded strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--teal);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--teal);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
}

.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.contact-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}

.contact-list strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.messengers a {
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 240px;
  border-radius: 16px;
  background: var(--teal-soft);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fbfcfb;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(11, 110, 79, 0.35);
  border-color: var(--teal);
  background: #fff;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 600;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.4s ease;
}

/* Legal */
.legal {
  padding-top: 3rem;
  padding-bottom: 2rem;
  background: #e7eee9;
}

.legal-grid {
  display: grid;
  gap: 1rem;
}

.legal-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.legal-block h2,
.legal-block h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.legal-block p,
.legal-block li {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.legal-block ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.price-table th,
.price-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.price-table th {
  background: var(--teal-soft);
}

.legal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.15rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .trust-row,
  .advantages-grid,
  .packages-grid,
  .steps,
  .contacts-grid,
  .legal-cols,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .package.featured {
    transform: none;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(243, 246, 244, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content {
    padding: 5.5rem 0 3rem;
  }

  .trust-row,
  .advantages-grid,
  .packages-grid,
  .steps,
  .contacts-grid,
  .legal-cols,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3.5rem 0;
  }
}
