/* ============================================
   DIGITAL MARKETING LECCE — Main Stylesheet
   Mediterranean Luxury meets Modern Tech
   ============================================ */

/* --- Google Fonts ---
   Loaded via cookie consent mechanism (see HTML files).
   The @import was removed for GDPR compliance. --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* Prevent iOS tap highlight flash */
a,
button,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: 1.2;
}

p {
  overflow-wrap: break-word;
}

/* --- Custom Properties --- */
:root {
  /* Colors — Authority & Action (Navy + Orange) */
  --primary: #0D1B2A;
  --primary-light: #162D4A;
  --accent: #FF6B35;
  --accent-dark: #E55A25;
  --terracotta: #FF6B35;
  --bg-light: #F7F8FA;
  --bg-dark: #0D1B2A;
  --text-dark: #1B2A3D;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --gradient-hero: linear-gradient(135deg, #0D1B2A 0%, #111f33 50%, #0D1B2A 100%);

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 20px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 8px 40px rgba(10, 37, 64, 0.15);
  --shadow-card: 0 4px 24px rgba(10, 37, 64, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(10, 37, 64, 0.16);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- Typography System --- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* Inner page heading consistency */
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
}

/* All section headings centered by default */
.section h2,
.section-alt h2,
.section--light h2,
.section--white h2,
.section--dark h2 {
  text-align: center;
  text-transform: none;
  margin-bottom: 16px;
}

.section > .container > p:first-of-type {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.section h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 12px;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding);
}

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

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

.section--dark {
  background-color: var(--bg-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header .section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
}

/* --- NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #0D1B2A;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition-base), background var(--transition-base);
  padding-top: env(safe-area-inset-top, 0px);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-hero);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Logo image */
.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

/* Desktop Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav__link.active {
  color: var(--white);
  background: var(--accent);
  font-weight: 600;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav__dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-toggle::after,
.nav__dropdown.open .nav__dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  border: 1px solid rgba(10, 37, 64, 0.08);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav__dropdown-menu a:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav CTA button in header */
.nav__cta {
  margin-left: 10px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

.hero--with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--with-bg::after {
  background: linear-gradient(to top, var(--bg-light), transparent);
}

/* Hero page with background image */
.hero-page--with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-hero--with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(13, 27, 42, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  color: var(--accent);
  display: inline;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 660px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* Animated background shapes */
.hero__shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--accent);
}

.hero__shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: float 15s ease-in-out infinite;
}

.hero__shape:nth-child(2) {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: -60px;
  animation: float 20s ease-in-out infinite reverse;
}

.hero__shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 15%;
  animation: float 12s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--dark:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--sm {
  font-size: 0.8rem;
  padding: 8px 16px;
}

.btn--lg {
  font-size: 1.05rem;
  padding: 18px 40px;
}

/* --- PHOTO PLACEHOLDER --- */
.photo-placeholder {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #e4e8ed, #cdd5de);
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: var(--shadow-card);
}

.photo-placeholder::before {
  content: '';
  display: block;
  padding-top: 66.67%; /* 3:2 aspect ratio */
}

.photo-placeholder__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  gap: 8px;
}

.photo-placeholder__icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.photo-placeholder__text {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.photo-placeholder--square::before {
  padding-top: 100%;
}

.photo-placeholder--wide::before {
  padding-top: 50%;
}

.photo-placeholder--portrait::before {
  padding-top: 130%;
}

.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CHI SIAMO / ABOUT --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__content h2 {
  margin-bottom: 20px;
  text-align: left;
}

.about__content .section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.about__content p {
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(10, 37, 64, 0.1);
}

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- SERVICE CARDS --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 37, 64, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--terracotta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(229, 90, 37, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--accent-dark);
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.service-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-card__link:hover {
  gap: 12px;
  color: var(--terracotta);
}

.service-card__link::after {
  content: '\2192';
  transition: transform var(--transition-fast);
}

/* --- PERCHE SCEGLIERCI / WHY US --- */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.why-us__item {
  text-align: center;
  padding: 32px 20px;
}

.why-us__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.2);
}

