:root {
  --bg: #f7f4ee;
  --bg-soft: #fffaf2;
  --text: #191716;
  --muted: #68615c;
  --line: #e4d8c8;
  --accent: #a9572a;
  --accent-dark: #713819;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(37, 27, 19, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.hero {
  min-height: 92vh;
  padding: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(169, 87, 42, 0.18), transparent 32%),
    linear-gradient(135deg, #fff7ec 0%, #efe3d2 100%);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-content {
  max-width: 1180px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.76rem;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 6rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

.subtitle {
  max-width: 680px;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 26px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  background: var(--text);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(25, 23, 22, 0.18);
}

.btn.secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.full {
  width: 100%;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  background: var(--white);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 34px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.mock-wall {
  min-height: 500px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.75), rgba(255,255,255,0.25)),
    repeating-linear-gradient(90deg, #dcc8b0 0, #dcc8b0 18px, #d6c0a4 18px, #d6c0a4 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 34px;
  overflow: hidden;
  position: relative;
}

.mock-wall::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(169, 87, 42, 0.28);
  right: -100px;
  top: -70px;
}

.mock-wall::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 38px;
  background: rgba(25, 23, 22, 0.12);
  right: 70px;
  bottom: 110px;
  transform: rotate(-8deg);
}

.mock-wall span,
.mock-wall strong {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  border-radius: 14px;
}

