/*
Theme Name: ROIV Theme
Theme URI: https://roiv.it
Author: ROIV
Author URI: https://roiv.it
Description: Tema personalizzato per ROIV, azienda del settore elettromeccanico per la progettazione e realizzazione di automazioni industriali ed artigianali.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roiv-theme
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --primary-color: #cc0075;      /* Fucsia/rosa del logo ROIV, leggermente scurito */
  --primary-dark: #a30060;
  --primary-darker: #7d004a;
  --primary-tint: #fde6f2;
  --primary-tint-soft: #fff2f9;
  --secondary-color: #6b7280;    /* Grigio del logo ROIV, leggermente scurito per contrasto */
  --ink: #16181d;
  --ink-soft: #4b4f58;
  --light-color: #f7f7fa;
  --surface: #ffffff;
  --border-color: #e7e7ec;
  --white-color: #ffffff;

  --font-heading: 'Space Grotesk', 'Inter', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(22, 24, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 24, 29, 0.08);
  --shadow-lg: 0 20px 45px rgba(22, 24, 29, 0.14);
  --shadow-brand: 0 12px 30px rgba(204, 0, 117, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all 0.35s var(--ease);

  --container-width: 1200px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background-color: var(--white-color);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  gap: 30px 0;
}

.col {
  flex: 1 1 280px;
  padding: 0 15px;
}

/* ==========================================================================
   Reveal-on-scroll (progressive enhancement)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  transition: var(--transition);
}

.site-header.is-scrolled .header-inner {
  padding: 10px 0;
}

.site-logo {
  max-width: 170px;
}

.site-logo img {
  display: block;
}

/* Menu principale */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  align-items: center;
}

.main-menu li {
  margin-left: 34px;
  position: relative;
}

.main-menu a {
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  padding: 8px 0;
  display: block;
  position: relative;
}

.main-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.main-menu a:hover,
.main-menu .current-menu-item a {
  color: var(--primary-color);
}

.main-menu a:hover::after,
.main-menu .current-menu-item a::after {
  width: 100%;
}

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 26px;
  height: 20px;
  position: relative;
  z-index: 10;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white-color);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-brand);
  transition: var(--transition);
}

.btn:hover {
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(204, 0, 117, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn-light {
  background: var(--white-color);
  color: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  color: var(--primary-darker);
  transform: translateY(-3px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 130px 0 110px;
  text-align: center;
  color: var(--white-color);
  background: linear-gradient(160deg, #16161a 0%, #251f29 55%, var(--primary-darker) 130%);
  overflow: hidden;
  isolation: isolate;
}

.hero-section.has-photo {
  background-image: linear-gradient(180deg, rgba(12, 10, 13, 0.88), rgba(22, 3, 15, 0.92)), var(--hero-image);
  background-size: cover;
  background-position: center 30%;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(204, 0, 117, 0.32), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(204, 0, 117, 0.22), transparent 45%);
  z-index: -1;
}

.hero-section.has-photo::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(204, 0, 117, 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(204, 0, 117, 0.05), transparent 40%);
}

.hero-kicker {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Rete di particelle animata sullo sfondo delle hero (js/particles-network.js) */
.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.hero-title {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white-color);
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-actions .btn-outline {
  color: var(--white-color);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-actions .btn-outline:hover {
  border-color: var(--white-color);
  color: var(--white-color);
  background: rgba(255, 255, 255, 0.08);
}

/* Hero interne (pagine secondarie) — più compatte */
.hero-section.hero-inner {
  padding: 90px 0 76px;
}

/* ==========================================================================
   Sezioni generiche
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-muted {
  background-color: var(--light-color);
}

.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: var(--ink);
}

.section-subtitle {
  font-size: 17px;
  margin-bottom: 56px;
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Contenuto legale (Privacy Policy e pagine testuali simili)
   ========================================================================== */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-updated {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--light-color);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 44px 0 16px;
}

.legal-content h2:first-of-type {
  margin-top: 8px;
}

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

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.legal-content a {
  text-decoration: underline;
  text-decoration-color: rgba(204, 0, 117, 0.35);
  text-underline-offset: 3px;
}

/* ==========================================================================
   Icon badge (sostituisce le immagini mancanti su servizi/prodotti)
   ========================================================================== */
.icon-badge {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white-color);
  font-size: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-brand);
}

.icon-badge.is-muted {
  background: linear-gradient(135deg, #f0f0f3, #e2e2e8);
  color: var(--secondary-color);
  box-shadow: none;
}

/* ==========================================================================
   Servizi & Prodotti (card grid)
   ========================================================================== */
.services-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.service-item,
.product-item {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 34px 28px;
  transition: var(--transition);
}

.service-item:hover,
.product-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-title,
.product-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.service-description,
.product-description {
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.service-item .btn,
.product-item .btn {
  padding: 10px 22px;
  font-size: 13.5px;
}

/* ==========================================================================
   Chi siamo / sezioni con immagine affiancata
   ========================================================================== */
.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  transition: transform 0.6s var(--ease);
}

.about-image:hover img {
  transform: scale(1.04);
}

.about-text {
  flex: 1;
}

.about-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

.about-description {
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--border-color);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 9px;
}

/* ==========================================================================
   Valori / punti di forza (sostituisce la sezione "Team" con foto finte)
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.value-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.value-item .icon-badge {
  margin-left: auto;
  margin-right: auto;
}

.value-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.value-description {
  color: var(--ink-soft);
  font-size: 15px;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   Categorie prodotto
   ========================================================================== */
.category-item {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
}

.category-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
}

