/*
Theme Name: Lineare
Theme URI: https://example.com/lineare
Author: Caffeinapura
Author URI: https://example.com
Description: Tema WordPress classico (senza page builder), pensato per siti istituzionali e corporate. Grafica lineare, tipografia sobria, layout a griglia, nessun elemento decorativo superfluo. Compatibile con menu personalizzati, immagine in evidenza, widget nel footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lineare
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================
   0. VARIABILI
   ========================================================= */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7f9;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-border: #e1e5ea;
  --color-accent: #0a2158;       /* blu navy del logo Farmadante */
  --color-accent-contrast: #ffffff;
  --color-accent-soft: #e7eaf1;
  --color-teal: #0089a8;         /* turchese del logo, colore di accento */
  --color-teal-soft: #e2f2f5;
  --color-petrol: #0d5a6c;       /* teal scuro del CTA hero, come da mockup */

  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --container: 1140px;
  --gutter: 24px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 0.3em;
  --space-lg: 64px;
  --space-xl: 96px;

  --radius: 2px;
}

/* =========================================================
   1. RESET DI BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-teal); text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}
h1 { font-size: 2.75rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 var(--space-sm); color: var(--color-text-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.section {
	padding: 3em 0 4em 0;
}
.section--alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head p { margin-bottom: 0; }

/* =========================================================
   2. BOTTONI
   ========================================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}
.btn-primary:hover { background: #071733; color: var(--color-accent-contrast); }
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-radius:25px;
}
.btn-outline:hover { background: var(--color-accent-soft); }

/* =========================================================
   3. HEADER / NAVIGAZIONE
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 4px 16px rgba(10, 33, 88, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  transition: padding .25s ease;
}
.site-header.is-scrolled .site-header__inner { padding-top: 12px; padding-bottom: 12px; }
.site-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-branding a {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.site-branding a:hover { text-decoration: none; }
.site-logo-link { display: inline-flex; align-items: center; }
.site-logo-img { height: 40px; width: auto; display: block; }

.site-branding .tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.primary-menu a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  color: #192e67;
  font-size: 0.875rem;
  font-weight:500;
  white-space: nowrap;
}
.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.primary-menu a:hover { color: var(--color-teal); text-decoration: none; }
.primary-menu a:hover::after { transform: scaleX(1); }
.primary-menu .current-menu-item > a { color: var(--color-accent); font-weight: 600; }
.primary-menu .current-menu-item > a::after { background: var(--color-accent); transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .site-header__right { gap: 10px; }
  .primary-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) var(--gutter) var(--space-md);
  }
  .primary-menu.is-open { display: flex; }
}

/* =========================================================
   4. HERO — foto statica a tutta larghezza, testo in overlay
   ========================================================= */
.hero-cover {
  position: relative;
  min-height: min(74vh, 600px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  gap: 3rem;
}

.hero-cover__media { position: absolute; inset: 0; z-index: 0; background: var(--color-bg-alt); }
.hero-cover__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero-cover__media--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #dcebe6 0%, #eef6f4 45%, #e4eef8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-cover__media--placeholder svg { width: 96px; height: 96px; color: var(--color-accent); opacity: 0.2; }

.hero-cover__intro,
.hero-cover__brands {
  max-width: var(--container);
  position: relative;
  z-index: 2; /* sopra lo scrim */
}

/* Riga 1: due colonne, destra centrata in verticale */
.hero-cover__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

/* Mobile: le due colonne diventano due righe */
@media (max-width: 767px) {
  .hero-cover__intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Velatura chiara: garantisce la leggibilità del testo scuro su qualsiasi foto */
.hero-cover__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 32%,
    rgba(255, 255, 255, 0.18) 58%,
    rgba(255, 255, 255, 0) 72%
  );
}

.hero-cover .container { position: relative; z-index: 2; width: 100%; }
.hero-cover__content {
  padding: 30px 0;
  max-width: 480px;
}
.hero-cover__content h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 3.0rem;
  line-height: 1.15;
  color: #192e67;
  margin-bottom: var(--space-xs);
}

.hero-cover__lead {
	color: #4A5568;
	font-size: 1.2625rem;
	margin-bottom: var(--space-md);
    color: #3499ad;
    font-weight: bold;
}
.hero-cover__text {
	color: #4A5568;
	font-size: 1.2625rem;
}