.mock-wall span {
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.mock-wall strong {
  margin-top: 10px;
  padding: 12px 14px;
  font-size: 1.8rem;
  line-height: 1.05;
  max-width: 320px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 28px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-description,
.large-text {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 860px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.comparison-item,
.form-box,
.form-copy,
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 42px rgba(37, 27, 19, 0.06);
}

.card p,
.comparison-item p,
.form-box p,
.form-copy p,
.pricing-box p {
  color: var(--muted);
}

.featured-card {
  background: var(--text);
  color: var(--white);
}

.featured-card p {
  color: rgba(255,255,255,0.78);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.comparison-item span {
  display: inline-flex;
  margin-bottom: 22px;
  font-weight: 900;
  color: var(--accent);
}

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

.gallery-item {
  min-height: 240px;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
  background: #ddd;
  box-shadow: 0 14px 42px rgba(37, 27, 19, 0.08);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.45));
}

.gallery-item span {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
}

.gallery-item.restaurant { background: linear-gradient(135deg, #5f3220, #df9b54); }
.gallery-item.hotel { background: linear-gradient(135deg, #345b46, #c8a86b); }
.gallery-item.office { background: linear-gradient(135deg, #1f2833, #94a3b8); }
.gallery-item.kids { background: linear-gradient(135deg, #6a82fb, #fc5c7d); }
.gallery-item.living { background: linear-gradient(135deg, #8360c3, #2ebf91); }
.gallery-item.partner { background: linear-gradient(135deg, #111827, #a9572a); }

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.step span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 900;
}

.step p {
  margin: 0;
  font-size: 1.05rem;
}

.pricing-box {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 22px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 34px;
}

.price-card {
  text-align: center;
}

.price-card span,
.price-card small {
  display: block;
  color: var(--muted);
}

.price-card strong {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  margin: 10px 0;
}

.small-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.calculator-box {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 14px 42px rgba(37, 27, 19, 0.07);
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.calculator-inputs label {
  font-weight: 800;
}

.input-with-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.input-with-unit input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  font-size: 1.1rem;
  font-weight: 800;
  outline: none;
}

.input-with-unit span {
  padding: 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.calculator-result {
  margin-top: 22px;
  padding: 24px;
  background: var(--text);
  color: var(--white);
  border-radius: 24px;
}

.calculator-result span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.calculator-result strong {
  display: block;
  margin-top: 8px;
  font-size: 3rem;
  line-height: 1;
}

.calculator-result p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.76);
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.form-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.form-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.partners {
  background: var(--text);
  color: var(--white);
  border-radius: 36px;
  margin-bottom: 70px;
}

.partners .large-text {
  color: rgba(255,255,255,0.76);
}

.partners .eyebrow {
  color: #e2b487;
}

.footer {
  padding: 36px 28px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 900px;
  margin: 8px auto;
}

.privacy {
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero-content,
  .cards.three,
  .cards.four,
  .comparison-grid,
  .gallery,
  .pricing-box,
  .calculator-inputs,
  .form-section {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-top: 54px;
  }

  .mock-wall {
    min-height: 360px;
  }

  .comparison-grid {
    gap: 14px;
  }

  .pricing-box {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-cta {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .gallery-item {
    min-height: 190px;
  }

  .price-card strong {
    font-size: 3rem;
  }
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 10px 30px rgba(37, 27, 19, 0.05);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}


/* =========================================================
   Responsive improvements - desktop / tablet / mobile
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  -webkit-text-size-adjust: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.hero,
.section,
.footer {
  padding-left: clamp(18px, 4vw, 28px);
  padding-right: clamp(18px, 4vw, 28px);
}

.section {
  padding-top: clamp(56px, 8vw, 90px);
  padding-bottom: clamp(56px, 8vw, 90px);
}

.hero-content,
.nav,
.section {
  width: 100%;
}

.logo,
h1,
h2,
h3,
p,
li,
summary,
a,
strong,
span {
  overflow-wrap: anywhere;
}

.hero-content,
.cards.three,
.comparison-grid,
.gallery,
.pricing-box,
.calculator-inputs,
.form-section {
  min-width: 0;
}

.cards.three,
.cards.four {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.comparison-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.calculator-actions .btn,
.hero-actions .btn {
  flex: 1 1 220px;
}

.price-card {
  min-width: 0;
}

/* Tablet */
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 58px;
  }

  .hero-text,
  .subtitle {
    max-width: 820px;
  }

  .hero-visual {
    max-width: 760px;
    width: 100%;
  }

  .mock-wall {
    min-height: 420px;
  }

  .pricing-box,
  .form-section {
    grid-template-columns: 1fr;
  }

  .price-card {
    max-width: 360px;
  }
}

/* Small tablet and large phones */
@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .nav {
    align-items: center;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1rem;
    max-width: 62%;
  }

  .nav-cta {
    padding: 9px 13px;
    font-size: 0.84rem;
  }

  .hero-content {
    margin-top: 44px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 4.2rem);
    letter-spacing: -0.055em;
  }

  h2 {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
  }

  .subtitle,
  .section-description,
  .large-text {
    font-size: 1.04rem;
  }

  .hero-actions,
  .calculator-actions {
    flex-direction: column;
  }

  .btn,
  .calculator-actions .btn,
  .hero-actions .btn {
    width: 100%;
    flex-basis: auto;
    min-height: 54px;
    padding-left: 18px;
    padding-right: 18px;
    text-align: center;
  }

  .hero-visual {
    border-radius: 26px;
    padding: 14px;
  }

  .mock-wall {
    min-height: 320px;
    padding: 24px;
    border-radius: 20px;
  }

  .mock-wall::before {
    width: 300px;
    height: 300px;
    right: -110px;
    top: -80px;
  }

  .mock-wall::after {
    width: 150px;
    height: 150px;
    right: 30px;
    bottom: 90px;
  }

  .mock-wall strong {
    font-size: 1.45rem;
    max-width: 260px;
  }

  .card,
  .comparison-item,
  .form-box,
  .form-copy,
  .price-card,
  .calculator-box,
  .pricing-box,
  .faq-item {
    padding: 22px;
    border-radius: 20px;
  }

  .gallery-item {
    min-height: 210px;
  }

  .calculator-inputs {
    grid-template-columns: 1fr;
  }

  .calculator-result strong {
    font-size: 2.55rem;
  }

  .price-card strong {
    font-size: 3rem;
  }

  .partners {
    border-radius: 26px;
    margin-left: 18px;
    margin-right: 18px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .hero,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    gap: 12px;
  }

  .logo {
    max-width: 100%;
  }

  .nav-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    margin-top: 36px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  h3 {
    font-size: 1.22rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .subtitle,
  .section-description,
  .large-text,
  .step p,
  .card p,
  .comparison-item p,
  .form-box p,
  .form-copy p,
  .pricing-box p,
  .calculator-result p,
  .faq-item p,
  .footer p {
    font-size: 0.98rem;
  }

  .hero-visual {
    padding: 10px;
    border-radius: 22px;
  }

  .mock-wall {
    min-height: 260px;
    padding: 18px;
  }

  .mock-wall strong {
    font-size: 1.25rem;
  }

  .cards.three,
  .cards.four,
  .comparison-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    min-height: 185px;
  }

  .step {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .step span {
    width: 38px;
    height: 38px;
  }

  .input-with-unit input {
    padding: 15px 14px;
  }

  .input-with-unit span {
    padding: 0 14px;
  }

  .calculator-result strong,
  .price-card strong {
    font-size: 2.45rem;
  }

  .form-list {
    padding-left: 18px;
  }

  .partners {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .hero,
  .section,
  .footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card,
  .comparison-item,
  .form-box,
  .form-copy,
  .price-card,
  .calculator-box,
  .pricing-box,
  .faq-item {
    padding: 18px;
  }

  .btn {
    font-size: 0.92rem;
  }
}

/* Immagini mockup: sostituisci i file nella cartella /pics mantenendo gli stessi nomi */
.mock-wall {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.44)),
    url("pics/hero-parete.jpg") center/cover no-repeat;
}

.mock-wall::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.38));
  right: auto;
  top: auto;
}

.mock-wall::after {
  display: none;
}

.mock-wall span,
.mock-wall strong {
  color: #fff;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(7px);
}

.gallery-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-item.restaurant {
  background-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55)), url("pics/ristorante-bar.jpg");
}

.gallery-item.hotel {
  background-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55)), url("pics/hotel-agriturismo.jpg");
}

.gallery-item.office {
  background-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55)), url("pics/ufficio-reception.jpg");
}

.gallery-item.kids {
  background-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55)), url("pics/cameretta-bambini.jpg");
}