.why-us__item h4 {
  margin-bottom: 10px;
}

.why-us__item p {
  font-size: 0.9rem;
}

.why-us__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

/* --- TESTIMONIALS --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 37, 64, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-dark);
  line-height: 1.6;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.88rem;
}

.testimonial-card__role {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Stars */
.testimonial-card__stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* --- CTA SECTION --- */
.cta-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 107, 53, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-section .hero__buttons {
  justify-content: center;
}

/* --- FOOTER --- */
.footer {
  background: var(--white);
  color: var(--text-dark);
  padding: 80px 0 0;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer__brand .logo {
  color: var(--primary);
  margin-bottom: 16px;
}

.footer__brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer__social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer h4 {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 6px 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer__contact li a {
  color: var(--text-light);
}

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

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer__bottom-info span {
  white-space: nowrap;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer__bottom-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.footer__bottom-links a {
  font-size: 0.82rem;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

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

/* --- COMPATIBILITY: Alternative class names used by service pages --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition-base);
  padding: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-header .logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
}

.site-header .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.site-header .nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: var(--radius-xl);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-menu a:hover {
  color: var(--primary);
  background: rgba(10, 37, 64, 0.05);
}

.nav-menu a.active {
  color: var(--white);
  background: var(--primary);
  font-weight: 600;
}

/* Service page footer alternative class */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a,
.footer-col ul li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* btn-primary without double dash (used by service pages) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

@media (max-width: 768px) {
  .site-header .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 30px 40px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-base);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1000;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 12px 0;
  background: rgba(10, 37, 64, 0.03);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}

.breadcrumb + .hero {
  min-height: auto;
  padding: 60px 0 80px;
}

.breadcrumb + main .section:first-child {
  padding-top: 20px;
}

.breadcrumb-list,
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  color: var(--text-light);
  opacity: 0.5;
}

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

.breadcrumb-list a:hover {
  color: var(--primary-light);
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--text-dark);
  font-weight: 500;
}

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

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 37, 64, 0.07);
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.5;
}