.hero-cover__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-petrol);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
}
.hero-cover__cta:hover { background: #0a4956; color: #fff; text-decoration: none; }
.hero-cover__keywords {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.9;
}

@media (max-width: 860px) {
  .hero-cover { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-cover__media { position: relative; inset: auto; height: 240px; order: -1; }
  .hero-cover__scrim { display: none; }
  .hero-cover__content { max-width: none; padding: var(--space-md) 0; }
  .hero-cover__content h1 { font-size: 1.75rem; }
}

/* =========================================================
   5. FEATURES / SERVIZI
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.feature-card {
  border-top: 2px solid var(--color-teal);
  padding-top: var(--space-sm);
  transition: transform .25s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-sm);
  color: var(--color-teal);
  transition: transform .25s ease;
}
.feature-card:hover .feature-card__icon { transform: scale(1.1); }
.feature-card h3 { margin-bottom: var(--space-xs); }
.feature-card p { margin-bottom: 0; }

@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.features-grid--icons {
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}
.features-grid--icons .feature-card {
  border-top: none;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  background: var(--color-bg-alt);
}
.features-grid--icons .feature-card__icon {
  width: 32px;
  height: 32px;
  margin: 0 auto var(--space-sm);
}
.features-grid--icons h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}
.features-grid--icons p { font-size: 0.875rem; }

@media (max-width: 960px) {
  .features-grid--icons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .features-grid--icons { grid-template-columns: 1fr; }
}

/* =========================================================
   6. ABOUT / TESTO + IMMAGINE
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-xl);
  align-items: center;
}
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: visible;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-teal) 130%);
  box-shadow: 0 32px 64px -24px rgba(10, 33, 88, 0.35);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__badge {
  position: absolute;
  left: -28px;
  bottom: -28px;
  background: #fff;
  padding: 20px 26px;
  max-width: 220px;
  box-shadow: 0 20px 40px -12px rgba(10, 33, 88, 0.3);
}
.split__badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.split__badge span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.split ul.check-list { margin-top: var(--space-sm); }
.split ul.check-list li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}
.split ul.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--color-teal);
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split__media { order: -1; }
  .split__media { aspect-ratio: 4 / 3; margin-bottom: var(--space-lg); }
  .split__badge { left: 16px; bottom: -20px; }
}

/* =========================================================
   7. NEWS / ARTICOLI
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: 2em 0 1em 0;
}
.news-card {
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.news-card:hover {
  border-color: var(--color-teal);
  box-shadow: 0 8px 24px rgba(10, 33, 88, 0.08);
}
.news-card__media {
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: var(--space-sm); flex: 1; display: flex; flex-direction: column; }
.news-card__date {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}
.news-card h3 { font-size: 1.125rem; margin-bottom: var(--space-xs); }
.news-card p { font-size: 0.9375rem; margin-bottom: var(--space-sm); }
.news-card__link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  transition: transform .2s ease;
}
.news-card:hover .news-card__link { transform: translateX(4px); }

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   7bis. STATISTICHE (numeri animati al passaggio in vista)
   ========================================================= */
.stats-band {
  background: var(--color-accent);
  padding: var(--space-lg) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.stat-item__number .stat-suffix { font-size: 1.75rem; }
.stat-item__label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-md); }
}

/* =========================================================
   8. CTA BAND
   ========================================================= */
.cta-band {
  background: #005566;
  color: var(--color-accent-contrast);
  padding: var(--space-lg) 0;
  text-align: center;
}
.cta-band h2 { font-family: var(--font-sans); color: var(--color-accent-contrast); }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--color-accent); border-color: #fff; }
.cta-band .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* =========================================================
   9. CONTENUTO PAGINA / ARTICOLO GENERICO
   ========================================================= */
