/* ---- Variabili CSS ---- */
:root {
  --color-primary: #820000;
  --color-primary-hover: #9a2222;
  --color-primary-dark: #6e1f1f;
  --color-bg-light: #efeeea;
  --color-bg-white: #ffffff;
  --color-text-dark: #000000;
  --color-text-gray: #555555;
  --color-text-light: #333333;
  --color-link: #005fa3;
  --color-border: #d8d3cd;
  --color-input-border: #cccccc;
  --color-success-bg: #d4edda;
  --color-success-text: #155724;
  --color-success-border: #c3e6cb;
  --color-error-bg: #f8d7da;
  --color-error-text: #721c24;
  --color-error-border: #f5c6cb;
  --font-family: 'Roboto', Arial, sans-serif;
  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-card-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-card-xs: 0 2px 6px rgba(0, 0, 0, 0.06);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --header-height: 110px;
  --transition-fast: 0.2s;
  --transition-med: 0.3s;
  --transition-slow: 0.4s;
}

/* ---- Reset e base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  padding-top: var(--header-height);
}

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

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

a:hover {
  color: var(--color-primary);
}

/* ---- Gestione multilingua ---- */
.english,
.italian,
.spanish,
.contact-block {
  display: none;
}

.english.active,
.italian.active,
.spanish.active,
.contact-block.active {
  display: block;
}

.contact-copy-column {
  display: block;
  width: 100%;
}

/* === HEADER === */
header {
  background: #efeeea;
  color: #000;
  padding: 1.0rem 0;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: none;
  border-bottom: 2px solid #d8d3cd;
}

/* Header non fisso per dispositivi touch/mobile */
@media (hover: none) and (pointer: coarse),
       (max-width: 1024px) {
  header {
    position: static;
    box-shadow: none;
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0 1rem;
  box-sizing: border-box;
  width: 100%;
  gap: 0.5rem;
}

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

.site-title-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.header-title {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 0.2rem;
  text-align: left;
  gap: 0;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.bold-text {
  font-weight: bold;
  font-size: 2.7rem;
  color: #820000;
  text-align: left;
  margin-bottom: 0;
  line-height: 1;
  display: block;
  transition: color 0.25s ease;
}

.light-text {
  font-weight: 300;
  font-size: 2.1rem;
  color: #555;
  text-align: left;
  margin-bottom: 0;
}

.subtitle,
p.subtitle {
  display: none;
  text-align: left;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 1.7rem;
  color: #555;
  font-weight: normal;
  transition: color 0.25s ease;
}

/* Hover titolo cliccabile su desktop */
@media (hover: hover) and (pointer: fine) {
  .site-title-link:hover .bold-text {
    color: #9a2222;
  }

  .site-title-link:hover .subtitle,
  .site-title-link:hover p.subtitle {
    color: #666;
  }
}

/* Leggera riduzione altezza header solo desktop */
@media (min-width: 1025px) {
  header {
    padding: 0.75rem 0;
  }

  .logo-img {
    height: 90px;
  }
}

.subtitle.active,
p.subtitle.active {
  display: block;
}

/* --- SWITCHER LINGUA --- */
.language-switcher {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.3rem 1rem;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  border: 1px solid #820000;
  border-radius: 4px;
  background: #fff;
  color: #820000;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.lang-dropdown-btn:hover {
  background: #820000;
  color: #fff;
}

.current-lang-flag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown-btn img {
  width: 30px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
  box-shadow: none;
  border: none;
  display: inline-block;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
  margin-left: 4px;
}

.language-switcher.active .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #820000;
  border-radius: 4px;
  min-width: 200px;
  max-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 101;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

.language-switcher.active .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  color: #820000;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
  font-family: 'Roboto', Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.lang-option:first-child {
  border-radius: 3px 3px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 3px 3px;
}

.lang-option:hover,
.lang-option.active {
  background: #820000;
  color: #fff;
}

.lang-option img {
  width: 24px;
  height: 20px;
  object-fit: contain;
  border: none;
  box-shadow: none;
}

/* ---- About Services ---- */
#about-services {
  margin-top: -4px;
  margin-bottom: 32px;
}

.about-services-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-bg-white);
  overflow: hidden;
  gap: 2rem;
  padding: 2rem 1rem;
}

