
/* =============================================================
   PONTEGGI SRLS — HTML / CSS
   Valori tradotti dal foglio originale, senza Tailwind o framework.
   Breakpoint originali: 640, 768, 1024, 1280 e 1536 px.
   ============================================================= *//* 1. Colori, font e impostazioni comuni */
:root {
  --primary: #0f172a;
  --secondary: #facc15;
  --white: #fff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --header-height: 81px;
  --header-padding: 16px;
  --header-padding-scrolled: 8px;
  --anchor-gap: 16px;
  --anchor-offset: calc(var(--header-height) + var(--anchor-gap));
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding-bottom: 80px;
  color: var(--primary);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

button { cursor: pointer; }

button:disabled { cursor: wait; opacity: .65; }

img, svg, iframe { display: block; }

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }
/* Il contenuto della sezione arriva 16 px sotto l'header compatto.
   Si sottrae il padding della sezione per evitare una fascia vuota. */
section[id] { scroll-margin-top: calc(var(--anchor-offset) - var(--section-inset, 0px)); }

main[id], .project-card[id], .content-card[id] { scroll-margin-top: var(--anchor-offset); }

:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }

.container { width: 100%; margin-inline: auto; padding-inline: 16px; }

.icon { flex-shrink: 0; width: 24px; height: 24px; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--secondary);
  color: var(--primary);
}

.skip-link:focus { top: 8px; }
/* 2. Pulsanti */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}

.button--yellow {
  color: var(--primary);
  background: var(--secondary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .1);
}

.button--yellow:hover { background: rgb(250 204 21 / .9); }

.button--primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .1);
}

.button--primary:hover { background: rgb(15 23 42 / .9); }

.button--outline { border: 1px solid #e5e5e5; background: var(--white); }

.button--outline:hover { background: #f5f5f5; }
/* 3. Navigazione e menu mobile */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: var(--header-padding);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--gray-200);
  transition: padding .3s, background-color .3s, box-shadow .3s, color .3s;
}

.site-header--inner { background: var(--primary); }

.site-header.is-scrolled {
  padding-block: var(--header-padding-scrolled);
  border-bottom-color: var(--gray-100);
  background: rgb(255 255 255 / .9);
  color: var(--gray-700);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}

.site-header:has(.mobile-menu[open]) { backdrop-filter: none; }
.no-js .site-header { padding-block: var(--header-padding-scrolled); background: var(--primary); color: var(--gray-200); }
.no-js .mobile-menu[open]::before { display: none; }
.no-js .mobile-menu[open] > summary { color: var(--white); }
.no-js .mobile-menu-panel { position: absolute; inset: 100% 16px auto auto; width: calc(100vw - 32px); max-height: calc(100dvh - 100px); height: auto; }
.no-js body:has(.mobile-menu[open]) { overflow: auto; }

.header-content { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; }

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

.desktop-navigation { display: none; align-items: center; gap: 32px; }

.desktop-navigation > a:not(.button) {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transition: color .15s;
}

.desktop-navigation > a:not(.button):hover { color: var(--secondary); text-decoration: underline; text-underline-offset: 5px; }

.site-header.is-scrolled .desktop-navigation > a:not(.button):hover { color: #715700; }

.mobile-menu > summary {
  position: relative;
  z-index: 62;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.mobile-menu > summary::-webkit-details-marker { display: none; }

.is-scrolled .mobile-menu > summary { color: var(--primary); }

.menu-close-icon { display: none; }

.mobile-menu[open] > summary { color: var(--primary); }

.mobile-menu[open] .menu-open-icon { display: none; }

.mobile-menu[open] .menu-close-icon { display: block; }

.mobile-menu[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(0 0 0 / .8);
}

.mobile-menu-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 61;
  width: 300px;
  max-width: 100vw;
  height: 100dvh;
  padding: 24px;
  overflow-y: auto;
  background: var(--white);
  color: #1f2937;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1);
}

.mobile-menu-panel nav { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }

.mobile-menu-panel nav > a { display: flex; align-items: center; min-height: 44px; }

.mobile-menu-panel nav > a:not(.button) { font-size: 18px; line-height: 28px; font-weight: 500; }

.mobile-menu-contacts { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }

.mobile-menu-contacts > div { display: flex; align-items: center; gap: 12px; color: var(--gray-600); }

.mobile-menu-contacts > div + div { margin-top: 16px; }

.mobile-menu-contacts a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

.mobile-menu-contacts .icon { width: 16px; height: 16px; }

body:has(.mobile-menu[open]) { overflow: hidden; }
/* 4. Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72vh;
  min-height: 550px;
  overflow: hidden;
}

.hero-background, .hero-background img, .hero-darken, .hero-gradient { position: absolute; inset: 0; }

.hero-background img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

.hero-darken { background: rgb(15 23 42 / .7); mix-blend-mode: multiply; }

.hero-gradient { background: linear-gradient(to top, #0f172a, rgb(15 23 42 / 0) 50%, rgb(15 23 42 / 0)); }

.hero-content { position: relative; z-index: 10; padding-top: 80px; text-align: center; }

.hero-copy { max-width: 768px; }

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgb(250 204 21 / .9);
  color: var(--primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.hero h1 { margin-bottom: 24px; color: var(--white); font-size: 36px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }

.hero h1 span { color: var(--secondary); }

.hero-copy > p { max-width: 576px; margin-bottom: 32px; color: var(--gray-200); font-size: 18px; line-height: 1.625; }

.hero-actions { display: flex; flex-direction: column; justify-content: center; gap: 16px; }

.hero-actions .button { height: 48px; padding-inline: 32px; font-size: 18px; line-height: 28px; }

.hero-estimate { color: var(--primary); background: var(--secondary); font-weight: 700; box-shadow: 0 0 20px rgb(250 204 21 / .3); }

.hero-estimate:hover { background: rgb(250 204 21 / .9); }

.hero-call { border: 1px solid var(--white); color: var(--white); background: transparent; font-weight: 500; backdrop-filter: blur(4px); }

.hero-call:hover { background: rgb(255 255 255 / .1); }

/* 5. Servizi in evidenza */
.statistics { position: relative; z-index: 20; margin-top: -48px; padding-block: 48px; color: var(--white); background: var(--primary); }

.statistics-container { padding-inline: 8px; }

.statistics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 1152px; margin-inline: auto; text-align: center; }

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 12px;
  background: rgb(255 255 255 / .05);
  transition: transform .3s, background-color .3s;
}

