:root {
  --bg: #f5eee7;
  --bg-soft: #efe3d8;
  --surface: #ffffff;
  --text: #342425;
  --text-soft: #5c4a43;
  --brand-deep: #261a1a;
  --brand-dark: #3e2b2a;
  --brand-mid: #8a6051;
  --brand-light: #c29072;
  --brand-accent: #e7c8b1;
  --line: #dbc6b7;
  --shadow: 0 14px 36px rgba(62, 43, 42, 0.13);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    repeating-linear-gradient(
      -14deg,
      rgba(194, 144, 114, 0.05) 0 18px,
      transparent 18px 36px
    ),
    radial-gradient(1200px 500px at 12% -12%, rgba(194, 144, 114, 0.26), transparent 60%),
    radial-gradient(1200px 500px at 100% 0%, rgba(138, 96, 81, 0.2), transparent 60%),
    linear-gradient(180deg, #f8f2ec 0%, #f2e8de 100%);
  line-height: 1.45;
}

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

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

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(248, 242, 236, 0.88);
  border-bottom: 1px solid rgba(138, 96, 81, 0.24);
  box-shadow: 0 8px 24px rgba(63, 40, 34, 0.08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 6px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5a4640;
  border: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.main-nav a:hover {
  background: rgba(194, 144, 114, 0.16);
  border-color: rgba(138, 96, 81, 0.26);
  color: #2e1f1c;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border-radius: 10px;
  background: rgba(255, 250, 244, 0.85);
  border: 1px solid rgba(138, 96, 81, 0.2);
}

.brand img {
  width: auto;
  height: clamp(42px, 5vw, 52px);
  object-fit: contain;
}

.hero {
  position: relative;
  min-height: min(860px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      105deg,
      rgba(23, 14, 12, 0.84) 0%,
      rgba(23, 14, 12, 0.7) 40%,
      rgba(23, 14, 12, 0.38) 70%,
      rgba(23, 14, 12, 0.2) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.34) 100%);
}

.hero-inner {
  width: 100%;
  min-height: inherit;
  padding: clamp(28px, 6vh, 56px) 0;
  display: flex;
  align-items: stretch;
}

.hero-copy {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(106deg, rgba(24, 14, 12, 0.84) 0%, rgba(24, 14, 12, 0.7) 52%, rgba(24, 14, 12, 0.55) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.hero-copy-grid {
  min-height: clamp(420px, 62vh, 620px);
  padding: clamp(20px, 3.2vw, 34px) 0;
  display: grid;
  gap: 20px;
  align-items: center;
}

.hero-main {
  max-width: 74ch;
}

.hero-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-copy h1,
.section-heading h2,
.policy-wrap h1,
.policy-wrap h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-copy h1 {
  font-size: clamp(1.95rem, 4.5vw, 3.3rem);
  line-height: 1.06;
  margin-top: 10px;
  color: #fff;
}

.lead {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 58ch;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--brand-mid);
}

.hero-eyebrow {
  color: #f1d0b7;
  letter-spacing: 0.11em;
}

.hero .lead {
  color: rgba(253, 245, 238, 0.9);
  max-width: 60ch;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-helper {
  margin: 14px 0 0;
  color: rgba(255, 245, 238, 0.84);
  font-size: 0.95rem;
  max-width: 56ch;
}

.hero .btn-primary {
  box-shadow: 0 12px 26px rgba(24, 14, 12, 0.5);
}

.hero .btn-text {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.hero .btn-text:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}

.hero-panel-service {
  background: rgba(31, 20, 17, 0.45);
}

.hero-panel-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 212, 189, 0.95);
  font-weight: 800;
}

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

.hero-icons li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 245, 238, 0.96);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-icons svg {
  width: 18px;
  height: 18px;
  fill: #f4d4bd;
  flex: 0 0 18px;
}

.section {
  padding: clamp(42px, 6vw, 74px) 0;
}