.about-services-text {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

.about-services-text h2 {
  text-align: left;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.about-services-text p {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.about-services-text section {
  margin-bottom: 2rem;
}

.about-services-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-services-image img,
.foto-laterale {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
}

/* ---- Separatore ---- */
.services-separator {
  border: none;
  border-top: 3px solid var(--color-primary);
  margin: 0.5rem 0 1.5rem 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  opacity: 1;
}

.about-services-titles {
  background: var(--color-bg-light);
  padding: 0.5rem 0;
  border-radius: var(--radius-md);
}

.about-services-titles h2 {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  display: none;
}

.about-services-titles h2.active {
  display: block;
}

/* ---- Counters ---- */
.counters-section {
  width: 100%;
  background: var(--color-bg-white);
  padding: 1.5rem 1rem 2rem;
}

.counters-title h2 {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
}

.counters-row {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  align-items: stretch;
}

.counter {
  background: var(--color-bg-light);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-card-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.counter .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.counter .label {
  margin-top: 0.2rem;
  font-size: 1rem;
  color: #111111;
  font-weight: 500;
  text-align: center;
}

/* ---- Featured Sections (Card Servizi) ---- */
.featured-sections.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1rem;
  background-color: var(--color-bg-light);
}

.featured-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  height: 400px;
  margin-bottom: 0;
  box-shadow: var(--shadow-card-sm);
  cursor: default;
  background: var(--color-bg-white);
  display: flex;
  flex-direction: column-reverse;
  padding: 1rem;
  gap: 1rem;
}

.featured-section img,
.featured-section .card-image {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0;
}

.overlay {
  position: static;
  background: transparent;
  height: auto;
  padding: 0;
  display: block;
  overflow: visible;
}

.overlay h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: var(--color-primary);
  text-align: center;
}

.card-description {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  opacity: 1;
  text-align: justify;
}

.card-description ul.service-list {
  margin: 0.65rem 0 0;
  padding-left: 1.5rem;
  list-style: disc;
  line-height: 1.7;
  color: var(--color-text-dark);
  text-align: left;
  display: block;
  list-style-position: outside;
}

.card-description ul.service-list li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}

/* ---- Touch devices: card immagini nascoste + about us full width ---- */
@media (hover: none) and (pointer: coarse) {
  .featured-section img,
  .featured-section .card-image {
    display: none !important;
  }

  .about-services-image,
  .about-services-image img,
  .foto-laterale {
    display: none !important;
  }

  .about-services-container {
    flex-direction: column;
    align-items: stretch;
  }

  .about-services-text {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Hover effect — SOLO desktop con mouse preciso */
@media (hover: hover) and (pointer: fine) {
  .featured-section {
    flex-direction: column;
    height: 400px;
    padding: 0;
    cursor: pointer;
    background: var(--color-bg-light);
  }

  .featured-section img,
  .featured-section .card-image {
    height: 100%;
    border-radius: 0;
    margin-bottom: 0;
  }

  .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: height var(--transition-slow) ease;
  }

  .overlay h3 {
    font-size: 1.2rem;
    text-align: left;
    width: fit-content;
  }

  .card-description {
    opacity: 0;
    transition: opacity var(--transition-med) ease;
    max-height: 600px;
  }

  .featured-section:hover .overlay {
    height: 100%;
    justify-content: center;
    text-align: center;
  }

  .featured-section:hover .card-description {
    opacity: 1;
  }

  .featured-section:hover h3 {
    text-align: left;
    margin-bottom: 0.2rem;
  }
}

/* ---- Contact Section ---- */
#contact {
  position: relative;
  padding: 4rem 1.25rem 5rem;
  background: #ffffff;
}