.stat-card:hover { background: rgb(255 255 255 / .1); }

.stat-icon { margin-bottom: 8px; padding: 8px; border-radius: 50%; background: rgb(255 255 255 / .05); color: var(--secondary); box-shadow: 0 0 0 1px rgb(255 255 255 / .2), 0 0 15px rgb(250 204 21 / .2); transform: scale(.75); }

.stat-icon .icon { width: 32px; height: 32px; }

.stat-card h2 { margin-bottom: 4px; font-size: clamp(17px, 3vw, 30px); line-height: 1.2; font-weight: 700; }

.stat-card p { color: var(--gray-300); font-size: 14px; line-height: 1.5; font-weight: 500; }
/* 6. Sezioni e servizi */
.section { --section-inset: 80px; padding-block: 80px; }

.services, .about { background: var(--gray-50); }

.section-heading--centered { max-width: 672px; margin: 0 auto 64px; text-align: center; }

.eyebrow { margin-bottom: 12px; color: #facc15; font-size: 14px; line-height: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.section-title { font-size: 30px; line-height: 36px; font-weight: 700; }

.section-heading .section-title { margin-bottom: 16px; }

.section-description { color: var(--gray-600); font-size: 18px; line-height: 28px; }

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--white);
  color: #0a0a0a;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  transition: transform .3s, box-shadow .3s;
}

.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }

.service-icon { margin-bottom: 12px; padding: 12px; border-radius: 50%; background: #f8fafc; color: var(--secondary); transition: background-color .15s; }

.service-card:hover .service-icon { background: rgb(250 204 21 / .2); }

.service-card h3 { margin-bottom: 8px; color: var(--primary); font-size: 14px; line-height: 20px; font-weight: 700; }

.service-card p { flex-grow: 1; margin-bottom: 16px; color: var(--gray-600); font-size: 15px; line-height: 1.625; }

.service-link { font-size: 14px; }

.service-scope { margin-top: 40px; }
/* 7. Portfolio: tutte le fotografie originali */
.portfolio { background: var(--primary); color: var(--white); }

.portfolio .eyebrow { color: var(--secondary); }

.portfolio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; }

.portfolio-actions p { color: var(--gray-300); }

.portfolio-heading { margin-bottom: 48px; }

.portfolio-introduction { margin-top: 12px; color: var(--gray-300); }

.portfolio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

.project-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; }

.project-photo { display: block; width: 100%; height: 100%; }

.project-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }

.project-card:hover .project-photo img { transform: scale(1.1); }

.project-photo:focus-visible { outline-offset: -4px; }

.project-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .96), rgb(0 0 0 / .65) 40%, transparent 78%); }

.project-enlarge { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; background: rgb(15 23 42 / .8); color: var(--white); font-size: 12px; font-weight: 600; }

.project-enlarge .icon { width: 16px; height: 16px; }

.project-caption { position: absolute; inset: auto 0 0; padding: 24px; pointer-events: none; }

.project-caption h3 { margin-bottom: 8px; font-size: 20px; line-height: 26px; font-weight: 700; }