.section-alt {
  background:
    radial-gradient(circle at 20% -20%, rgba(194, 144, 114, 0.25), transparent 50%),
    linear-gradient(180deg, #f0e4d9 0%, #e8d8c8 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  margin-top: 8px;
  max-width: 24ch;
}

.service-grid {
  margin-top: 26px;
  display: grid;
  --service-gap: 18px;
  gap: var(--service-gap);
}

.card,
.faq-item,
.process-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(62, 43, 42, 0.07);
}

.card {
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(62, 43, 42, 0.14);
  border-color: rgba(138, 96, 81, 0.36);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.card h3,
.process-list h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.card h3 {
  padding: 16px 18px 0;
}

.card p {
  margin: 8px 0 0;
  padding: 0 18px 20px;
  color: var(--text-soft);
}

#servizi .card h3 {
  min-height: 2.7em;
}

#servizi .card p {
  min-height: 3.2em;
}

.reviews-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(62, 43, 42, 0.07);
  padding: 18px;
}

.review-stars {
  letter-spacing: 2px;
  font-size: 0.98rem;
  color: #d0992f;
}

.review-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.review-author {
  display: block;
  margin-top: 10px;
  color: #5a463f;
  font-size: 0.88rem;
  font-weight: 700;
}

.social-proof-strip {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(194, 144, 114, 0.15), rgba(138, 96, 81, 0.12));
  border: 1px solid rgba(138, 96, 81, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.social-proof-strip strong {
  display: block;
  color: var(--brand-dark);
}

.social-proof-strip span {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.process-wrap .section-heading h2 {
  max-width: 20ch;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.process-list li {
  padding: 18px;
  border-top: 4px solid rgba(138, 96, 81, 0.28);
}

.process-list p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.center {
  margin-top: 20px;
}

.faq-accordion {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 18px 54px 18px 18px;
  font-family: "Fraunces", serif;
  color: var(--brand-dark);
  font-size: 1.12rem;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #5c463f;
  border: 1px solid rgba(138, 96, 81, 0.32);
  background: rgba(194, 144, 114, 0.14);
}

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

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--text-soft);
  border-top: 1px solid rgba(138, 96, 81, 0.24);
  line-height: 1.48;
}

.wa-widget {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 60;
  width: min(360px, calc(100vw - 24px));
}

.wa-widget-panel {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(22, 93, 69, 0.2);
  box-shadow: 0 22px 54px rgba(20, 15, 12, 0.27);
  background: #ece5dd;
}

.wa-widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(140deg, #0a8b68, #097a5d);
  color: #fff;
}

.wa-widget-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  font-family: "Fraunces", serif;
  font-weight: 700;
}

.wa-widget-meta strong {
  display: block;
  font-size: 0.95rem;
  font-family: "Fraunces", serif;
}

.wa-widget-meta span {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.86);
}

.wa-widget-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.wa-chat-body {
  min-height: 170px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  gap: 9px;
  background:
    linear-gradient(180deg, rgba(229, 221, 213, 0.96), rgba(229, 221, 213, 0.96)),
    linear-gradient(135deg, #efe5db, #e7dace);
}

.wa-chat-bubble {
  max-width: 92%;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.wa-chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.wa-chat-in {
  background: #fff;
  color: #352724;
  border: 1px solid rgba(88, 61, 54, 0.15);
}

.wa-chat-out {
  margin-left: auto;
  background: #dcf8c6;
  color: #2c2724;
  border: 1px solid rgba(58, 96, 56, 0.14);
}

.wa-chat-guide {
  margin: 0;
  font-size: 0.78rem;
  color: #6c5c56;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(102, 80, 74, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
}

.wa-chat-form {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #f4f0eb;
  border-top: 1px solid rgba(93, 63, 54, 0.16);
}

.wa-chat-form textarea {
  width: 100%;
  min-height: 86px;
  border: 1px solid rgba(93, 63, 54, 0.28);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  resize: vertical;
}

.wa-chat-form textarea:focus {
  border-color: rgba(47, 143, 79, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 143, 79, 0.14);
  outline: none;
}

.wa-chat-submit {
  width: 100%;
}

.site-footer {
  background:
    linear-gradient(120deg, rgba(25, 17, 17, 0.22), rgba(25, 17, 17, 0.22)),
    linear-gradient(180deg, #3c2a28 0%, #2f201f 100%);
  color: #f8efe6;
  padding: 38px 0 30px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.site-footer h2 {
  font-family: "Fraunces", serif;
  margin: 0;
}

.site-footer p {
  margin: 8px 0 0;
  color: #e7d5c7;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.site-footer .btn-text {
  color: #fff6ee;
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.12);
}

.site-footer .btn-text:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.88);
}

.footer-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #f9d9c2;
}