.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.page-header h1 { margin-bottom: 0; }
.entry-content { padding: var(--space-lg) 0; max-width: 760px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: var(--space-lg); }
.entry-content img { border: 1px solid var(--color-border); }
.entry-meta {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.pagination { display: flex; gap: var(--space-sm); padding: var(--space-md) 0; }
.pagination a, .pagination span {
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  font-size: 0.875rem;
}
.pagination .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* =========================================================
   10. FOOTER — banda di chiusura scura + riga legale (dati societari)
   ========================================================= */
.site-footer {
  background-color: #0d2f63;
  background-image: linear-gradient(135deg, var(--color-accent) 0%, #0d2f63 55%, var(--color-teal) 160%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.92);
}
.footer-statement {
  text-align: center;
  padding: var(--space-xl) var(--gutter);
}
.footer-statement__logo { display: block; height: 80px; width: auto; margin: 0 auto var(--space-md); }
.footer-statement__tagline {
  font-family: var(--font-sans);
  font-size: 1.875rem;
  color: #fff;
  margin: 0 auto;
  padding-bottom: var(--space-sm);
  max-width: 520px;
  position: relative;
}
.footer-statement__tagline::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin: var(--space-sm) auto 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: var(--space-sm) 0;
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}
.footer-legal-id { margin: 0; color: #fff; }
.footer-bottom__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}
.footer-social { display: flex; gap: var(--space-sm); }
.footer-social a { color: rgba(255, 255, 255, 0.75); display: inline-flex; }
.footer-social a:hover { color: #fff; }

@media (max-width: 700px) {
  .footer-bottom__inner { justify-content: center; text-align: center; }
  .footer-bottom__right { justify-content: center; }
  .features-grid, .news-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   10bis. REVEAL ON SCROLL
   Applicata via JS (assets/js/main.js) con IntersectionObserver.
   Se JS è disabilitato, .reveal resta visibile normalmente
   (nessun contenuto nascosto senza JS).
   ========================================================= */
/* Senza JS (classe .js assente su <html>) il contenuto resta sempre visibile */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .1s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .2s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   11. UTILITY WORDPRESS DI BASE
   ========================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.alignwide { max-width: 1200px; }
.alignfull { max-width: none; width: 100%; }

/* =========================================================
   12. HEADER — azioni (ricerca, CTA "Contattaci", hamburger)
   ========================================================= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-search-toggle {
  background: none;
  border: none;
  padding: 4px;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
}
.header-search-toggle svg { width: 20px; height: 20px; }
.header-search-toggle:hover { color: var(--color-teal); }
.header-cta {
  padding: 8px 18px;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.header-search-form {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: var(--space-sm) 0;
}
.header-search-form .search-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin-left: auto;
}
.header-search-form input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: inherit;
}
.header-search-form button {
  border: none;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .header-search-toggle { display: none; }
  .header-cta { padding: 8px 14px; }
}

/* =========================================================
   13. PILL ROW — teaser Brand/Competenze in Home
   ========================================================= */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill {
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .2s ease, color .2s ease;
}
.section--alt .pill { background: var(--color-bg-alt); }
.pill-row--brand { gap: 16px; }
.pill--brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 24px;
  border-color: var(--color-accent);
}
.pill__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-accent);
}
.pill__descriptor {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.section-cta { margin-top: var(--space-md); margin-bottom: 0; }

.section-label {
  font-size: 1.7625rem;
  font-weight: 600;
  color: #192e67;
  margin-bottom: var(--space-md);
}

/* Teaser "I nostri brand" in Home: card con logo + pulsante, come da mockup */
.brand-teaser-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  padding: 1em; 
}
.brand-teaser-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
  padding-bottom: 1em;
}
.brand-teaser-card:hover { box-shadow: 0 8px 24px rgba(10, 33, 88, 0.08); transform: translateY(-2px); }
.brand-teaser-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-accent);
  min-height: 40px;
  width: 100%;
  padding: 0.5em;
}
.brand-teaser-card__logo svg { width: 22px; height: 22px; color: var(--color-teal); flex-shrink: 0; }
.brand-teaser-card__logo img {
  display: block;
  width: 100%;
  height: 40px;
  object-fit: contain;
}
.brand-teaser-card__link {
  padding: 8px 18px;
  font-size: 0.8125rem;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .brand-teaser-grid { grid-template-columns: 1fr 1fr;}
}
@media (max-width: 480px) {
  .brand-teaser-grid { grid-template-columns: 1fr;}
}