.project-case-link { display: inline-block; margin-top: 12px; color: var(--secondary); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; pointer-events: auto; }
/* Anteprima breve nella griglia; il dialogo mostra la descrizione completa. */
.project-caption p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--gray-200); font-size: 14px; line-height: 1.5; }
/* Galleria: il dialogo nativo gestisce focus, sfondo inerte e tasto Esc.
   La barra con la X resta fuori dal contenuto scorrevole. */
body.photo-open { overflow: hidden; }

.photo-dialog { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / .15); border-radius: 16px; background: var(--primary); color: var(--white); box-shadow: 0 24px 80px rgb(0 0 0 / .5); }

.photo-dialog::backdrop { background: rgb(0 0 0 / .88); }

.photo-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(900px, calc(100dvh - 34px)); }

.photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid rgb(255 255 255 / .12); }

.photo-toolbar p { color: var(--gray-300); font-size: 14px; }

.photo-close, .photo-navigation button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / .25); border-radius: 8px; background: rgb(255 255 255 / .08); color: var(--white); }

.photo-close:hover, .photo-navigation button:hover { background: rgb(255 255 255 / .18); }

.photo-detail { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.photo-viewer { display: flex; align-items: center; justify-content: center; height: min(60dvh, 620px); min-height: 160px; padding: 12px; background: #080e1a; touch-action: pan-y pinch-zoom; }

.photo-image { width: 100%; height: 100%; object-fit: contain; }

.photo-caption { padding: 20px 24px; }

.photo-caption h2 { margin-bottom: 8px; font-size: 24px; line-height: 1.3; }

.photo-caption p { color: var(--gray-300); line-height: 1.625; }


.photo-error { margin-bottom: 8px; color: var(--secondary); }

.photo-navigation { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid rgb(255 255 255 / .12); }

.photo-navigation button { gap: 8px; font-size: 14px; }

.photo-navigation .icon { width: 20px; height: 20px; }
@media (max-width: 639px) {

.photo-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }

.photo-dialog-shell { height: calc(100dvh - 18px); }

.photo-toolbar, .photo-navigation { padding: 10px 16px; }

.photo-viewer { height: 46dvh; }

.photo-caption { padding: 20px; }

.photo-caption h2 { font-size: 22px; }
}
/* 8. Azienda e mappa */
.about-layout, .contact-layout { display: flex; flex-direction: column; gap: 64px; }

.about-layout { align-items: center; }

.about-copy, .map-frame, .contact-copy, .estimate-card { width: 100%; min-width: 0; }

.about-copy .section-title { margin-bottom: 24px; }

.about-copy > p:not(.eyebrow) { margin-bottom: 24px; color: var(--gray-600); font-size: 18px; line-height: 1.625; }

.about-copy > p:nth-last-of-type(1) { margin-bottom: 32px; }

.operating-areas li { display: flex; align-items: center; gap: 12px; }

.operating-areas li + li { margin-top: 12px; }

.operating-areas .icon { width: 20px; height: 20px; color: var(--secondary); }

.operating-areas span { color: var(--gray-700); font-weight: 500; }

.map-frame { height: 400px; border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden; background: var(--gray-100); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }

.map-frame iframe { width: 100%; height: 100%; border: 0; }
/* 9. Contatti e modulo */
.contact { position: relative; overflow: hidden; background: var(--white); }

.contact .section-title { margin-bottom: 24px; }

.contact-list { margin-top: 48px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; }

.contact-item + .contact-item { margin-top: 32px; }

.contact-icon { padding: 12px; border-radius: 8px; background: #f1f5f9; }

.contact-item h3 { font-size: 18px; line-height: 28px; font-weight: 700; }

.contact-item p, .contact-item a { display: block; color: var(--gray-600); overflow-wrap: anywhere; }

.contact-item .opening-hours { color: var(--gray-500); font-size: 14px; line-height: 20px; }

.contact-item a:hover { text-decoration: underline; }

.estimate-card { padding: 32px; border: 1px solid var(--gray-100); border-radius: 16px; box-shadow: 0 20px 60px -15px rgb(0 0 0 / .1); }

.estimate-heading { margin-bottom: 24px; }

.estimate-heading h3 { font-size: 24px; line-height: 32px; font-weight: 700; }

.estimate-heading p { color: var(--gray-500); }

#estimate-form > :not([hidden]):not(.honeypot):not(input) + :not([hidden]):not(.honeypot):not(input) { margin-top: 24px; }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.form-field { min-width: 0; }

.form-field label { display: block; min-height: 24px; margin-bottom: 8px; color: var(--gray-700); font-size: 14px; line-height: 20px; font-weight: 600; }

.form-field input, .form-field select, .form-field textarea {
  display: block;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--gray-50);
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  transition: background-color .15s;
}

.form-field input::placeholder, .form-field textarea::placeholder { color: #737373; opacity: 1; }

.form-field input:focus, .form-field textarea:focus { background: var(--white); }

.form-field select { height: 40px; padding-block: 8px; box-shadow: none; }

.form-field textarea { min-height: 120px; padding-block: 8px; resize: none; }

.privacy-field { display: flex; align-items: flex-start; gap: 12px; padding-top: 8px; }

.privacy-field input { flex-shrink: 0; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--primary); }

.privacy-field label { color: var(--gray-500); font-size: 12px; line-height: 1.375; cursor: pointer; }

.privacy-field a { text-decoration: underline; }

.estimate-submit { width: 100%; min-height: 48px; background: var(--primary); color: var(--white); font-size: 18px; line-height: 28px; font-weight: 700; box-shadow: 0 10px 15px -3px rgb(15 23 42 / .2), 0 4px 6px -4px rgb(15 23 42 / .2); }

.estimate-submit:hover { background: rgb(15 23 42 / .9); }

.honeypot { display: none; }

.form-status { font-size: 14px; line-height: 20px; color: #166534; }

.form-status.is-error { color: #b91c1c; }
/* 10. Footer */
.site-footer { padding: 64px 0 32px; background: var(--primary); color: var(--white); }

.footer-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-bottom: 48px; }

.footer-columns > div { min-width: 0; }


.footer-brand > p { color: var(--gray-400); line-height: 1.625; }

.footer-title { display: inline-block; margin-bottom: 24px; padding-bottom: 8px; border-bottom: 1px solid rgb(250 204 21 / .3); font-size: 18px; line-height: 28px; font-weight: 700; }

.footer-menu li + li { margin-top: 12px; }

.footer-menu a { display: flex; align-items: center; gap: 8px; color: var(--gray-400); transition: color .15s; }

.footer-menu a:hover, .footer-contacts a:hover { color: var(--secondary); }

.footer-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--secondary); }