.faq-item h3::before {
  content: "D";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item p {
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.75;
  padding-left: 38px;
}

/* --- PROCESS LIST --- */
.process-list {
  max-width: 800px;
  margin: 24px auto 0;
  counter-reset: process-counter;
  list-style: none;
  padding: 0;
}

.process-list li {
  counter-increment: process-counter;
  padding: 20px 20px 20px 70px;
  position: relative;
  margin-bottom: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.process-list li::before {
  content: counter(process-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- CONTENT WITH PHOTO --- */
.content-with-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 30px;
}

.content-with-photo.content-reverse {
  direction: rtl;
}

.content-with-photo.content-reverse > * {
  direction: ltr;
}

.content-with-photo .photo-placeholder {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #e4e8ed, #cdd5de);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

/* --- HERO PAGE (inner pages) --- */
.hero-page {
  min-height: auto;
  padding: 140px 0 80px;
}

.hero-page h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-page .hero-subtitle,
.hero-page p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.hero-page .btn-primary,
.hero-page .btn--primary {
  display: inline-block;
  margin-top: 10px;
}

/* --- Section Intro Text (centered under first paragraph) --- */
.section-intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-intro-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* --- SECTION ALT --- */
.section-alt {
  background-color: var(--white);
}

/* --- SECTION CTA --- */
.section-cta {
  background: var(--gradient-hero);
  text-align: center;
}

.section-cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.section-cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .content-with-photo {
    grid-template-columns: 1fr;
  }

  .content-with-photo.content-reverse {
    direction: ltr;
  }

  .hero-page {
    padding: 120px 0 60px;
  }

  .breadcrumb {
    padding: 10px 0;
  }
}

/* --- ANIMATIONS --- */
/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hero text animation */
.hero__animate {
  animation: heroFadeUp 1s ease forwards;
  opacity: 0;
}

.hero__animate:nth-child(1) { animation-delay: 0.2s; }
.hero__animate:nth-child(2) { animation-delay: 0.5s; }
.hero__animate:nth-child(3) { animation-delay: 0.8s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* --- RESPONSIVE DESIGN --- */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

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

  /* 6 cards: 2 columns on tablet, no special last-child needed */

  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Tablet small: 768px and below */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Mobile Navigation */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 30px 40px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
    transition: right var(--transition-base);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1001;
  }

  .nav.open {
    right: 0;
  }

  .nav__link {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.75);
  }

  .nav__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
  }

  .nav__link.active {
    color: var(--white);
    background: var(--accent);
  }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
    min-width: auto;
    background: transparent;
  }

  .nav__dropdown.open .nav__dropdown-menu {
    display: block;
    transform: none;
  }

  .nav__dropdown-menu a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
  }

  .nav__dropdown-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .nav__cta .btn {
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .logo-img {
    height: 60px;
  }

  /* Homepage hero - reduce height on tablet */
  .hero {
    min-height: 80vh;
    min-height: 80dvh;
  }

  /* About section */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    order: -1;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__grid .service-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* Why us */
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    text-align: center;
  }

  .footer__bottom-info {
    flex-direction: column;
    gap: 4px;
  }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
  :root {
    --section-padding: 50px 0;
    --container-padding: 0 16px;
  }

  .header .container {
    height: 68px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .logo-img {
    height: 50px;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
    padding-bottom: 0;
  }

  .hero .container {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .about__stats {
    gap: 24px;
  }

  .about__stat-number {
    font-size: 1.8rem;
  }

  .why-us__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .why-us__item {
    padding: 20px 12px;
  }

  .why-us__number {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn--lg {
    padding: 14px 30px;
    font-size: 0.95rem;
  }

  .service-card {
    padding: 30px 24px;
  }

  .hero-page {
    padding: 90px 0 50px;
  }

  .section-hero {
    padding: 90px 0 50px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }

  .hero__animate {
    opacity: 1;
    animation: none;
  }
}

/* Print styles */
@media print {
  .header,
  .hero__shapes,
  .hero__scroll,
  .hamburger,
  .nav-overlay {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
    background: var(--white);
  }

  .hero h1,
  .hero__subtitle {
    color: var(--text-dark);
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .section {
    padding: 20px 0;
  }
}

/* ============================================
   CROSS-PAGE COMPATIBILITY STYLES
   Covers all class variations used across pages
   ============================================ */

/* --- NAV: .menu-toggle (pubblicita-online, posizionamento-google) --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* --- NAV: .nav-list (pubblicita-online, posizionamento-google) --- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: var(--radius-xl);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-list a:hover {
  color: var(--primary);
  background: rgba(10, 37, 64, 0.05);
}

.nav-list a.active {
  color: var(--white);
  background: var(--primary);
  font-weight: 600;
}

/* --- HERO for inner pages without .hero-page class --- */
/* pubblicita-online and posizionamento-google use .hero directly */
.breadcrumb + .hero,
.breadcrumb + main .hero {
  min-height: auto;
  padding: 60px 0 80px;
}

/* --- .hero-subtitle (without BEM double underscore) --- */
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* --- .hero-cta wrapper --- */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* --- .btn-secondary (no double dash) --- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* --- .btn-large --- */
.btn-large {
  font-size: 1.05rem;
  padding: 18px 40px;
}

/* --- .content-grid (pubblicita-online, posizionamento-google) --- */
.content-grid {
  max-width: 900px;
}

.content-text p,
.content-text li {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-light);
}

.content-text ul {
  padding-left: 20px;
  margin-bottom: 1rem;
}

.content-text li {
  list-style: disc;
  margin-bottom: 8px;
}

.content-text h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--primary);
}

/* --- .services-grid (no BEM double underscore) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.services-grid .service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 37, 64, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.services-grid .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.services-grid .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.services-grid .service-card:hover::before {
  transform: scaleX(1);
}

.services-grid .service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.services-grid .service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- .section-intro --- */
.section-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 30px;
}

/* --- .photo-placeholder text-only (service pages) --- */
.photo-placeholder p,
.photo-placeholder span {
  padding: 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* --- CONTATTI PAGE --- */

/* .section-hero */
.section-hero {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  text-align: center;
}

.section-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.section-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* .section-contact */
.section-contact {
  padding: var(--section-padding);
}

/* .contact-grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* .contact-info */
.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: var(--primary);
}