.category-list li {
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  padding-left: 18px;
  position: relative;
}

.category-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 15px;
}

/* ==========================================================================
   Processo (stepper)
   ========================================================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.process-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-brand);
}

.process-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.process-description {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white-color);
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-section::before {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -100px;
}

.cta-section::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  right: -60px;
}

.cta-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white-color);
}

.cta-description {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
  font-size: 16px;
}

/* ==========================================================================
   Contatti
   ========================================================================== */
.contact-section {
  background-color: var(--white-color);
}

.contact-container {
  display: flex;
  gap: 60px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1.4;
  background: var(--light-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.contact-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--ink);
}

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

.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary-color);
  font-size: 16px;
}

.contact-text p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.contact-text p:first-child {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

/* Form */
.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
  min-width: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-control-file {
  padding: 10px 14px;
  background: var(--light-color);
  cursor: pointer;
}

.form-control-file::file-selector-button {
  padding: 8px 16px;
  margin-right: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  color: var(--white-color);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.form-control-file::file-selector-button:hover {
  background: var(--primary-dark);
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--white-color);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-tint);
}

.form-control.error {
  border-color: #e0245e;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check-input {
  margin-top: 4px;
  accent-color: var(--primary-color);
}

.form-check-label {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Honeypot anti-spam (nascosto agli utenti reali) */
.roiv-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Messaggi di successo/errore */
.contact-message {
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
}

.contact-message.success {
  background-color: #e6f6ec;
  color: #1e6b3c;
  border: 1px solid #c3ecd1;
}

.contact-message.error {
  background-color: #fbe7ec;
  color: #9c1c39;
  border: 1px solid #f5c6cb;
}

/* Mappa */
.map-section {
  background: var(--light-color);
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 30px;
}

.map-placeholder .icon-badge {
  margin: 0 auto 20px;
}

.map-note {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* FAQ accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.faq-question::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 13px;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--ink);
  color: var(--white-color);
  padding: 70px 0 30px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-widget-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white-color);
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 120px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

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

.footer-menu a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
}

.footer-menu a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-widget .contact-item {
  margin-bottom: 16px;
}

.footer-widget .contact-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-color);
}

.footer-widget .contact-text p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-widget .contact-text p:first-child {
  color: var(--white-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--white-color);
}

/* ==========================================================================
   Contenuti generici (blog / pagine standard)
   ========================================================================== */
.entry-header {
  text-align: center;
  padding: 60px 0 20px;
}

.entry-title {
  font-size: 34px;
  color: var(--ink);
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 60px;
  color: var(--ink-soft);
}

.entry-content p {
  margin-bottom: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .about-content,
  .contact-container {
    flex-direction: column;
  }

  .contact-form {
    width: 100%;
  }

  .hero-section {
    padding: 100px 0 80px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: relative;
  }

  .main-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 18px);
    right: -20px;
    width: 240px;
    background-color: var(--white-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 0 8px;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  }

  .main-menu.active {
    max-height: 400px;
    padding: 12px 8px;
  }

  .main-menu li {
    margin: 0;
  }

  .main-menu a {
    padding: 12px 14px;
  }

  .main-menu a::after {
    display: none;
  }

  .stats-strip {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 90px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .contact-form {
    padding: 26px;
  }
}
