/* Torino Cartongesso — mobile-first */
:root {
  --ink: #1f2531;
  --ink-soft: #3a4252;
  --red: #b30707;
  --red-dark: #8e0505;
  --blue: #044086;
  --blue-soft: #0a5aad;
  --paper: #f3f1ed;
  --paper-2: #e8e4dc;
  --white: #ffffff;
  --line: rgba(31, 37, 49, 0.12);
  --shadow: 0 18px 40px rgba(31, 37, 49, 0.12);
  --radius: 4px;
  --header-h: 64px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 37, 49, 0.94);
  backdrop-filter: blur(10px);
  color: var(--white);
  min-height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem; flex-wrap: wrap;
}
.header-actions {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 2px;
}
.lang-btn {
  min-width: 36px; min-height: 36px; border: 0; background: transparent;
  color: rgba(255,255,255,.75); font: 600 .75rem/1 var(--font);
  cursor: pointer; border-radius: 2px; letter-spacing: .04em;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang-btn.is-active {
  background: var(--red); color: #fff;
}
.lang-switch--nav {
  display: none; margin-top: .75rem; width: fit-content;
}
.lang-switch--bar { display: none; }
.recaptcha-note {
  margin: .75rem 0 0; font-size: .72rem; color: var(--ink-soft);
}
.recaptcha-note::after {
  content: " · Google";
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .01em;
}
.brand-mark { border-radius: 50%; }
.brand-text { font-size: 1rem; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; padding: 10px;
  display: grid; gap: 5px; place-content: center; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; transition: .2s;
}
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--ink); display: none; flex-direction: column; padding: 1rem 1.25rem 1.5rem; gap: .25rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: #fff; text-decoration: none; padding: .85rem .5rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08); min-height: 44px;
}
.site-nav .nav-cta {
  margin-top: .5rem; text-align: center; background: var(--red); border: 0; border-radius: var(--radius);
}
.site-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

/* Hero */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
  background: #1f2531;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(31,37,49,.82) 12%, rgba(4,64,134,.45) 52%, rgba(179,7,7,.38) 100%),
    linear-gradient(180deg, rgba(31,37,49,.25) 0%, rgba(31,37,49,.78) 100%);
  pointer-events: none;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-content {
  position: relative; z-index: 1; padding: 3.5rem 0 3rem;
  animation: rise .8s ease both;
}
.hero-kicker {
  display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.75); margin-bottom: .85rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 9vw, 4.4rem);
  line-height: 1.05; margin: 0 0 1rem; max-width: 12ch;
}
.hero-lead {
  max-width: 34ch; margin: 0 0 1.75rem; color: rgba(255,255,255,.88); font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .75rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 1rem; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-soft); color: #fff; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #ebe7df; }
.section-dark {
  background: linear-gradient(135deg, var(--ink) 0%, #151922 60%, #042a57 100%);
  color: #fff;
}
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.15; margin: 0 0 .75rem;
}
.section-head p { margin: 0; color: var(--ink-soft); }
.section-dark .section-head p { color: rgba(255,255,255,.78); }
.eyebrow {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red);
  margin: 0 0 .5rem; font-weight: 600;
}
.section-dark .eyebrow { color: #ffb4b4; }

/* Services */
.service-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
.service-item {
  background: var(--white); border: 1px solid var(--line); padding: 1.25rem 1.2rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-item h3 {
  margin: 0 0 .45rem; font-size: 1.1rem; font-weight: 650;
}
.service-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.service-item.is-primary {
  border-color: transparent;
  background: linear-gradient(160deg, #fff 0%, #f7f4ee 100%);
  box-shadow: inset 3px 0 0 var(--red);
}
.service-ph {
  aspect-ratio: 16/10;
  margin: 0 0 1rem;
  background: var(--paper-2);
  overflow: hidden;
}
.service-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.secondary-row {
  display: grid; gap: 1rem; margin-top: 1.5rem;
}
.secondary-card {
  padding: 1.1rem 1.2rem; border-left: 3px solid var(--blue); background: rgba(4,64,134,.05);
}
.secondary-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.secondary-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* About */
.about-grid { display: grid; gap: 1.5rem; }
.about-copy p { color: var(--ink-soft); }
.about-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.about-points li {
  padding-left: 1.25rem; position: relative; color: var(--ink);
}
.about-points li::before {
  content: ""; position: absolute; left: 0; top: .55rem; width: .55rem; height: .55rem;
  background: var(--red); border-radius: 1px;
}
.about-visual {
  min-height: 260px;
  background: var(--paper-2);
  overflow: hidden;
}
.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Area */
.area-list {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.area-list li {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: .45rem .8rem; font-size: .9rem;
}

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
.contact-aside p { margin: .35rem 0; }
.contact-aside a { color: var(--blue); font-weight: 500; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); padding: 1.25rem;
}
.form-row { display: grid; gap: .85rem; margin-bottom: .85rem; }
.form-field label {
  display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem;
}
.form-field input,
.form-field textarea {
  width: 100%; min-height: 48px; padding: .7rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent;
}
.form-field.is-error input,
.form-field.is-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: .8rem; margin-top: .25rem; display: none; }
.form-field.is-error .field-error { display: block; }
.hp-field {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.form-check {
  display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; margin: 1rem 0 1.25rem;
}
.form-check input { width: 20px; height: 20px; margin-top: .15rem; flex-shrink: 0; }

.form-consent {
  margin: 1.25rem 0 1rem;
  padding: 1rem 1.1rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.form-consent a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent a:hover { color: var(--red); }

.form-status {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); display: none; font-size: .95rem;
}
.form-status.is-ok { display: block; background: #e7f3ea; color: #14532d; }
.form-status.is-err { display: block; background: #fde8e8; color: #7f1d1d; }
.map-embed {
  margin-top: 1.25rem;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
  min-height: 220px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-ph {
  margin-top: 1.25rem; min-height: 180px; border: 1px dashed var(--line);
  display: grid; place-items: center; color: var(--ink-soft); font-size: .75rem; text-align: center; padding: 1rem;
  background: var(--paper-2);
}

/* Legal pages */
.legal-page { padding: 3rem 0 4rem; }
.legal-page h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 1rem;
}
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.82); padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; gap: 1.75rem; grid-template-columns: 1fr;
}
.footer-brand { font-family: var(--display); font-size: 1.5rem; color: #fff; margin: 0 0 .4rem; }
.footer-label { color: #fff; font-weight: 600; margin: 0 0 .5rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-muted { margin: 0; color: rgba(255,255,255,.65); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb4b4; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* WhatsApp FAB */
.wa-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25); text-decoration: none;
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.05); color: #fff; }

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

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .header-actions { margin-left: 0; }
  .lang-switch--bar { display: inline-flex; }
  .lang-switch--nav { display: none !important; }
  .site-nav {
    position: static; display: flex !important; flex-direction: row; align-items: center;
    background: transparent; padding: 0; gap: .15rem; margin-left: auto;
  }
  .site-nav a {
    border: 0; padding: .55rem .8rem; font-size: .95rem;
  }
  .site-nav .nav-cta {
    margin: 0 0 0 .5rem; padding-inline: 1rem;
  }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .secondary-row { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

@media (max-width: 719px) {
  .lang-switch--nav { display: inline-flex; }
}
@media (min-width: 980px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content { padding: 5rem 0 4.5rem; }
}