.contact-info-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.contact-info-item:last-of-type {
  border-bottom: none;
}

.contact-info-item h3 {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.contact-info-item p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

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

.contact-info-item a:hover {
  color: var(--accent);
}

/* .contact-info-photo / .placeholder-image */
.contact-info-photo {
  margin-top: 30px;
}

.placeholder-image {
  background: linear-gradient(135deg, #e4e8ed, #cdd5de);
  border-radius: var(--radius-md);
  padding: 60px 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* .contact-form-wrapper */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 37, 64, 0.06);
}

.contact-form-wrapper h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.contact-form-wrapper > p {
  color: var(--text-light);
  margin-bottom: 30px;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(10, 37, 64, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.required {
  color: var(--accent);
}

/* Checkbox group */
.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-group-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--accent);
}

.form-group-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-light);
}

.form-group-checkbox label a {
  color: var(--primary);
  text-decoration: underline;
}

/* Submit button full width */
.contact-form button[type="submit"] {
  width: 100%;
}

/* .section-map */
.section-map {
  padding: var(--section-padding);
  background: var(--white);
}

/* Map section centered */
.section-alt h2,
.section-map h2 {
  text-align: center;
}

.section-alt > .container > p,
.section-map > .container > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px;
}

.map-placeholder {
  background: linear-gradient(135deg, #e4e8ed, #cdd5de);
  border-radius: var(--radius-md);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.map-placeholder-inner {
  text-align: center;
  color: var(--text-light);
}

.map-placeholder-inner span {
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.map-placeholder-inner p {
  font-size: 0.9rem;
}

/* .section-legal (privacy-policy) */
.section-legal {
  padding: var(--section-padding);
}

.section-legal h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 16px;
}

.section-legal h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.section-legal p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}

.section-legal ul,
.section-legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.section-legal ul li {
  list-style: disc;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 8px;
}

.section-legal ol li {
  list-style: decimal;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 8px;
}

.section-legal a {
  color: var(--primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

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

/* .section-text */
.section-text {
  padding: var(--section-padding);
}

/* .container-narrow */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ============================================
   RESPONSIVE: Cross-page compatibility
   ============================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 30px 40px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-base);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1000;
  }

  .nav-list.open {
    right: 0;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }

  .section-hero {
    padding: 120px 0 60px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn,
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 20px 16px;
  }

  .contact-info-item h3 {
    font-size: 0.85rem;
  }

  .section-hero {
    padding: 90px 0 50px;
  }

  .hero-cta .btn,
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    max-width: 100%;
  }

  .btn-large {
    font-size: 0.95rem;
    padding: 14px 28px;
  }
}

/* --- MOBILE STICKY CTA BAR --- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  gap: 10px;
}

.mobile-sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.mobile-sticky-cta a:active {
  opacity: 0.8;
}

.mobile-sticky-cta .sticky-whatsapp {
  background: #25D366;
  color: var(--white);
}

.mobile-sticky-cta .sticky-call {
  background: var(--accent);
  color: var(--white);
}

.mobile-sticky-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
  }

  /* Add bottom padding to footer so sticky bar doesn't cover content */
  .footer,
  .site-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- MAP EMBED --- */
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 40px;
}

.map-embed iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: 0;
}

@media (max-width: 768px) {
  .map-embed iframe {
    height: 300px;
  }
}

/* --- ZONE SERVITE (Cards with accent border) --- */
.zone-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.zone-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zone-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(10, 37, 64, 0.1);
}

.zone-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.zone-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 16px;
}

.zone-item ul li {
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-dark);
  position: relative;
  padding-left: 14px;
  text-align: left;
}

