/* ==========================================================================
   ALMAN SRL - ARCHITETTURA & INGEGNERIA CIVILE
   Design: Rigoroso, Moderno, Minimale, Senza Fronzoli
   Palette: Bianco, Antracite/Nero, Grigio Cemento, Accento Arancio Alman
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #f8f9fa;
  --color-bg-dark: #121212;
  --color-bg-card: #ffffff;

  --color-text: #1a1a1a;
  --color-text-muted: #595959;
  --color-text-light: #ffffff;
  --color-text-light-muted: #a1a1aa;

  --color-border: #e5e7eb;
  --color-border-subtle: #f0f0f2;
  --color-border-dark: #27272a;

  /* Colore ufficiale Alman (dal logo originale) */
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --container-max: 1200px;
  --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGAZIONE
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.2rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0.01em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: #000000;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #111111;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.25rem;
  border: 1px solid #111111;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-call:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.phone-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: 0.02em;
}

.phone-link:hover {
  color: var(--color-accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #111111;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.3rem;
  border: 1px solid #111111;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #111111;
}

/* --------------------------------------------------------------------------
   PAGE HEADER / BANNER (SEZIONI MULTIPAGINA)
   -------------------------------------------------------------------------- */
.page-header {
  background-color: #18181b;
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid #27272a;
}

.page-header-inner {
  max-width: 820px;
}

.page-header-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-header-lead {
  font-size: 1.1rem;
  color: #a1a1aa;
  line-height: 1.6;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #71717a;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.breadcrumbs a {
  color: #a1a1aa;
  transition: color var(--transition);
}

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

.breadcrumbs span {
  color: #52525b;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 560px;
  background-color: #18181b;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/hero/hero-cantiere-alman.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.42);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.75) 0%, rgba(18, 18, 18, 0.4) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 4rem 0;
}

.hero-meta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #d4d4d8;
  margin-bottom: 2.2rem;
  max-width: 680px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   METRICHE & NUMERI CHIAVE (MINIMALI)
   -------------------------------------------------------------------------- */
.key-facts {
  border-bottom: 1px solid var(--color-border);
  background-color: #ffffff;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--color-border);
}

.fact-item {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--color-border);
}

.fact-item:last-child {
  border-right: none;
}

.fact-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   SEZIONI STRUTTURA
   -------------------------------------------------------------------------- */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head.center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   CHI SIAMO & SOA (LAYOUT EDITORIALE)
   -------------------------------------------------------------------------- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: flex-start;
}

.editorial-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.editorial-text p {
  font-size: 1rem;
  color: #3f3f46;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.text-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.spec-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.35rem;
}

.spec-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* SOA Box */
.soa-box {
  background-color: #ffffff;
  border: 1px solid #111111;
  padding: 2.25rem;
  border-radius: 4px;
}

.soa-box-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 0.4rem;
}

.soa-box-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.soa-item {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.soa-item-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #18181b;
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.soa-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.3rem;
}

.soa-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SERVIZI E CANTIERI (PORTFOLIO INTEGRATO)
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.filter-tab {
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition);
}

.filter-tab:hover {
  color: #111111;
  background-color: var(--color-bg-subtle);
}

.filter-tab.active {
  color: #ffffff;
  background-color: #111111;
}

.cantieri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cantiere-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.cantiere-card:hover {
  transform: translateY(-3px);
  border-color: #111111;
}

.cantiere-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #e4e4e7;
  overflow: hidden;
}

.cantiere-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cantiere-card:hover .cantiere-thumb img {
  transform: scale(1.04);
}

.cantiere-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(18, 18, 18, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.cantiere-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cantiere-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.cantiere-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.cantiere-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.cantiere-cta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cantiere-card:hover .cantiere-cta {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   LIGHTBOX MINIMALE
   -------------------------------------------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.96);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-shell {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 40;
  width: 34px;
  height: 34px;
  background-color: rgba(18, 18, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all var(--transition);
  padding: 0;
}

.lightbox-close-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: #ffffff;
}

.lightbox-close-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 52px;
  height: 52px;
  background-color: rgba(18, 18, 18, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  transition: all var(--transition);
  padding: 0;
}

.lightbox-arrow svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: #ffffff;
}

.lightbox-arrow:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.6);
}

.lightbox-arrow.prev {
  left: 16px;
}

.lightbox-arrow.next {
  right: 16px;
}

.lightbox-info {
  margin-top: 1.25rem;
  text-align: center;
  color: #ffffff;
}

.lightbox-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.lightbox-info-count {
  font-size: 0.8rem;
  color: #a1a1aa;
  font-family: var(--font-mono);
}