.gallery-item.living {
  background-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55)), url("pics/soggiorno-moderno.jpg");
}

.gallery-item.partner {
  background-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55)), url("pics/progetto-partner.jpg");
}

/* =========================================================
   V10 - Real images fix
   The site now uses image files inside /pics with .jpg.png names.
   ========================================================= */
.hero-visual {
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  min-height: 420px;
  height: clamp(340px, 44vw, 560px);
  object-fit: cover;
  border-radius: 24px;
}

.gallery-item {
  background: #ddd;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.gallery-item::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.58) 100%);
}

.gallery-item span {
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

@media (max-width: 900px) {
  .hero-image {
    min-height: 300px;
    height: 48vw;
  }
}

@media (max-width: 560px) {
  .hero-image {
    min-height: 240px;
    height: 62vw;
    border-radius: 20px;
  }
}


/* =========================================================
   V11 - Fix definitivo galleria immagini
   Corregge layout immagini/etichette e forza il caricamento CSS con ?v=11.
   ========================================================= */
.gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.gallery-item {
  position: relative !important;
  display: block !important;
  min-height: 280px !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: #ddd !important;
  box-shadow: 0 18px 48px rgba(37, 27, 19, 0.12) !important;
}

.gallery-item img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

.gallery-item::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.68) 100%) !important;
  pointer-events: none !important;
}

.gallery-item span {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 2 !important;
  display: block !important;
  width: auto !important;
  max-width: calc(100% - 36px) !important;
  color: #fff !important;
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55) !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
}

.hero-visual {
  overflow: hidden !important;
}

.hero-image {
  display: block !important;
  width: 100% !important;
  height: clamp(320px, 44vw, 560px) !important;
  min-height: 320px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 24px !important;
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr !important;
  }
  .gallery-item {
    min-height: 240px !important;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    min-height: 215px !important;
    border-radius: 20px !important;
  }
  .gallery-item span {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
  .hero-image {
    min-height: 230px !important;
    height: 62vw !important;
    border-radius: 20px !important;
  }
}


/* =========================================================
   V12 - Aggiornamenti scuole/asili + 5 vantaggi senza numerazione
   ========================================================= */
.cards.four {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}

.benefits-grid .comparison-item {
  min-height: 250px;
}