.contact-container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.contact-wrapper-2cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.contact-copy-column {
  display: flex;
  width: 100%;
  padding: 0;
  align-items: stretch;
}

.contact-photo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
  min-height: 100%;
  height: 100%;
}

.contact-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.contact-block {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.contact-block.active {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-block h2 {
  color: var(--color-primary);
  font-size: clamp(2.1rem, 2vw, 2.7rem);
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.contact-block p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.18rem;
  line-height: 1.4;
  min-height: 2.8rem;
  margin: 0 0 0.45rem;
  white-space: nowrap;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-block p a,
.contact-block p span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  line-height: 1.4;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.contact-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(130, 0, 0, 0.08);
  color: var(--color-primary);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  width: 100%;
  color: var(--color-text-dark);
  text-decoration: none;
  cursor: pointer;
}

.contact-item span {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.contact-icon-wrap {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(130, 0, 0, 0.06), rgba(130, 0, 0, 0.02));
  border: 1px solid rgba(130, 0, 0, 0.08);
}

.contact-block img,
.contact-block .office-icon,
.contact-block .phone-icon,
.contact-block .email-icon,
.contact-block .linkedin-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.contact-link,
.contact-meta {
  color: var(--color-text-dark);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-link:hover,
.contact-meta:hover {
  color: var(--color-primary);
}

.contact-link {
  text-decoration: none;
}

.contact-block p a {
  color: #000;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
}

.contact-block p a:hover {
  color: var(--color-primary);
}

.contact-block p a img {
  flex-shrink: 0;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(130, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-cta:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .contact-block {
    padding: 0;
  }
}

@media (max-width: 640px) {
  #contact {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .about-services-image img,
  .foto-laterale {
    min-height: 220px;
    height: 220px;
  }

  .contact-wrapper-2cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-photo-card img {
    min-height: 200px;
    height: 200px;
  }

  .contact-block p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-block p a,
  .contact-block p span {
    white-space: nowrap;
    gap: 0.6rem;
  }

  .contact-item {
    align-items: center;
  }

  .contact-link,
  .contact-meta {
    font-size: 0.96rem;
  }
}

@media (min-width: 1025px) {
  .contact-block p,
  .contact-block .contact-item,
  .contact-block .contact-item span,
  .contact-block p a,
  .contact-block p span {
    font-size: 1.45rem;
    line-height: 1.5;
  }
}

@media (max-width: 1024px) {
  .contact-block .contact-item,
  .contact-block .contact-item span,
  .contact-block p a,
  .contact-block p span {
    font-size: 1.2rem;
    line-height: 1.5;
  }
}

/* ---- Footer ---- */
footer {
  padding: 0;
  margin: 0;
  width: 100%;
  border: none;
}

.footer-top {
  background: var(--color-bg-light);
  color: #111111;
  text-align: center;
  padding: 0.7rem 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-bottom {
  background: var(--color-primary);
  color: var(--color-bg-white);
  text-align: center;
  padding: 0.7rem 0.5rem;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.footer-bottom a {
  color: var(--color-bg-white);
  text-decoration: underline;
  margin-left: 0.5rem;
}

.footer-bottom a:hover {
  color: #f5f5f5;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;
  margin: 0;
  z-index: 9999;
  background: #222222;
  color: var(--color-bg-white);
  padding: 1.5rem 1rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.cookie-banner a {
  color: var(--color-bg-white);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.cookie-buttons button {
  background: var(--color-bg-white);
  color: #222222;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  min-width: 120px;
  font-family: var(--font-family);
  font-weight: 500;
}

.cookie-buttons button:hover {
  background: var(--color-primary);
  color: var(--color-bg-white);
}

/* ============================================================
   MEDIA QUERIES — Mobile First
   ============================================================ */

/* ---- Tablet: 768px e oltre ---- */
@media (min-width: 768px) {
  /* About services — affiancato */
  .about-services-container {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
    padding: 0 2rem;
    min-height: 360px;
  }

  .about-services-text {
    flex: 0 0 calc(60% - 1.5rem);
    max-width: calc(60% - 1.5rem);
    font-size: 1rem;
    min-height: 260px;
    justify-content: center;
  }

  .about-services-text h2 {
    font-size: 1.4rem;
  }

  .about-services-image {
    flex: 0 0 calc(40% - 1.5rem);
    max-width: calc(40% - 1.5rem);
    align-self: stretch;
    height: 100%;
  }

  .about-services-image img,
  .foto-laterale {
    height: 100%;
    border-radius: 0;
  }

  /* Counters — 3 colonne */
  .counters-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .counter .value {
    font-size: 2.4rem;
  }

  .counter .label {
    font-size: 1.05rem;
  }

  /* Featured sections — 2 colonne */
  .featured-sections.active {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
  }

  .featured-section {
    max-width: 100%;
    width: 100%;
    margin-bottom: 1rem;
  }

  .featured-section img,
  .featured-section .card-image {
    flex: 1;
    min-height: 0;
  }

  .overlay h3 {
    font-size: 1.3rem;
    text-align: center;
  }

  .card-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Contact — info + foto */
  .contact-wrapper-2cols {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 2rem;
    padding: 2rem 0;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 768px) and (max-width: 1024px) {
  .about-services-image,
  .about-services-image img,
  .foto-laterale {
    display: none !important;
  }

  .about-services-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    padding: 0.75rem 0.75rem 1rem;
  }

  .about-services-text {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
    font-size: 1.04rem;
    line-height: 1.8;
  }

  .featured-section img,
  .featured-section .card-image {
    display: none !important;
  }

  .featured-section {
    height: auto;
    min-height: 0;
    padding: 1rem;
    background: var(--color-bg-white);
  }

  .overlay {
    position: static;
    background: transparent;
    height: auto;
    padding: 0;
    display: block;
    overflow: visible;
  }

  .card-description {
    opacity: 1;
    display: block;
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* ---- Tablet landscape / Desktop piccolo: 1025px e oltre ---- */
@media (min-width: 1025px) {
  /* About services — layout editoriale desktop */
  #about-services {
    margin-top: 0;
    padding-top: 0;
  }

  .about-services-container {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1.1fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 560px;
    margin: 0;
    padding: 0;
    background: var(--color-bg-white);
  }

  .about-services-text {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: 0;
    padding: 3rem 3.5rem 3rem 3rem;
    justify-content: center;
    background: var(--color-bg-white);
  }

  .about-services-image {
    flex: none;
    max-width: none;
    width: 100%;
    height: 100%;
    justify-content: stretch;
    align-items: stretch;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }

  .about-services-image img,
  .foto-laterale {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    margin: 0;
    transform: none !important;
    transition: none !important;
  }

  /* Counters — 4 colonne (come da HTML: 4 counter) */
  .counters-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .counter {
    min-width: 160px;
    padding: 0.4rem 0.6rem;
    background: var(--color-bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow-card-xs);
  }

  .counter .value {
    font-size: 2.5rem;
    font-weight: 700;
  }

  .counter .label {
    margin-top: 0.4rem;
    font-size: 1.05rem;
    color: var(--color-text-light);
  }

  /* Featured sections — desktop: card full width della pagina */
  .featured-sections.active {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
    padding: 2rem;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .featured-section {
    height: 500px;
    width: 100%;
    max-width: none;
  }

  /* Contact — info + foto */
  .contact-wrapper-2cols {
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
    gap: 2rem;
    align-items: stretch;
  }

  .contact-copy-column {
    min-width: 0;
  }

  .contact-photo-card img {
    min-height: 320px;
    max-height: 420px;
  }

  .contact-block {
    padding: 0;
  }
}

/* ---- Desktop ampio: 1201px e oltre ---- */
@media (min-width: 1201px) {
  .about-services-container {
    align-items: center;
  }

  .about-services-image {
    align-self: center;
    height: auto;
  }

  .about-services-image img,
  .foto-laterale {
    height: auto;
    min-height: 0;
    object-fit: cover;
  }
}

/* ---- Tablet landscape specifico: nascondi immagine laterale ---- */
@media (hover: none) and (pointer: coarse) and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (min-width: 1025px) and (max-width: 1200px) and (orientation: landscape) {
  .about-services-image {
    display: none;
  }

  .about-services-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .about-services-text {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

/* ---- Desktop 901-1024px: immagine senza ritagli ---- */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) and (max-width: 1024px) {
  .about-services-image {
    height: auto;
    align-self: stretch;
  }

  .about-services-image img,
  .foto-laterale {
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}

/* ---- iPad Mini / tablet 1024x768 e iPad portrait ---- */
@media (hover: none) and (pointer: coarse) and (min-width: 800px) and (max-width: 1024px) and (min-height: 700px) and (max-height: 900px),
       (hover: none) and (pointer: coarse) and (min-width: 820px) and (max-width: 822px) and (min-height: 1180px) and (max-height: 1182px) and (orientation: portrait),
       (hover: none) and (pointer: coarse) and (min-width: 1024px) and (max-width: 1026px) and (min-height: 1366px) and (max-height: 1368px) and (orientation: portrait),
       (hover: none) and (pointer: coarse) and (min-width: 1024px) and (max-width: 1026px) and (min-height: 1257px) and (max-height: 1261px) and (orientation: portrait) {
  .featured-sections.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .featured-section {
    height: 420px;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
    padding: 0.7rem;
  }

  .featured-section img,
  .featured-section .card-image {
    display: none !important;
    flex: 1;
    min-height: 170px;
    height: 170px;
  }

  .overlay {
    padding: 0.7rem 0.75rem 0.8rem;
  }

  .overlay h3 {
    font-size: 1.12rem;
    text-align: center;
    margin-bottom: 0.45rem;
  }

  .card-description {
    font-size: 0.9rem;
    line-height: 1.45;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .about-services-image,
  .about-services-image img,
  .foto-laterale {
    display: none !important;
  }

  .about-services-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    padding: 0.75rem 0.75rem 1rem;
  }

  .about-services-text {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
    font-size: 1.04rem;
    line-height: 1.8;
  }

  .featured-section img,
  .featured-section .card-image {
    display: none !important;
  }

  .featured-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: auto;
    min-height: 0;
    padding: 1rem;
    background: var(--color-bg-white);
  }

  .overlay {
    position: static;
    background: transparent;
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
  }

  .overlay h3 {
    text-align: center;
  }

  .card-description {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
  }

  .card-description ul.service-list {
    margin: 0.5rem auto 0;
    padding-left: 1rem;
    text-align: center;
    max-width: 95%;
  }

  .card-description ul.service-list li {
    text-align: center;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 1024px) and (max-width: 1035px) and (min-height: 1366px) and (max-height: 1385px) and (orientation: portrait),
       (hover: none) and (pointer: coarse) and (min-width: 1032px) and (max-width: 1035px) and (min-height: 1376px) and (max-height: 1385px) and (orientation: portrait) {
  .about-services-container {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .about-services-image,
  .about-services-image img,
  .foto-laterale {
    display: none !important;
  }

  .about-services-text {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem 1.5rem;
    font-size: 1.08rem;
    line-height: 1.9;
    text-align: center;
  }

  .about-services-text h2,
  .about-services-text p,
  .about-services-text section {
    text-align: center;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 1366px) and (max-width: 1385px) and (min-height: 1024px) and (max-height: 1045px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (min-width: 1370px) and (max-width: 1385px) and (min-height: 1030px) and (max-height: 1045px) and (orientation: landscape) {
  .about-services-container {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem 1rem;
  }

  .about-services-image,
  .about-services-image img,
  .foto-laterale {
    display: none !important;
  }

  .about-services-text {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
    font-size: 1.08rem;
    line-height: 1.8;
    text-align: center;
  }

  .about-services-text h2,
  .about-services-text p,
  .about-services-text section {
    text-align: center;
  }

  .featured-section img,
  .featured-section .card-image {
    display: none !important;
  }

  .featured-section {
    height: auto;
    min-height: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }

  .overlay {
    position: static;
    background: transparent;
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .card-description ul.service-list {
    margin: 0.5rem auto 0;
    text-align: center;
    list-style-position: outside;
  }

  .card-description ul.service-list li {
    text-align: center;
  }
}

/* ---- Landscape specifici (1180x820, 1366x1024, etc.) ---- */
@media (hover: none) and (pointer: coarse) and (min-width: 1180px) and (max-width: 1200px) and (min-height: 800px) and (max-height: 850px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (min-width: 1360px) and (max-width: 1370px) and (min-height: 1020px) and (max-height: 1030px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (min-width: 1020px) and (max-width: 1030px) and (min-height: 760px) and (max-height: 770px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (min-width: 1366px) and (max-width: 1368px) and (min-height: 915px) and (max-height: 920px) and (orientation: landscape) {
  .about-services-image,
  .about-services-image img,
  .foto-laterale {
    display: none !important;
  }

  .about-services-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    padding: 0.75rem 0.75rem 1rem;
  }

  .about-services-text {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
    font-size: 1.08rem;
    line-height: 1.8;
  }

  .featured-sections.active {
    align-items: stretch;
    gap: 2rem;
    padding: 2rem;
  }

  .featured-section {
    height: 540px;
    padding: 0.9rem;
    align-items: center;
    justify-content: center;
  }

  .featured-section img,
  .featured-section .card-image {
    display: none !important;
    flex: 1;
    min-height: 220px;
    margin-bottom: 1.5rem;
  }

  .overlay {
    padding: 0.8rem 0.9rem 1rem;
  }

  .overlay h3 {
    font-size: 1.28rem;
    text-align: left;
    padding: 0.3rem 0;
    margin-bottom: 0.4rem;
  }

  .card-description {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-top: 0.4rem;
  }
}

/* ---- Mobile piccolo: max 600px ---- */
@media (max-width: 600px) {
  .counters-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .counter {
    min-width: 140px;
    padding: 0.3rem 0.4rem;
  }

  .counter .value {
    font-size: 2rem;
  }

  .counter .label {
    font-size: 1rem;
  }

  .about-services-container {
    padding: 1rem 0.5rem;
    gap: 1.5rem;
  }

  .about-services-text {
    padding: 0 0.5rem;
  }

  .about-services-text h2 {
    font-size: 1.2rem;
  }

  .about-services-text p {
    font-size: 0.95rem;
  }

  .featured-sections.active {
    padding: 1rem 0.5rem;
    gap: 1.5rem;
  }

  .featured-section {
    padding: 0.8rem;
    height: auto;
    min-height: 280px;
    gap: 0.7rem;
  }

  .featured-section img,
  .featured-section .card-image {
    flex: none;
    min-height: 120px;
    height: 130px;
    width: 100%;
  }

  .overlay h3 {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .contact-wrapper-2cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
  }

  .contact-copy-column {
    width: 100%;
  }

  .about-services-image img,
  .foto-laterale {
    min-height: 200px;
    height: 200px;
  }

  .contact-photo-card img {
    min-height: 180px;
    height: 180px;
  }

  .contact-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }

  .contact-block p {
    font-size: 0.95rem;
  }

  .cookie-banner {
    padding: 1rem;
    display: flex;
    flex-direction: column;
  }

  .cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .cookie-buttons {
    flex-direction: row;
    width: 100%;
    gap: 0.5rem;
  }

  .cookie-buttons button {
    flex: 1;
    width: auto;
    font-size: 0.95rem;
    min-width: 0;
    padding: 0.6rem 1rem;
  }

  .footer-top,
  .footer-bottom {
    font-size: 0.95rem;
    padding: 0.6rem 0.3rem;
  }
}

/* ---- Header non fisso su touch/mobile ---- */
@media (hover: none) and (pointer: coarse),
       (max-width: 1024px) {
  body {
    padding-top: 0;
  }

  header {
    position: static;
  }
}

/* ============================================================
   HEADER & LANGUAGE SWITCHER — copiati identici da style_v1.2.css
   (media query specifiche per tablet e mobile)
   ============================================================ */

/* Tablet: 768px - 1024px — Header centrato */
@media (min-width: 768px) and (max-width: 1024px) {
  /* === HEADER CENTRATO === */
  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    width: 100%;
    gap: 1rem;
    text-align: center;
  }

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

  .header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    gap: 0.2rem;
  }

  .bold-text {
    font-size: 3rem;
    color: #820000;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    line-height: 1.1;
  }

  .light-text {
    font-size: 2.3rem;
    color: #555;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    line-height: 1.1;
  }

  .subtitle,
  p.subtitle {
    font-size: 1.6rem;
    text-align: center;
    margin: 0.5rem auto;
    padding: 0 1rem;
    width: 100%;
  }

  .language-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .lang-dropdown-btn {
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
  }

  .lang-dropdown-menu {
    min-width: 200px;
  }

  .lang-option {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

/* Fino a 1024px — gap language switcher e margin header-title */
@media (max-width: 1024px) {
  .language-switcher {
    gap: 1rem;
  }
  .header-title {
    margin-bottom: 2rem;
  }
}

/* Fino a 900px — language switcher statico */
@media (max-width: 900px) {
  .language-switcher {
    position: static;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    gap: 0.5rem;
  }
  .lang-dropdown-btn {
    font-size: 0.95rem;
    padding: 0.2rem 0.7rem;
  }

  .lang-dropdown-menu {
    min-width: 180px;
  }

  .lang-option {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  header .header-title {
    margin-bottom: 2rem;
  }
}

/* Mobile e tablet verticali iPad — header impilato */
@media
  (max-width: 768px),
  (min-width: 1024px) and (max-width: 1026px) and (min-height: 1366px) and (max-height: 1368px) and (orientation: portrait),
  (min-width: 820px) and (max-width: 822px) and (min-height: 1180px) and (max-height: 1182px) and (orientation: portrait),
  (min-width: 1024px) and (max-width: 1026px) and (min-height: 1257px) and (max-height: 1261px) and (orientation: portrait)
{
  .language-switcher {
    gap: 0.2rem;
    padding: 0.2rem 0;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    position: static;
  }
  .lang-dropdown-btn {
    display: flex;
    width: auto;
    max-width: 120px;
    height: 34px;
    font-size: 1.08rem;
    padding: 0.3rem 1rem;
    border-radius: 3px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .lang-dropdown-menu {
    min-width: 160px;
  }

  .lang-option {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .lang-dropdown-btn img,
  .lang-option img {
    width: 32px;
    height: 26px;
    margin-right: 0;
    vertical-align: middle;
  }
  .header-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
  .logo-img {
    margin: 0 auto 0.5rem auto;
    display: block;
    height: 160px;
    width: auto;
  }
  .header-title {
    align-items: center;
    text-align: center;
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
  .bold-text,
  .light-text,
  .subtitle,
  p.subtitle {
    text-align: center;
    margin-top: 0.5rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

/* Fino a 768px — language switcher relativo */
@media (max-width: 768px) {
  .language-switcher {
    position: relative;
    top: auto;
    right: auto;
  }

  .lang-dropdown-menu {
    right: 0;
  }

  .subtitle {
    line-height: 1.3;
  }
}

/* ---- Smartphone touch: striscia orizzontale della foto in ogni scheda + testo "chi siamo" giustificato ---- */
@media (hover: none) and (pointer: coarse) and (max-width: 767px) {
  .featured-section {
    flex-direction: column-reverse;
    height: auto;
    min-height: 0;
    gap: 0.8rem;
  }

  .featured-section img,
  .featured-section .card-image {
    display: block !important;
    flex: none;
    width: 100%;
    height: 150px;
    min-height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    margin: 0;
  }

  .about-services-text p {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}