.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.4rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 4px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 2px;
}

.lightbox-thumb {
  width: 60px;
  height: 42px;
  border-radius: 3px;
  object-fit: cover;
  opacity: 0.45;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
  opacity: 1;
  border-color: var(--color-accent);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   REFERENZE & GRANDI LAVORI (TABELLARE PULITO)
   -------------------------------------------------------------------------- */
.references-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ref-row {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.25rem;
}

.ref-client {
  font-weight: 700;
  font-size: 1rem;
  color: #111111;
  margin-bottom: 0.25rem;
}

.ref-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Stile tabelle informative / policy */
.policy-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.policy-table th {
  background-color: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.policy-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  line-height: 1.5;
  vertical-align: top;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   CONTATTI & FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-col h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 0.75rem;
}

.contact-info-col p.lead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
}

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

.contact-map-frame {
  height: 220px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Form Styling */
.form-card {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2.5rem;
}

.form-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 0.5rem;
}

.form-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: span 2;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111111;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background-color: #ffffff;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #111111;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.privacy-agreement {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  cursor: pointer;
  text-align: left;
  justify-content: flex-start;
  width: 100%;
}

.privacy-agreement input {
  margin: 0.15rem 0 0 0;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #111111;
}

.form-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

/* Honeypot nascosto */
.antispam-hp {
  display: none !important;
  visibility: hidden !important;
}

/* Feedback stato */
.form-notice {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 3px;
  display: none;
}

.form-notice.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-notice.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   FOOTER MINIMALE
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #111111;
  color: #a1a1aa;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border-dark);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #27272a;
}

.footer-company-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.footer-company-desc {
  font-size: 0.85rem;
  color: #71717a;
  max-width: 440px;
  line-height: 1.6;
}

.footer-company-desc a {
  color: #a1a1aa;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-company-desc a:hover {
  color: #ffffff;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.88rem;
  color: #d4d4d8;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #71717a;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact-item:nth-child(2) {
    border-right: none;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cantieri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .references-table {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 76px;
  }
  .logo-img {
    height: 48px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 0.75rem;
  }
  .header-cta .btn-primary {
    display: none;
  }
  .header-cta .btn-call {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    border-color: var(--color-accent);
    color: var(--color-accent);
  }
  .header-cta .btn-call:hover {
    background-color: var(--color-accent);
    color: #ffffff;
  }
  .page-header {
    padding: 3rem 0 2rem;
  }
  .page-header-title {
    font-size: 1.85rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-body {
    padding: 3rem 0;
  }
  .facts-grid {
    grid-template-columns: 1fr;
  }
  .fact-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem;
  }
  .fact-item:last-child {
    border-bottom: none;
  }
  /* Filtri cantieri mobile a scorrimento orizzontale touch pulito */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    white-space: nowrap;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
  .cantieri-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  /* Lightbox touch mobile */
  .lightbox-stage {
    height: 56vh;
  }
  .lightbox-arrow {
    width: 44px;
    height: 44px;
  }
  .lightbox-arrow svg {
    width: 22px;
    height: 22px;
  }
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }
  .lightbox-close-btn {
    top: -38px;
    right: 4px;
    width: 30px;
    height: 30px;
  }
  .lightbox-close-btn svg {
    width: 14px;
    height: 14px;
  }
  .lightbox-thumb {
    width: 48px;
    height: 34px;
  }
  .form-fields-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: span 1;
  }
  .form-card {
    padding: 1.5rem 1.25rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 400px) {
  .logo-img {
    height: 42px;
  }
  .header-cta .btn-call {
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
  }
}

/* --------------------------------------------------------------------------
   COOKIE BANNER (CONFORME GARANTE PRIVACY - SOLO COOKIE TECNICI)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 480px;
  background-color: #18181b;
  color: #f4f4f5;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 999;
  font-size: 0.84rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-close {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: color var(--transition), background-color var(--transition);
}

.cookie-banner-close:hover,
.cookie-banner-close:focus-visible {
  color: #ffffff;
  background-color: #27272a;
  outline: none;
}

.cookie-banner-text {
  color: #d4d4d8;
  padding-right: 1.25rem;
}

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

.cookie-banner-text a:hover {
  color: #ffffff;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-cookie-accept {
  background-color: #b45309;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition);
}

.btn-cookie-accept:hover {
  background-color: #92400e;
}

/* Pulsante di ripristino preferenze cookie in cookie-policy.html */
.btn-cookie-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #d1d5db;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  margin-top: 0.75rem;
}

.btn-cookie-reset:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  color: #000000;
}

.reset-cookie-notice {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1rem 1.25rem;
  }
}