.zone-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 768px) {
  .zone-grid {
    grid-template-columns: 1fr;
  }
  .zone-item ul {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .zone-item ul {
    columns: 1;
  }
}

.section--light > .container > h2,
.section--light > .container > p {
  text-align: center;
}

/* --- PROCESS STEPS (Horizontal with icons + animation) --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

/* Connecting line between steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary), var(--accent), transparent);
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 30px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 37, 64, 0.06);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.12);
}

.process-step__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-step__icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.process-step__icon svg {
  width: 26px;
  height: 26px;
}

.process-step__number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  text-align: center;
}

.process-step p {
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* --- IMAGE LAYOUTS --- */
.img-full {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 30px 0;
  box-shadow: var(--shadow-card);
}

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

.img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.img-duo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.img-vertical {
  max-width: 400px;
  margin: 30px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

@media (max-width: 768px) {
  .img-duo {
    grid-template-columns: 1fr;
  }

  .img-duo img {
    height: 220px;
  }
}

/* ============================================
   CONTACT CARDS (contatti.html)
   ============================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 37, 64, 0.06);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.contact-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.contact-card__icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 6px;
}

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

.contact-card a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Larger map variant */
.map-embed--large iframe {
  height: 500px;
}

.section-map--prominent {
  padding: 60px 0 80px;
}

@media (max-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .contact-card {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 30px 24px;
  }

  .map-embed--large iframe {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: 24px 20px;
  }

  .contact-card__icon {
    width: 56px;
    height: 56px;
  }

  .contact-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .map-embed--large iframe {
    height: 280px;
  }
}

/* ============================================
   COOKIE CONSENT BANNER (GDPR)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.active {
  display: block;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 24px;
  min-height: 44px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-banner__btn--accept:hover {
  background: var(--accent-dark);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner__btn--reject:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.map-consent-placeholder {
  background: var(--bg-light);
  border: 2px dashed rgba(10, 37, 64, 0.15);
  border-radius: var(--radius-md);
  padding: 60px 24px;
  text-align: center;
  color: var(--text-light);
  font-family: var(--font-body);
}

.map-consent-placeholder p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.map-consent-placeholder button {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--white);
  transition: background 0.2s ease;
}

.map-consent-placeholder button:hover {
  background: var(--accent-dark);
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   PHOTO STACK (2 photos stacked)
   ============================================ */
.photo-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo-stack .photo-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.photo-stack .photo-placeholder::before {
  display: none;
}

.photo-stack .photo-placeholder img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ============================================
   INTRO CARDS (service page intros)
   ============================================ */
.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.intro-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 37, 64, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.intro-card__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.intro-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.intro-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.intro-card a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.intro-card a:hover {
  color: var(--accent-dark);
}

@media (max-width: 768px) {
  .intro-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.intro-cards--four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .intro-cards--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .intro-cards--four {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BLOG STYLES
   ============================================ */

/* --- Blog Hero (compact) --- */
.hero-blog {
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-blog::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(13, 27, 42, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-blog::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  pointer-events: none;
}

.hero-blog .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 50px;
}

.hero-blog h1 {
  color: var(--white);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-blog p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Blog Featured Article --- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 37, 64, 0.06);
  margin-bottom: 48px;
  transition: box-shadow 0.3s ease;
}

.blog-featured:hover {
  box-shadow: var(--shadow-lg);
}

.blog-featured__image {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.blog-featured__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-featured:hover .blog-featured__image img {
  transform: scale(1.04);
}

.blog-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.blog-featured__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.blog-featured__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.blog-featured__content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  margin-bottom: 16px;
  text-align: left;
}

.blog-featured__content h2 a {
  color: var(--primary);
  transition: color 0.3s ease;
}

.blog-featured__content h2 a:hover {
  color: var(--accent);
}

.blog-featured__content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.blog-featured__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-featured__meta svg {
  width: 14px;
  height: 14px;
}

.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-dark);
  transition: gap 0.3s ease;
}

.blog-featured__cta:hover {
  gap: 14px;
}

.blog-featured__cta::after {
  content: '\2192';
}

/* --- Blog Category Filters --- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.blog-filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  background: transparent;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-filters__btn:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.04);
}

.blog-filters__btn.active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.blog-filters__count {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(10, 37, 64, 0.08);
  color: var(--text-light);
  padding: 1px 7px;
  border-radius: 100px;
  line-height: 1.4;
}

.blog-filters__btn.active .blog-filters__count {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

/* --- Blog No Results --- */
.blog-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  display: none;
}