.footer-contacts li { display: flex; align-items: center; gap: 12px; color: var(--gray-400); overflow-wrap: anywhere; }

.footer-contacts li + li { margin-top: 16px; }

.footer-contacts li:first-child { align-items: flex-start; }

.footer-contacts li:first-child .icon { margin-top: 4px; }

.footer-contacts .icon { width: 20px; height: 20px; color: var(--secondary); }

.footer-contacts a { display: block; }

.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / .1); color: var(--gray-500); font-size: 14px; line-height: 20px; }

.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }

.legal-links a:hover { color: var(--white); }
/* 11. Barra fissa mobile  */
.mobile-action-bar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; border-top: 1px solid var(--gray-200); background: var(--white); box-shadow: 0 -4px 6px -1px rgb(0 0 0 / .1); }

.mobile-action { display: flex; align-items: center; justify-content: center; gap: 8px; padding-block: 12px; border-radius: 8px; font-weight: 700; }

.mobile-action .icon { width: 20px; height: 20px; }

.mobile-action--call { color: var(--white); background: var(--primary); }

.mobile-action--estimate { color: var(--primary); background: var(--secondary); }
/* 12. Pagine di servizi e località: classi semantiche, stessi valori originali */
.page-hero { padding: 144px 0 80px; color: var(--white); background: var(--primary); }

.content-wide { max-width: 896px; }