.benefits-grid .comparison-item h3 {
  margin-bottom: 18px;
}

@media (max-width: 1180px) {
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  }
}


/* =========================================================
   V15 - Vantaggi illustrati senza riquadri: layout 2 + 2 + 1
   ========================================================= */
.benefit-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 58px) clamp(28px, 4vw, 54px);
  align-items: start;
}

.benefit-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.benefit-copy {
  padding: 0 0 18px;
  max-width: 620px;
}

.benefit-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
}

.benefit-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  margin-top: 0;
  border: 0;
  border-radius: clamp(22px, 2.4vw, 34px);
  box-shadow: 0 22px 65px rgba(37, 27, 19, 0.12);
}

.benefit-card:last-child {
  grid-column: 1 / -1;
  max-width: 980px;
  width: 100%;
  margin-inline: auto;
}

.benefit-card:last-child .benefit-copy {
  max-width: 720px;
}

.benefit-card:last-child img {
  aspect-ratio: 16 / 8;
}

@media (max-width: 860px) {
  .benefit-showcase {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .benefit-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .benefit-card:last-child img,
  .benefit-card img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .benefit-copy {
    padding-bottom: 14px;
  }

  .benefit-card img {
    border-radius: 20px;
  }
}

/* V16 - layout galleria 2-2-2-1 + lightbox */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.gallery-item {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  cursor: zoom-in;
  background: #111;
  box-shadow: 0 22px 55px rgba(40, 28, 18, 0.14);
  outline-offset: 6px;
}

.gallery-item.gallery-item-wide {
  grid-column: 1 / -1;
  width: min(720px, 100%);
  justify-self: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  filter: brightness(1.02);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 35%, rgba(0,0,0,0.62) 100%);
  pointer-events: none;
}

.gallery-item span {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  font-size: clamp(1.35rem, 1.7vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(12, 10, 9, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  width: min(1180px, 96vw);
  max-height: 92vh;
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  background: #fff;
}

.lightbox-content p {
  margin-top: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 10000;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item,
  .gallery-item.gallery-item-wide {
    grid-column: auto;
    width: 100%;
    min-height: 230px;
  }

  .gallery-item img {
    min-height: 230px;
  }

  .gallery-item span {
    left: 20px;
    right: 20px;
    bottom: 18px;
    font-size: 1.35rem;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-content img {
    border-radius: 18px;
  }
}


/* =========================================================
   V18 - Consent banner, privacy/cookie links, analytics-ready, policy data completed
   ========================================================= */
.privacy-inline {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.privacy-inline a,
.footer-links a,
.policy-content a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-link-button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 10020;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(25, 23, 22, 0.22);
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner h2,
.cookie-modal h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.cookie-banner p,
.cookie-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner .btn,
.cookie-modal .btn {
  min-height: 44px;
  padding: 10px 16px;
  white-space: nowrap;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(8px);
}

.cookie-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.cookie-option strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-option input {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
}

.cookie-option.locked span {
  color: var(--accent-dark);
  font-weight: 900;
  white-space: nowrap;
}

.cookie-modal-actions {
  margin-top: 22px;
}

.policy-page .hero {
  min-height: auto;
  padding-bottom: 44px;
}

.policy-page .hero-content {
  display: block;
  margin-top: 54px;
}

.policy-content {
  max-width: 920px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 42px rgba(37, 27, 19, 0.06);
}

.policy-content h2 {
  margin-top: 34px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.policy-content ul {
  padding-left: 20px;
}

.policy-note {
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

@media (max-width: 820px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }

  .cookie-banner-actions,
  .cookie-modal-actions {
    justify-content: stretch;
  }

  .cookie-banner .btn,
  .cookie-modal .btn {
    width: 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   V19 - Hero desktop più equilibrata per StampaMurale
   ========================================================= */
@media (min-width: 1101px) {
  .hero-content {
    max-width: 1280px;
    grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
    gap: 46px;
  }

  .nav {
    max-width: 1280px;
  }

  .hero-text {
    min-width: 0;
  }

  .hero-text h1 {
    max-width: 760px;
    font-size: clamp(3.6rem, 4.6vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
    word-break: normal;
  }
}