.blog-no-results p {
  font-size: 1rem;
}

/* --- Blog Index Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card[data-category] {
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity 0.3s ease;
}

.blog-card.hidden {
  display: none;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 37, 64, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--terracotta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  z-index: 1;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card__image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.blog-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.blog-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card__content h3 a {
  color: var(--primary);
  transition: color var(--transition-fast);
}

.blog-card__content h3 a:hover {
  color: var(--accent);
}

.blog-card__content p {
  font-size: 0.88rem;
  flex-grow: 1;
  margin-bottom: 16px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid rgba(10, 37, 64, 0.06);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.blog-card__link:hover {
  gap: 12px;
  color: var(--terracotta);
}

.blog-card__link::after {
  content: '\2192';
  transition: transform var(--transition-fast);
}

/* --- Blog Article Layout --- */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-article h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 48px;
  margin-bottom: 16px;
  text-align: left;
}

.blog-article h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin-top: 36px;
  margin-bottom: 12px;
}

.blog-article h2,
.blog-article h3 {
  scroll-margin-top: 100px;
}

.blog-article p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.blog-article a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 53, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.blog-article a:hover {
  text-decoration-color: var(--accent);
}

.blog-article ul,
.blog-article ol {
  padding-left: 24px;
  margin-bottom: 1.2rem;
}

.blog-article ul {
  list-style: disc;
}

.blog-article ol {
  list-style: decimal;
}

.blog-article li {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 6px;
}

.blog-article li strong {
  color: var(--text-dark);
}

.blog-article blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 30px 0;
  background: rgba(255, 107, 53, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-article blockquote p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Article meta info */
.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  font-size: 0.85rem;
  color: var(--text-light);
}

.blog-article__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Related articles — Horizontal slider */
.related-articles-wrapper {
  position: relative;
  overflow: hidden;
}

.related-articles {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  touch-action: pan-x;
}
.related-articles::-webkit-scrollbar { display: none; }