.page-eyebrow { margin-bottom: 16px; color: var(--secondary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.page-eyebrow--compact { margin-bottom: 12px; }

.page-title { margin-bottom: 24px; font-size: 36px; line-height: 1.25; font-weight: 700; }

.page-lead { margin-bottom: 32px; color: var(--gray-300); font-size: 18px; line-height: 1.625; }

.page-actions { display: flex; flex-direction: column; gap: 16px; }

.page-button { min-height: 48px; padding: 12px 24px; font-size: 16px; line-height: 24px; font-weight: 600; }

.page-button--yellow { color: var(--primary); background: var(--secondary); }

.page-button--yellow:hover { background: rgb(250 204 21 / .9); }

.page-button--light-outline { border: 1px solid rgb(255 255 255 / .3); color: var(--white); background: transparent; }

.page-button--light-outline:hover { background: rgb(255 255 255 / .1); }

.page-button--dark { color: var(--white); background: var(--primary); }

.page-button--dark:hover { background: #1e293b; }

.page-button--dark-outline { border: 1px solid rgb(15 23 42 / .3); color: var(--primary); background: transparent; }

.page-button--dark-outline:hover { background: rgb(15 23 42 / .05); }

.content-section { --section-inset: 64px; padding-block: 64px; background: var(--white); }

.content-section--muted { background: var(--gray-50); }

.content-title { margin-bottom: 24px; font-size: 30px; line-height: 36px; font-weight: 700; }

.content-title--space-8 { margin-bottom: 32px; }

.content-text { color: var(--gray-600); line-height: 1.625; }

.content-text--large { font-size: 18px; }

.content-text--spaced { margin-bottom: 24px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

.content-grid--gap-6 { gap: 24px; }

.content-grid--split { gap: 48px; }

.content-card { padding: 28px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); }

.content-card--large { padding: 32px; }

.content-card-title { margin-bottom: 12px; font-size: 20px; line-height: 28px; font-weight: 700; }

.content-heading-2 { margin-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 700; }

.content-note { padding: 32px; border-radius: 8px; color: var(--white); background: var(--primary); }

.content-note-title { margin-bottom: 20px; font-size: 24px; line-height: 32px; font-weight: 700; }

.content-list > * + * { margin-top: 16px; }

.content-list--light { color: var(--gray-300); }

.content-list-row { display: flex; gap: 12px; }

.content-accent { color: var(--secondary); font-weight: 700; }

.page-callout { padding-block: 56px; background: var(--secondary); }

.page-callout-layout { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; }

.page-callout-title { margin-bottom: 12px; font-size: 30px; line-height: 36px; font-weight: 700; }

.page-callout-text { color: rgb(15 23 42 / .8); font-size: 18px; line-height: 28px; }

.related-page { padding: 24px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); font-weight: 600; transition: color .15s; }

.related-page:hover { color: #715700; }

.content-introduction { max-width: 768px; margin-bottom: 48px; }

.step-number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; color: var(--primary); background: var(--secondary); font-weight: 700; }

/* 13. Pagine legali e contenuti testuali */
.inner-page { background: var(--gray-50); }

.document-main { min-height: 60vh; padding: 144px 0 80px; }

.document-card { max-width: 896px; margin-inline: auto; padding: 32px; border: 1px solid var(--gray-100); border-radius: 16px; background: var(--white); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }

.document-card > h1 { margin-bottom: 24px; font-size: 30px; line-height: 36px; font-weight: 700; }

.document-content { color: var(--gray-700); line-height: 1.75; overflow-wrap: anywhere; }

.document-content h2 { margin: 28px 0 12px; color: var(--primary); font-size: 24px; line-height: 32px; font-weight: 700; }

.document-content h3 { margin: 24px 0 12px; color: var(--primary); font-size: 20px; line-height: 28px; font-weight: 700; }

.document-content p { margin-bottom: 16px; }

.document-content ul, .document-content ol { margin: 16px 0; padding-left: 24px; list-style: disc; }

.document-content a { color: var(--primary); text-decoration: underline; }

.document-content time { color: var(--gray-500); }

.document-content table { width: 100%; margin-block: 24px; border-collapse: collapse; font-size: 14px; line-height: 20px; }

.document-content th, .document-content td { padding: 12px; border: 1px solid var(--gray-200); text-align: left; vertical-align: top; }

.document-content th { background: var(--gray-50); color: var(--primary); }

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

.message-card p { margin-bottom: 24px; }

.message-card .error-code { font-size: 72px; line-height: 1; font-weight: 700; color: var(--gray-300); }

/* 14. Breakpoint originali */
@media (max-width: 359px) {

.hero-actions .button { padding-inline: 16px; font-size: 16px; }

.estimate-card { padding: 24px; }

.estimate-submit { font-size: 15px; }
}
@media (min-width: 640px) {

.container { max-width: 640px; }

.hero-actions, .page-actions { flex-direction: row; }

.mobile-menu-panel { width: 400px; }
}
@media (min-width: 768px) {

body { padding-bottom: 0; }

.container { max-width: 768px; padding-inline: 24px; }

.desktop-navigation { display: flex; }

.mobile-menu, .mobile-action-bar { display: none; }

.hero { height: 100vh; min-height: 600px; }

.hero-content { text-align: left; }

.hero h1 { font-size: 60px; line-height: 1; }

.hero-copy > p { font-size: 20px; line-height: 28px; }

.hero-actions { justify-content: flex-start; }

.statistics { margin-top: 0; padding-block: 80px; }

.statistics-container { padding-inline: 16px; }

.statistics-grid { gap: 48px; }

.stat-card { padding: 32px; border-radius: 16px; }

.stat-icon { margin-bottom: 24px; padding: 16px; transform: none; }

.stat-card h2 { margin-bottom: 8px; }

.stat-card p { font-size: 14px; line-height: 20px; }

.section-title, .content-title { font-size: 36px; line-height: 40px; }

.services-grid { gap: 32px; }

.service-card { padding: 32px; }

.service-icon { margin-bottom: 24px; padding: 16px; }

.service-icon .icon { width: 40px; height: 40px; }

.service-card h3 { margin-bottom: 12px; font-size: 20px; line-height: 28px; }

.service-card p { margin-bottom: 24px; font-size: 16px; line-height: 24px; }

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

.project-card { aspect-ratio: 3 / 4; }

.estimate-card { padding: 40px; }

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

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

.footer-bottom { flex-direction: row; }

.page-title { font-size: 60px; line-height: 1; }

.page-lead { font-size: 20px; line-height: 28px; }

.content-section { --section-inset: 96px; padding-block: 96px; }

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

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

.content-note { padding: 40px; }

.document-card { padding: 48px; }

.document-card > h1 { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1024px) {

.container { max-width: 1024px; }

.hero h1 { font-size: 72px; line-height: 1; }

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

.about-layout, .contact-layout { flex-direction: row; }

.about-copy, .map-frame, .contact-copy, .estimate-card { width: calc(50% - 32px); flex-shrink: 0; }

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

.page-callout-layout { flex-direction: row; align-items: center; }
}
@media (min-width: 1280px) {

.container { max-width: 1280px; } }
@media (min-width: 1536px) {

.container { max-width: 1536px; } }
@media (prefers-reduced-motion: reduce) {

html { scroll-behavior: auto; }

*, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Pagine locali e contatti. */
.hero-background > picture { position: absolute; inset: 0; }

.project-photo picture { display: block; width: 100%; height: 100%; }

.stat-card p { text-transform: none; }

.content-introduction .section-title { margin-bottom: 24px; }

.area-card { padding: 28px; border: 1px solid var(--gray-200); border-top: 4px solid var(--secondary); border-radius: 8px; background: white; }

.area-label { margin-bottom: 12px; color: var(--gray-600); font-size: 14px; }

.area-card h3 { margin-bottom: 16px; font-size: 24px; line-height: 1.25; }

.area-card > p:not(.area-label) { color: var(--gray-600); margin-bottom: 24px; }

.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.text-link:hover, .area-card h3 a:hover, .related-page:hover { color: #715700; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; color: var(--gray-300); font-size: 14px; }

.breadcrumbs a { text-decoration: underline; }

.local-service-grid { margin-top: 40px; }

.local-photo { min-width: 0; }

.local-photo img { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; }

.local-photo figcaption { margin-top: 20px; }

.local-photo h2 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }

.local-photo p { margin-bottom: 16px; color: var(--gray-600); }

.process-list { display: grid; gap: 28px; }

.process-list li { display: flex; align-items: flex-start; gap: 16px; }

.process-list p { color: var(--gray-600); line-height: 1.75; }

.faq-list { border-top: 1px solid var(--gray-200); }

.faq-list details { border-bottom: 1px solid var(--gray-200); }

.faq-list summary { padding: 22px 8px; font-size: 18px; font-weight: 600; cursor: pointer; }

.faq-list p { padding: 0 8px 24px; color: var(--gray-600); line-height: 1.75; }

.local-contacts { display: grid; gap: 16px; margin-top: 32px; }

.local-contacts a { font-weight: 600; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }

.local-contacts p { color: var(--gray-600); }

.form-note { font-size: 13px; line-height: 1.6; color: var(--gray-600); overflow-wrap: anywhere; }

.form-note a { text-decoration: underline; }

.form-field input, .form-field select { min-height: 44px; }

.form-field textarea { resize: vertical; }

.map-frame { height: auto; min-height: 400px; }








.mobile-action-bar { padding-bottom: max(12px, env(safe-area-inset-bottom)); }

.footer-menu a[aria-current="page"] { color: var(--secondary); }

.footer-bottom { color: var(--gray-400); }

.page-eyebrow--compact { color: #715700; }

.field-help, .form-next-step { margin-top: 8px; color: var(--gray-600); font-size: 14px; line-height: 1.6; }

.map-fallback { padding: 20px 28px; border-top: 1px solid var(--gray-200); }


@media (max-width: 767px) {

body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

.statistics-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }

.stat-card { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 10px 16px; padding: 20px; text-align: left; }

.stat-icon { margin: 0; transform: none; }

.stat-card h2 { flex: 1; font-size: 23px; }

.stat-card p { width: 100%; }

.services-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }

.service-card { padding: 24px; }

.service-card h3 { font-size: 20px; line-height: 1.4; }

.form-field input, .form-field select, .form-field textarea { font-size: 16px; }

.hero { height: auto; min-height: 620px; }

.hero-content { padding-top: 128px; padding-bottom: 96px; }

.hero-actions .button, .page-button { white-space: normal; height: auto; min-height: 48px; }
}
@media (min-width: 768px) and (max-width: 1023px) {

.desktop-navigation { gap: 20px; }

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

.content-grid--three { gap: 16px; }

.area-card, .content-card { padding: 20px; }
}

/* Revisione 5 — navigazione, portfolio mobile, contatti e scheda attività. */
.mobile-menu[open]::before { animation: menu-backdrop-in 260ms ease both; }
.mobile-menu[data-menu-state="closing"]::before { animation: menu-backdrop-out 240ms ease both; }
@keyframes menu-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.mobile-menu-panel { will-change: transform; }
.statistics { margin-top: 0; }
.stat-card h2 { font-variant-numeric: tabular-nums; }
.stat-card p { text-transform: uppercase; letter-spacing: .04em; }
.carousel-hint, .carousel-controls { display: none; }
.portfolio-carousel { min-width: 0; }
.carousel-controls { align-items: center; gap: 10px; margin-top: 16px; }
.carousel-controls button, .photo-retry { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 10px 14px; border: 1px solid rgb(255 255 255 / .35); border-radius: 8px; background: rgb(255 255 255 / .08); color: white; }
.carousel-controls button:hover, .photo-retry:hover { background: rgb(255 255 255 / .18); }
.carousel-controls > span { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.photo-retry { margin-top: 12px; }
.business-map { min-height: 0; background: white; }
.business-map iframe { width: 100%; height: 380px; }
.business-map .map-fallback { padding: 18px 20px; }
.business-map .map-fallback p { margin-top: 10px; color: var(--gray-600); font-size: 12px; line-height: 1.6; }
.business-map .map-fallback p a { text-decoration: underline; }
.contact-value { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 4px; min-width: 0; }
.contact-value > a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; word-break: break-word; min-width: 0; max-width: 100%; }
.copy-contact { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: 7px; background: var(--gray-50); color: var(--primary); font-size: 13px; font-weight: 600; }
.copy-contact:hover { background: var(--gray-100); }
.contact-item > div:last-child { min-width: 0; flex: 1; }
.copy-toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 120; width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 10px; box-shadow: 0 8px 28px rgb(0 0 0 / .2); background: #14532d; color: white; text-align: center; font-weight: 600; font-size: 14px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.copy-toast.is-error { background: #991b1b; }
.copy-buffer { position: fixed; top: 0; left: -10000px; width: 1px; height: 1px; }
@media (max-width: 767px) {
  .statistics { padding-block: 28px 36px; }
  .statistics-container { padding-inline: 16px; }
  .statistics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-card { flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 8px; padding: 16px 8px; text-align: center; }
  .stat-icon { margin: 0; padding: 8px; }
  .stat-icon .icon { width: 24px; height: 24px; }
  .stat-card h2 { flex: 0; margin: 0; font-size: clamp(22px, 6vw, 32px); line-height: 1.2; }
  .stat-card p { width: auto; font-size: clamp(11px, 2.7vw, 12px); line-height: 1.5; }
  .business-map iframe { height: 340px; }
}
@media (min-width: 768px) { .stat-card h2 { font-size: 44px; } .copy-toast { bottom: 24px; } }

/* Portfolio: una sola fila di card compatte, a partire dal mobile. */
.portfolio-carousel { --project-gap: 14px; --project-width: min(86%, 336px); min-width: 0; max-width: 100%; }
.portfolio-carousel .carousel-hint { display: block; margin: 0 0 12px; color: var(--gray-300); font-size: 13px; }
.portfolio-carousel [data-carousel-track] {
  position: relative; display: flex; flex-flow: row nowrap; gap: var(--project-gap);
  width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 4px 0 14px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.portfolio-carousel [data-carousel-track]::-webkit-scrollbar { display: none; }
.portfolio-carousel [data-carousel-track]:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; border-radius: 12px; }
.portfolio-carousel .project-card {
  display: flex; flex-direction: column; flex: 0 0 var(--project-width); width: var(--project-width);
  min-width: 0; max-width: none; margin: 0; aspect-ratio: auto; height: auto;
  scroll-snap-align: start; border: 1px solid rgb(255 255 255 / .16); border-radius: 14px;
  overflow: hidden; background: #fff; color: #0f172a;
}
.portfolio-carousel .project-photo {
  position: relative; display: block; flex: 0 0 auto; width: 100%;
  height: clamp(154px, 46vw, 190px); min-height: 0; aspect-ratio: auto;
  overflow: hidden; background: #243249;
}
.portfolio-carousel .project-photo picture,
.portfolio-carousel .project-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.portfolio-carousel .project-photo img { object-fit: cover; transition: transform 350ms ease; }
.portfolio-carousel .project-shade { inset: 0; aspect-ratio: auto; background: linear-gradient(rgb(0 0 0 / .14), transparent 55%); pointer-events: none; }
.portfolio-carousel .project-enlarge { top: 10px; right: 10px; padding: 6px 9px; font-size: 11px; }
.portfolio-carousel .project-caption {
  position: static; inset: auto; display: grid; grid-template-rows: 2.5em 2.9em 44px; gap: 6px;
  min-width: 0; padding: 13px 14px 8px; pointer-events: auto; font-size: 16px;
}
.portfolio-carousel .project-caption h3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; margin: 0; max-height: 2.5em;
  color: #0f172a; font-size: 16px; line-height: 1.25; font-weight: 700;
}
.portfolio-carousel .project-caption .project-description {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; margin: 0; max-height: 2.9em;
  color: #475569; font-size: 14px; line-height: 1.45;
}
.portfolio-carousel .project-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.portfolio-carousel .project-case-link {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0;
  color: #475569; font-size: 12px; line-height: 1.2; font-weight: 600; text-underline-offset: 3px;
}
.portfolio-carousel .project-card-actions a:focus-visible { outline: 2px solid #806000; outline-offset: 2px; }
.portfolio-carousel .carousel-controls:not([hidden]) { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 2px 8px; margin-top: 0; }
.portfolio-carousel .carousel-controls > button { min-width: 44px; min-height: 44px; padding: 8px; border-radius: 50%; }
.portfolio-carousel .carousel-pagination { display: flex; justify-content: center; align-items: center; min-width: 0; gap: 0; }
.portfolio-carousel .carousel-pagination button { flex: 0 1 32px; min-width: 24px; max-width: 32px; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; }
.portfolio-carousel .carousel-pagination button::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: #8491a5; transition: width 180ms ease, background-color 180ms ease; }
.portfolio-carousel .carousel-pagination button[aria-pressed=true]::before { width: 20px; background: var(--secondary); }
.portfolio-carousel .carousel-pagination button:focus-visible { outline: 2px solid var(--secondary); outline-offset: -4px; }
.portfolio-carousel .carousel-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; color: var(--gray-300); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-page .portfolio-heading { margin-bottom: 24px; }
.home-page .portfolio-actions { margin-top: 20px; }
@media(min-width:640px) {
  .portfolio-carousel { --project-gap: 18px; --project-width: calc((100% - 18px) / 2); }
  .portfolio-carousel .project-photo { height: 190px; }
}
@media(min-width:1024px) {
  .portfolio-carousel { --project-gap: 22px; --project-width: calc((100% - 44px) / 3); }
  .portfolio-carousel .project-photo { height: 208px; }
  .portfolio-carousel .project-caption { padding-inline: 16px; }
}
@media(min-width:1536px) {
  .portfolio-carousel { --project-width: calc((100% - 66px) / 4); }
  .portfolio-carousel .project-photo { height: 220px; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .portfolio-carousel .project-card:hover .project-photo img { transform: scale(1.04); }
}
@media(hover:none) { .portfolio-carousel .project-card:hover .project-photo img { transform: none; } }
@media(prefers-reduced-motion:reduce) { .portfolio-carousel [data-carousel-track] { scroll-behavior: auto; } }

/* Gli indicatori restano su una sola riga anche con tutti i 14 cantieri. */
.portfolio-carousel .carousel-pagination { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; max-width: 100%; }
.portfolio-carousel .carousel-pagination::-webkit-scrollbar { display: none; }
.portfolio-carousel .carousel-pagination button { flex: 0 0 24px; min-width: 24px; max-width: 24px; }
.portfolio-carousel .carousel-meta { justify-content: center; min-height: 28px; }
@media(min-width:768px) { .portfolio-carousel .carousel-pagination { justify-content: safe center; } }

/* Il nastro continuo non si aggancia alle singole card e non accumula transizioni. */
.portfolio-carousel[data-continuous] [data-carousel-track] { scroll-snap-type: none; scroll-behavior: auto; overflow-anchor: none; }
.portfolio-carousel[data-continuous] .project-card { scroll-snap-align: none; }

/* Mappa con fallback senza JavaScript. */
.no-js iframe[data-map-src] { display: none; }
.portfolio-carousel .project-card-actions { justify-content: flex-start; }
.portfolio-carousel .project-case-link { color: #334155; font-size: 13px; gap: 8px; }
.case-page .local-photo img { height: auto; max-height: none; object-fit: contain; }
.case-photo-hint, .case-note { display: block; color: #475569; font-size: 14px; line-height: 1.6; }
.case-facts { margin-block: 24px; border-top: 1px solid #e2e8f0; }
.case-facts > div { padding-block: 12px; border-bottom: 1px solid #e2e8f0; }
.case-facts dt { color: #0f172a; font-weight: 700; margin-bottom: 4px; }
.case-facts dd { margin: 0; color: #475569; line-height: 1.6; }
.case-request-list { padding-left: 24px; margin-bottom: 24px; color: #475569; line-height: 1.8; list-style: disc; }
.case-related { display: grid; gap: 20px; margin-block: 24px; list-style: none; padding: 0; }
.case-related li { padding: 20px; border: 1px solid #e2e8f0; border-radius: 12px; }
.case-related p { margin-top: 10px; color: #475569; line-height: 1.6; }
@media (min-width: 768px) { .case-related { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Le card della home mostrano soltanto le foto; i dettagli restano nel dialogo. */
.portfolio-carousel .project-caption[hidden]{display:none!important}
.photo-case-link{display:inline-flex;align-items:center;min-height:44px;color:var(--secondary);text-underline-offset:4px;font-weight:600}