/* =========================================================
   14. BRAND CARDS — pagina "I nostri brand"
   ========================================================= */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.brand-card {
  border-top: 2px solid var(--color-teal);
  padding-top: var(--space-md);
}
.brand-card__mark {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-teal) 130%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}
.brand-card__name { margin-bottom: 2px; }
.brand-card__descriptor {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
}
.brand-card__text { margin-bottom: var(--space-sm); }
.brand-card__link { font-weight: 600; font-size: 0.9375rem; }

@media (max-width: 700px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   15. PROCESS LIST — pagina "Cosa facciamo"
   ========================================================= */
.process-list__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}
.process-list__item:last-child { border-bottom: 1px solid var(--color-border); }
.process-list__index {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-teal);
  line-height: 1;
}
.process-list__body h2 { margin-bottom: var(--space-xs); }
.process-list__body p { margin-bottom: 0; max-width: 640px; }

@media (max-width: 640px) {
  .process-list__item { grid-template-columns: 56px 1fr; padding: var(--space-md) 0; }
  .process-list__index { font-size: 1.75rem; }
}

/* =========================================================
   16. PEOPLE GRID — pagina "Governance & Management"
   ========================================================= */
.governance-group { margin-bottom: var(--space-xl); }
.governance-group:last-child { margin-bottom: 0; }
.governance-group h2 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-teal);
  margin-bottom: var(--space-md);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-xl);
}
.people-grid--three { grid-template-columns: repeat(3, 1fr); }
.person-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.person-card__initials {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 1.375rem;
}
.person-card__name { font-family: var(--font-serif); font-size: 1.125rem; }
.person-card__role { font-size: 0.875rem; color: var(--color-text-muted); }

@media (max-width: 700px) {
  .people-grid { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   17. CONTATTI — dati societari + form nativo
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info address { font-style: normal; color: var(--color-text-muted); margin-bottom: var(--space-md); }
.contact-details { margin: 0; }
.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}
.contact-details dd { margin: 2px 0 0; color: var(--color-text); }

.admin-notice {
  background: #fff8e6;
  border: 1px solid #f0d999;
  color: #6b5200;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-top: var(--space-md);
}

.contact-form-wrap { background: var(--color-bg-alt); padding: var(--space-lg); }
.contact-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { margin-bottom: var(--space-sm); }
.form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}
.form-row--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
}
.form-row--checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-teal);
}
.form-row--checkbox a { color: var(--color-teal); }
.contact-form .btn { border: none; cursor: pointer; margin-top: var(--space-xs); }
.form-notice { padding: 12px 16px; margin-bottom: var(--space-md); font-size: 0.9375rem; }
.form-notice--success { background: var(--color-teal-soft); color: #0a4b5a; }
.form-notice--error { background: #fdecec; color: #7a1f1f; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   18. NEWS FILTER — filtro per categoria nell'archivio
   ========================================================= */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: var(--space-lg);
}
.news-filter__item {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-radius: 25px;
  background-color: #f1f7f7;
}
.news-filter__item:hover { border-color: var(--color-teal); color: var(--color-teal); text-decoration: none; }
.news-filter__item.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.entry-abstract {
  font-size: 1.125rem;
  color: var(--color-text);
  border-left: 3px solid var(--color-teal);
  padding-left: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* =========================================================
   19. FOOTER — link legali (dentro la banda scura .footer-bottom)
   ========================================================= */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.footer-legal a { color: rgba(255, 255, 255, 0.75); font-size: 0.8125rem; }
.footer-legal a:hover { color: #fff; }

/* =========================================================
   20. COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--space-sm);
  z-index: 200;
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 20px 48px rgba(6, 20, 50, 0.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  padding: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
  justify-content: space-between;
}
.cookie-banner p { color: rgba(255, 255, 255, 0.85); margin: 0; font-size: 0.875rem; flex: 1 1 320px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner .btn { padding: 8px 16px; font-size: 0.8125rem; }
.cookie-banner .btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.cookie-banner .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 560px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; text-align: center; }
}

/* =========================================================
   21. SPLIT BADGE — variante citazione (senza numero)
   ========================================================= */
.split__badge--quote {
  max-width: 260px;
}
.split__badge--quote span {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--color-accent);
}