.related-articles .blog-card {
  min-width: 320px;
  max-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Frecce navigazione slider */
.related-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(10,37,64,0.1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 1.4rem;
  color: var(--primary);
}
.related-slider__btn:hover {
  box-shadow: var(--shadow-md);
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.related-slider__btn--prev { left: -22px; }
.related-slider__btn--next { right: -22px; }

/* Blog article FAQ styling */
.section--light .faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.section--light > .container > h2 + .faq-list {
  margin-top: 32px;
}

/* --- Blog Article Sidebar Layout --- */
.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.blog-article-layout .blog-article {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* TOC */
.blog-toc {
  background: transparent;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--accent);
}

.blog-toc h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 16px;
}

.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc li {
  margin-bottom: 0;
}

.blog-toc a {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-light);
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.blog-toc a:hover {
  color: var(--accent-dark);
}

.blog-toc a.active {
  color: var(--accent-dark);
  border-left-color: var(--accent);
  font-weight: 500;
}

.blog-toc a[aria-current="true"] {
  color: var(--accent-dark);
  border-left-color: var(--accent);
  font-weight: 500;
}

.blog-toc li.toc-h3 a {
  padding-left: 24px;
  font-size: 0.84rem;
}

/* Sidebar CTA box */
.blog-sidebar-cta {
  background: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.blog-sidebar-cta h4 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.blog-sidebar-cta p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.blog-sidebar-cta .btn {
  width: 100%;
}

/* Blog inline form (within article) */
.blog-inline-form {
  margin-top: 56px;
  padding: 36px 32px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-inline-form h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-top: 0;
  margin-bottom: 8px;
}

.blog-inline-form > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.blog-inline-form .contact-form__grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.blog-inline-form .contact-form__submit {
  margin-top: 20px;
}

/* Blog inline FAQ (within article) */
.blog-inline-faq {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

.blog-inline-faq h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-top: 0;
  margin-bottom: 28px;
  text-align: left;
}

.blog-inline-faq .faq-item {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(10, 37, 64, 0.06);
  transition: box-shadow var(--transition-fast);
}

.blog-inline-faq .faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.blog-inline-faq .faq-item:last-child {
  margin-bottom: 0;
}

.blog-inline-faq .faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.5;
}

.blog-inline-faq .faq-item p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Mobile TOC (generated by JS, visible only on mobile) */
.blog-toc-mobile {
  display: none;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.blog-toc-mobile__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.blog-toc-mobile__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.blog-toc-mobile__toggle.open svg {
  transform: rotate(180deg);
}

.blog-toc-mobile__list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.blog-toc-mobile__list.open {
  max-height: 600px;
  padding-bottom: 16px;
}

.blog-toc-mobile__list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc-mobile__list li {
  margin-bottom: 0;
}

.blog-toc-mobile__list a {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-light);
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.blog-toc-mobile__list a.active {
  color: var(--accent-dark);
  border-left-color: var(--accent);
  font-weight: 500;
}

.blog-toc-mobile__list li.toc-h3 a {
  padding-left: 24px;
  font-size: 0.84rem;
}

@media (max-width: 1024px) {
  .blog-article-layout {
    display: block;
  }

  .blog-article-layout .blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .blog-sidebar {
    display: none;
  }

  .blog-toc-mobile {
    display: block;
  }

  .blog-featured {
    grid-template-columns: 1fr 1fr;
  }

  .blog-featured__content {
    padding: 32px 28px;
  }

  .blog-featured__content h2 {
    font-size: 1.3rem;
  }

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

}

@media (max-width: 768px) {
  .related-slider__btn { display: none; }
  .related-articles .blog-card { min-width: 280px; }
  .hero-blog {
    min-height: 40vh;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured__image {
    min-height: 220px;
  }

  .blog-featured__content {
    padding: 28px 24px;
  }

  .blog-filters {
    gap: 6px;
  }

  .blog-filters__btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-article-layout .blog-article {
    padding: 0 16px;
  }

  .blog-article {
    padding: 0 16px;
  }

  .blog-article h2 {
    margin-top: 36px;
  }

  .blog-inline-form {
    padding: 28px 20px;
  }

  .blog-inline-form .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .blog-inline-faq .faq-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-blog {
    min-height: 35vh;
  }

  .blog-card__content {
    padding: 18px;
  }
}

/* --- Contact Split Layout (contatti page) --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  text-align: left;
}

.contact-split__info h2 {
  margin-bottom: 12px;
}

.contact-split__info > p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-split__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-split__item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contact-split__item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-split__item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2px;
  line-height: 1.6;
}

.contact-split__item a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.contact-split__form .contact-form-wrapper {
  max-width: none;
  text-align: left;
}

.contact-split__form .contact-form-header {
  text-align: left;
}

.contact-split__form .contact-form__grid {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Contact Form Section --- */
.section-contact-form {
  background: var(--white);
}

.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-form-header {
  margin-bottom: 40px;
}

.contact-form-header h2 {
  margin-bottom: 12px;
}

.contact-form-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-form__field label span {
  color: var(--accent);
}

.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(10, 37, 64, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus,
.contact-form__field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-form__privacy {
  margin-top: 20px;
  text-align: left;
}

.contact-form__privacy label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}

.contact-form__privacy input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.contact-form__privacy a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.contact-form__submit {
  margin-top: 28px;
  min-width: 200px;
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form__feedback {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.contact-form__feedback.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.contact-form__feedback.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

  .contact-form__submit {
    width: 100%;
  }
}

/* --- CHI SIAMO PAGE — Services Grid --- */
.about-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-service-card {
  background: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.06);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.about-service-card:last-child:nth-child(odd) {
  grid-column: 2 / 4;
}

.about-service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.about-service-card__icon svg {
  width: 100%;
  height: 100%;
}

.about-service-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-service-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- CHI SIAMO PAGE — Badges Grid --- */
.about-badges__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 12px;
}

.about-badge {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 37, 64, 0.06);
}

.about-badge__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.about-badge__icon svg {
  width: 100%;
  height: 100%;
}

.about-badge h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-badge p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .about-badges__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-services__grid {
    grid-template-columns: 1fr;
  }

  .about-service-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