.cookie-link-button {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.image-credit {
  margin: 2px 0 0;
  font-size: 0.84rem;
  opacity: 0.85;
}

.policy-wrap {
  max-width: 900px;
}

.policy-wrap h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin-top: 8px;
}

.policy-wrap .policy-note {
  color: var(--text-soft);
  margin-top: 8px;
}

.policy-wrap section {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 16px 14px;
  margin-top: 16px;
}

.policy-wrap h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.policy-wrap p,
.policy-wrap li {
  color: var(--text-soft);
}

.policy-wrap ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.policy-wrap a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  table-layout: auto;
}

.policy-table-wrap {
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
  color: var(--text-soft);
  font-size: 0.93rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.policy-table th {
  background: rgba(194, 144, 114, 0.16);
  color: var(--brand-dark);
  font-weight: 700;
}

.policy-table code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.policy-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1;
  min-height: 44px;
  padding: 0.86rem 1.24rem;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-light));
  color: #fff8f1;
  box-shadow: 0 10px 20px rgba(91, 59, 51, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7b5548, #bf8466);
}

.btn-ghost {
  border-color: rgba(104, 68, 58, 0.45);
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.7);
}

.btn-text {
  color: var(--brand-dark);
  border-color: rgba(104, 68, 58, 0.28);
}

.wa-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 61;
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #23d366, #16a853);
  color: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 28px rgba(18, 73, 39, 0.35);
}

.wa-launcher-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.wa-launcher:hover {
  background: linear-gradient(135deg, #1ab95a, #118f45);
}

.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.cookie-preferences {
  display: grid;
  gap: 8px;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.cookie-option input {
  width: 16px;
  height: 16px;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.cookie-banner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-manage-trigger {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 29;
  border: 1px solid rgba(104, 68, 58, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(62, 43, 42, 0.14);
  cursor: pointer;
}

.cookie-manage-trigger:hover {
  background: rgba(255, 255, 255, 1);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 240ms;
}

.delay-3 {
  animation-delay: 360ms;
}

.delay-4 {
  animation-delay: 480ms;
}

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

@media (min-width: 800px) {
  .hero-copy-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: end;
    gap: clamp(28px, 4vw, 56px);
  }

  .hero-aside {
    justify-self: end;
    width: min(100%, 440px);
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 700px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
    margin-inline: auto;
  }
}

@media (max-width: 799px) {
  .main-nav {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .nav-wrap .btn {
    width: auto;
    padding-inline: 0.9rem;
    min-height: 36px;
    font-size: 0.9rem;
  }

  .brand img {
    height: 40px;
  }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero-copy-grid {
    min-height: auto;
    padding: 16px 0;
  }

  .hero-panel {
    padding: 10px 12px;
  }

  .hero-icons li {
    font-size: 0.9rem;
  }

  .wa-widget {
    right: 10px;
    bottom: 82px;
    width: min(360px, calc(100vw - 20px));
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
  }

  .cookie-manage-trigger {
    left: 12px;
    bottom: 12px;
    font-size: 0.85rem;
  }

  .wa-launcher {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .btn {
    transition: none;
  }
}
