/* ============================================================
   HandMadePrint.art — Main Stylesheet
   Artisan printing · Carmignano di Brenta (PD)
   Migrated from WordPress to static HTML
   ============================================================ */

/* ----------------------------------------------------------
   0. Custom Properties
   ---------------------------------------------------------- */
:root {
  --brand: #5b4cdb;
  --brand-dark: #4a3cb8;
  --brand-soft: #eeebff;
  --brand-glow: rgba(91, 76, 219, .18);
  --accent: #c8956c;
  --accent-dark: #a87347;
  --accent-soft: #f5e8db;
  --ink: #1a1a2e;
  --text: #4a4a5a;
  --muted: #7e7e92;
  --bg: #fdfcfa;
  --bg-alt: #f5f2ed;
  --bg-dark: #1a1a2e;
  --line: #e6e2dc;
  --footer-bg: #141428;
  --white: #fff;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 12px rgba(26, 26, 46, .05);
  --shadow-md: 0 8px 30px rgba(26, 26, 46, .08);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, .12);
  --shadow-brand: 0 8px 30px rgba(91, 76, 219, .2);
  --shadow-accent: 0 8px 24px rgba(200, 149, 108, .2);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ----------------------------------------------------------
   1. Reset & Base
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

ul, ol {
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .25s var(--ease);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
}

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

p + p {
  margin-top: 1em;
}

::selection {
  background: var(--brand-soft);
  color: var(--ink);
}

.text-accent { color: var(--accent); }
.text-brand { color: var(--brand); }

/* ----------------------------------------------------------
   2. Container
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ----------------------------------------------------------
   3. Header & Navigation
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(253, 252, 250, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(253, 252, 250, .92);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

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

.nav-links .btn {
  padding: 10px 22px;
  font-size: .88rem;
}

.nav-links .btn::after {
  display: none;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ----------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .25s var(--ease),
              box-shadow .3s var(--ease);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

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

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

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

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--brand);
}

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

.btn-outline-dark:hover {
  background: var(--brand);
  color: var(--white);
}

.btn-green {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-green:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .3);
}

.btn-submit {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  width: 100%;
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-submit:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 6px 20px rgba(108, 99, 255, .3);
}

/* ----------------------------------------------------------
   5. Utility
   ---------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand);
  margin-bottom: 12px;
}

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

.section-intro {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 56px;
}

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

.section-intro p {
  color: var(--muted);
}

/* ----------------------------------------------------------
   6. Sections
   ---------------------------------------------------------- */
.section {
  padding: 100px 0;
}

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

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

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

.section-dark .eyebrow {
  color: rgba(255, 255, 255, .7);
}

/* ----------------------------------------------------------
   7. Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 26, 46, .7) 0%, rgba(91, 76, 219, .35) 50%, rgba(26, 26, 46, .65) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero .eyebrow {
  color: var(--accent);
  letter-spacing: .2em;
  font-size: .82rem;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .3);
}

.hero p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.15rem;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.hero-decor {
  position: absolute;
  z-index: 2;
  opacity: .12;
  pointer-events: none;
}

.hero-decor--dots {
  top: 15%;
  right: 8%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--accent) 2px, transparent 2px);
  background-size: 16px 16px;
}

.hero-decor--circle {
  bottom: 20%;
  left: 6%;
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* Typewriter animated word */
.hero-typewriter {
  color: var(--accent);
  position: relative;
}

.hero-typewriter::after {
  content: '|';
  animation: blink .7s step-end infinite;
  margin-left: 2px;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ----------------------------------------------------------
   8. CTA Banner
   ---------------------------------------------------------- */
.cta-banner {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(200, 149, 108, .2), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(91, 76, 219, .3), transparent 50%),
    linear-gradient(135deg, var(--ink), #2d2b55);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(200, 149, 108, .15);
  border-radius: 50%;
  pointer-events: none;
}

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

.cta-banner p {
  color: rgba(255, 255, 255, .88);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-banner .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.cta-banner .btn-outline:hover {
  background: var(--white);
  color: var(--brand);
}

/* ----------------------------------------------------------
   9. Feature Cards
   ---------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--brand);
  transition: transform .3s var(--ease-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-3deg);
}

.feature-icon img {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: .95rem;
}

/* ----------------------------------------------------------
   10. Offers Section
   ---------------------------------------------------------- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

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

/* Offer image slider */
.offer-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.offer-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.offer-slider img.active {
  opacity: 1;
}

.offer-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.offer-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.offer-slider-dots button.active {
  background: var(--white);
  transform: scale(1.3);
}

.offer-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 5;
}

.offer-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-card h3 {
  margin-bottom: 8px;
}

.offer-card p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 16px;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.offer-tags span {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand);
}

.offer-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  margin-top: auto;
}

.offer-price small {
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted);
}

.offer-card .btn-green {
  width: 100%;
}

/* ----------------------------------------------------------
   11. About Preview — Split Layout
   ---------------------------------------------------------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-preview.reverse {
  direction: rtl;
}

.about-preview.reverse > * {
  direction: ltr;
}

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

.about-image::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--accent);
  border-radius: calc(var(--radius-lg) + 4px);
  opacity: .25;
  pointer-events: none;
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

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

.about-text .eyebrow {
  margin-bottom: 12px;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-text .btn {
  margin-top: 12px;
}

/* ----------------------------------------------------------
   12. Services Preview — Split Layout
   ---------------------------------------------------------- */
.services-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.services-preview.reverse {
  direction: rtl;
}

.services-preview.reverse > * {
  direction: ltr;
}

.services-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.services-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-text .eyebrow {
  margin-bottom: 12px;
}

.services-text h2 {
  margin-bottom: 20px;
}

.services-text p {
  margin-bottom: 16px;
}

.services-text ul {
  margin-bottom: 20px;
}

.services-text ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.services-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.services-text .btn {
  margin-top: 12px;
}

/* ----------------------------------------------------------
   13. Blog Carousel
   ---------------------------------------------------------- */
.blog-slider {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.blog-slider::-webkit-scrollbar {
  height: 6px;
}

.blog-slider::-webkit-scrollbar-track {
  background: transparent;
}

.blog-slider::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.blog-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

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

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

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

.blog-card-body {
  padding: 24px;
}

.blog-card-category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.blog-card-body h3 a {
  color: var(--ink);
}

.blog-card-body h3 a:hover {
  color: var(--brand);
}

.blog-card-excerpt {
  font-size: .9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------
   14. Partners Section
   ---------------------------------------------------------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

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

.partner-card-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.partner-card-category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 8px;
}

.partner-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.partner-card p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.partner-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.partner-tag:hover {
  background: var(--brand);
  color: var(--white);
}

/* ----------------------------------------------------------
   15. Gallery Grid
   ---------------------------------------------------------- */
.gallery-grid {
  columns: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .4s var(--ease);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 76, 219, 0), rgba(200, 149, 108, 0));
  transition: background .4s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  background: linear-gradient(135deg, rgba(91, 76, 219, .3), rgba(200, 149, 108, .2));
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-size: 2rem;
}

/* ----------------------------------------------------------
   16. Lightbox
   ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s var(--ease);
}

.lightbox-close:hover {
  opacity: .7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .3);
}

.lightbox-prev {
  left: -64px;
}

.lightbox-next {
  right: -64px;
}

/* ----------------------------------------------------------
   17. Footer
   ---------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 76, 219, .12), transparent 60%),
    var(--footer-bg);
  color: rgba(255, 255, 255, .75);
  padding: 80px 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col p {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .65);
}

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

.footer-col ul li a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  transition: color .25s var(--ease);
}

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

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: 1rem;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.footer-social a:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

.footer-mini-gallery,
.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.footer-mini-gallery img,
.footer-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity .25s var(--ease);
}

.footer-mini-gallery img:hover,
.footer-gallery img:hover {
  opacity: .8;
}

.footer-col-logo {
  text-align: center;
}

.footer-credits {
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .6);
}

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

.footer-credit {
  color: rgba(255, 255, 255, .45);
}

.footer-credit a {
  color: var(--brand);
}

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

/* ----------------------------------------------------------
   18. WhatsApp Floating Button
   ---------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
  z-index: 900;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
  color: var(--white);
}

.whatsapp-float svg,
.whatsapp-float img {
  width: 28px;
  height: 28px;
}

/* ----------------------------------------------------------
   19. Contact Form
   ---------------------------------------------------------- */
.contact-form {
  max-width: 640px;
  margin-inline: auto;
}

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

.contact-form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, .12);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

#formStatus {
  text-align: center;
  margin-top: 16px;
  font-size: .92rem;
  font-weight: 500;
}

#formStatus.success {
  color: #25d366;
}

#formStatus.error {
  color: #e74c3c;
}

/* ----------------------------------------------------------
   19b. Contact Page Layout
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-grid .contact-form {
  max-width: none;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

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

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

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card-text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card-text p,
.contact-card-text a {
  font-size: .92rem;
  color: var(--muted);
}

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

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

.form-check input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.form-check label {
  display: inline;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  display: block;
}

/* ----------------------------------------------------------
   20. Breadcrumb
   ---------------------------------------------------------- */
.breadcrumb {
  padding: calc(var(--nav-h) + 32px) 0 24px;
  font-size: .85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.breadcrumb li a {
  color: var(--muted);
}

.breadcrumb li a:hover {
  color: var(--brand);
}

.breadcrumb li:last-child {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumb .separator {
  color: var(--line);
  font-size: .75rem;
}

/* ----------------------------------------------------------
   21. Services Page — Alternating Blocks
   ---------------------------------------------------------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.service-block:nth-child(even) {
  direction: rtl;
}

.service-block:nth-child(even) > * {
  direction: ltr;
}

.service-block + .service-block {
  border-top: 1px solid var(--line);
}

.service-block-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-block-text h2 {
  margin-bottom: 16px;
}

.service-block-text p {
  margin-bottom: 12px;
}

.service-block-text ul {
  margin: 16px 0 24px;
}

.service-block-text ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.service-block-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* ----------------------------------------------------------
   22. Gallery Page — Masonry
   ---------------------------------------------------------- */
.gallery-page-grid {
  columns: 3;
  column-gap: 20px;
  padding: 40px 0;
}

.gallery-page-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

/* Gallery page filter tabs */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.gallery-filters button {
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.gallery-filters button:hover,
.gallery-filters button.active {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

/* ----------------------------------------------------------
   23. Blog Page — Listing Grid
   ---------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-grid .blog-card {
  flex: none;
}

/* Blog single */
.blog-single {
  max-width: 780px;
  margin-inline: auto;
  padding: 40px 0 80px;
}

.blog-single h1 {
  margin-bottom: 16px;
}

.blog-single .blog-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 32px;
}

.blog-single img {
  border-radius: var(--radius);
  margin: 32px 0;
}

.blog-single p {
  margin-bottom: 1.4em;
}

.blog-single h2 {
  margin-top: 2em;
  margin-bottom: .6em;
}

.blog-single h3 {
  margin-top: 1.6em;
  margin-bottom: .5em;
}

.blog-single ul,
.blog-single ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

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

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

.blog-single li {
  margin-bottom: .4em;
}

.blog-single blockquote {
  border-left: 4px solid var(--brand);
  padding: 16px 24px;
  margin: 1.4em 0;
  background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
}

/* ----------------------------------------------------------
   24. Privacy / Cookie — Legal Content
   ---------------------------------------------------------- */
.legal-content {
  max-width: 780px;
  margin-inline: auto;
  padding: 40px 0 80px;
}

.legal-content h1 {
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  margin-bottom: .6em;
}

.legal-content h3 {
  margin-top: 1.4em;
  margin-bottom: .4em;
}

.legal-content p {
  margin-bottom: 1em;
}

.legal-content ul,
.legal-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: .4em;
}

.legal-content a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
}

/* ----------------------------------------------------------
   25. 404 Page
   ---------------------------------------------------------- */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.page-404 h1 {
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 h2 {
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 32px;
}

/* ----------------------------------------------------------
   26. Reveal Animations
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

.reveal.delay-1, .reveal-left.delay-1, .reveal-right.delay-1, .reveal-scale.delay-1 { transition-delay: .1s; }
.reveal.delay-2, .reveal-left.delay-2, .reveal-right.delay-2, .reveal-scale.delay-2 { transition-delay: .2s; }
.reveal.delay-3, .reveal-left.delay-3, .reveal-right.delay-3, .reveal-scale.delay-3 { transition-delay: .3s; }
.reveal.delay-4, .reveal-left.delay-4, .reveal-right.delay-4, .reveal-scale.delay-4 { transition-delay: .4s; }
.reveal.delay-5 { transition-delay: .5s; }
.reveal.delay-6 { transition-delay: .6s; }

/* ----------------------------------------------------------
   27. Cookie Banner (if present)
   ---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .1);
  z-index: 9990;
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner p {
  font-size: .88rem;
  color: var(--text);
  flex: 1;
}

.cookie-banner p a {
  text-decoration: underline;
}

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

.cookie-banner .btn {
  padding: 10px 20px;
  font-size: .82rem;
}

/* ----------------------------------------------------------
   28. Page Header (inner pages)
   ---------------------------------------------------------- */
.page-header {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  text-align: center;
  background: var(--bg-alt);
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ----------------------------------------------------------
   29. Page Hero (inner pages — reduced)
   ---------------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(200, 149, 108, .1), transparent 50%),
    radial-gradient(ellipse at 70% 0%, rgba(91, 76, 219, .08), transparent 50%),
    var(--bg-alt);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.page-hero .breadcrumb {
  padding: 0 0 20px;
}

/* ----------------------------------------------------------
   30. Text Accent (uses accent warm color)
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   31. Feature Points (chi-siamo)
   ---------------------------------------------------------- */
.feature-points {
  display: flex;
  gap: 28px;
  margin-top: 32px;
}

.feature-point {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-point-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}

.feature-point-icon svg {
  width: 20px;
  height: 20px;
}

.feature-point span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

/* ----------------------------------------------------------
   32. Two Column Text
   ---------------------------------------------------------- */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.two-col-text p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

/* ----------------------------------------------------------
   33. Stats / Counter Section
   ---------------------------------------------------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 48px 24px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, .1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ----------------------------------------------------------
   34. Process / How It Works
   ---------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: .3;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.process-step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
  position: relative;
  z-index: 2;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease-bounce);
}

.process-step:hover .process-step-number {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: .9rem;
  color: var(--muted);
}

/* ----------------------------------------------------------
   35. FAQ Accordion
   ---------------------------------------------------------- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color .25s var(--ease);
}

.faq-question:hover {
  color: var(--brand);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}

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

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

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

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text);
  line-height: 1.8;
}

/* ----------------------------------------------------------
   36. Diagonal section separator
   ---------------------------------------------------------- */
.section-angle {
  position: relative;
}

.section-angle::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ----------------------------------------------------------
   37. Decorative line
   ---------------------------------------------------------- */
.deco-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 3px;
  margin: 20px auto 0;
}

.deco-line--left {
  margin-left: 0;
}

/* ----------------------------------------------------------
   38. Offer card improvements
   ---------------------------------------------------------- */
.offer-card {
  border: 1px solid var(--line);
}

.offer-card:hover {
  border-color: transparent;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ----------------------------------------------------------
   Max 1024px — Tablet Landscape / Small Desktop
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .section {
    padding: 72px 0;
  }

  .features-grid,
  .offers-grid,
  .partners-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about-preview,
  .services-preview,
  .service-block {
    gap: 40px;
  }

  .gallery-grid,
  .gallery-page-grid {
    columns: 2;
  }

  .footer-grid {
    gap: 32px;
  }

  .lightbox-prev { left: -48px; }
  .lightbox-next { right: -48px; }

  .cta-banner {
    padding: 48px 32px;
  }

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

  .stat-item:nth-child(2)::before { display: block; }
  .stat-item:nth-child(3)::before { display: none; }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-grid::before { display: none; }
}

/* ----------------------------------------------------------
   Max 768px — Tablet Portrait
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  /* Show hamburger, hide desktop nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--nav-h) + 24px) 32px 32px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 1005;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .btn {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Stacked layouts */
  .contact-grid,
  .about-preview,
  .services-preview,
  .service-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-preview.reverse,
  .services-preview.reverse,
  .service-block:nth-child(even) {
    direction: ltr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero p {
    font-size: 1.02rem;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero-decor { display: none; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius);
  }

  .stat-item { padding: 32px 20px; }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px;
    margin-inline: auto;
  }

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

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-content img {
    max-width: 95vw;
  }

  .cta-banner {
    padding: 40px 24px;
    border-radius: var(--radius);
  }

  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .page-header {
    padding: calc(var(--nav-h) + 40px) 0 40px;
  }

  .page-hero {
    padding: calc(var(--nav-h) + 36px) 0 40px;
  }

  .feature-points {
    flex-direction: column;
    gap: 16px;
  }

  .two-col-text {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ----------------------------------------------------------
   Max 640px — Small Tablet / Large Phone
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .features-grid,
  .offers-grid,
  .partners-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .gallery-page-grid {
    columns: 2;
    column-gap: 12px;
  }

  .gallery-item {
    margin-bottom: 12px;
  }

  .blog-card {
    flex: 0 0 280px;
  }

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

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .breadcrumb {
    padding: calc(var(--nav-h) + 20px) 0 16px;
  }

  .service-block {
    padding: 48px 0;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg,
  .whatsapp-float img {
    width: 24px;
    height: 24px;
  }
}

/* ----------------------------------------------------------
   Max 480px — Phone
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }

  .feature-card {
    padding: 28px 20px;
  }

  .offer-body {
    padding: 20px 16px;
  }

  .offer-price {
    font-size: 1.6rem;
  }

  .cta-banner {
    padding: 32px 20px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
  }

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

  .nav-brand img {
    height: 36px;
  }

  .gallery-grid,
  .gallery-page-grid {
    columns: 1;
  }

  .footer-mini-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

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

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .hero-typewriter::after {
    animation: none;
  }
}

/* ----------------------------------------------------------
   Missing utility classes
   ---------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.offer-price-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 4px;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

.blog-category {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  font-weight: 600;
}

.partner-category {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem);
  color: var(--brand);
  line-height: 1;
}

.error-page h2 {
  font-family: var(--font-display);
  margin: 16px 0;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 32px;
}

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

/* ============================================================
   ============================================================
   EDITORIAL LAYER — ritmo asimmetrico, griglia magazine, bento
   Sovrascrive e integra il layer base. Ultimo per specificità.
   ============================================================
   ============================================================ */

:root {
  --grid: 12;
  --gap: clamp(16px, 2vw, 28px);
  --bleed: clamp(20px, 5vw, 64px);
  --rule: rgba(26, 26, 46, .12);
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 32px;
  --sp-lg: 64px;
  --sp-xl: clamp(72px, 10vw, 140px);
}

/* ----------------------------------------------------------
   E1. Tipografia editoriale — più audace, tracking negativo
   ---------------------------------------------------------- */
h1 {
  font-size: clamp(2.9rem, 7.5vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.035em;
  font-weight: 700;
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 600;
}

h3 {
  letter-spacing: -.015em;
  line-height: 1.2;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 700;
  color: var(--ink);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: var(--text);
}

/* Numeri tabulari per prezzi e statistiche */
.stat-number,
.offer-price,
.ghost-num,
.sec-num {
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------
   E2. Header di sezione editoriale — allineato a sinistra,
       numerato, con filetto. Sostituisce eyebrow+h2 centrati.
   ---------------------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, .8fr);
  align-items: end;
  gap: var(--sp-md);
  padding-bottom: var(--sp-md);
  margin-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.sec-num {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
  padding-bottom: .5em;
  white-space: nowrap;
}

.sec-head .eyebrow {
  margin-bottom: 10px;
}

.sec-head h2 {
  margin: 0;
  max-width: 22ch;
}

.sec-head-aside {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.65;
  padding-bottom: .3em;
  max-width: 46ch;
}

.section-dark .sec-head,
.section-dark .sec-head-aside {
  border-color: rgba(255, 255, 255, .14);
}

.section-dark .sec-head-aside {
  color: rgba(255, 255, 255, .68);
}

/* Variante centrata, da usare con parsimonia (max 1 per pagina) */
.sec-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.sec-head--center h2 { max-width: 30ch; }
.sec-head--center .sec-head-aside { text-align: center; max-width: 56ch; }

/* ----------------------------------------------------------
   E3. Hero editoriale asimmetrico — testo 7col + collage 5col
   ---------------------------------------------------------- */
.hero--split {
  min-height: auto;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(60px, 8vw, 120px);
  background: none;
  background-attachment: initial;
  text-align: left;
  align-items: stretch;
  display: block;
  overflow: visible;
}

.hero--split::before,
.hero--split::after {
  display: none;
}

.hero--split .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
}

.hero-copy {
  grid-column: 1 / span 7;
  position: relative;
  z-index: 3;
}

.hero-copy h1 {
  color: var(--ink);
  text-shadow: none;
  margin-bottom: 22px;
}

.hero-copy .lead {
  color: var(--text);
  max-width: 46ch;
  margin: 0 0 var(--sp-md);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero--split .hero-ctas {
  justify-content: flex-start;
  margin-bottom: var(--sp-lg);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 24px;
}

.hero-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Prove sociali inline sotto le CTA */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--rule);
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta b {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}

.hero-meta span {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* Collage immagini sovrapposte */
.hero-figures {
  grid-column: 8 / span 5;
  position: relative;
  aspect-ratio: 4 / 5;
}

.hero-fig {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}

.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.hero-fig:hover img {
  transform: scale(1.05);
}

.hero-fig--a {
  inset: 0 18% 22% 0;
  z-index: 2;
}

.hero-fig--b {
  width: 52%;
  aspect-ratio: 1;
  right: 0;
  top: 14%;
  z-index: 3;
  border: 6px solid var(--bg);
}

.hero-fig--c {
  width: 46%;
  aspect-ratio: 4 / 3;
  left: 8%;
  bottom: 0;
  z-index: 4;
  border: 6px solid var(--bg);
}

/* Cerchio decorativo di fondo dietro al collage */
.hero-figures::before {
  content: '';
  position: absolute;
  inset: -12% -8% 8% 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--brand-soft), transparent 70%);
  z-index: 1;
}

/* ----------------------------------------------------------
   E4. Marquee — striscia infinita di tecniche/keyword
   ---------------------------------------------------------- */
.marquee {
  --marquee-duration: 32s;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding: 18px 0;
  background: var(--bg-alt);
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee var(--marquee-duration) linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  flex-shrink: 0;
}

.marquee-group span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.015em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.marquee-group span::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Variante scura per fondi dark */
.marquee--dark {
  background: var(--bg-dark);
  border-color: rgba(255, 255, 255, .12);
}

.marquee--dark .marquee-group span {
  color: var(--white);
}

/* ----------------------------------------------------------
   E5. Manifesto — dichiarazione editoriale oversize
   ---------------------------------------------------------- */
.manifesto {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.manifesto-label {
  grid-column: 1 / span 3;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  padding-top: .8em;
}

.manifesto-body {
  grid-column: 4 / span 9;
}

.manifesto-body p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 500;
}

.manifesto-body p + p {
  margin-top: 1.1em;
}

.manifesto-body em {
  font-style: italic;
  color: var(--accent-dark);
}

.manifesto-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--muted);
}

.manifesto-sign b {
  color: var(--ink);
  font-weight: 600;
}

/* ----------------------------------------------------------
   E6. Bento grid — celle di dimensioni variabili
   ---------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--gap);
}

.bento-cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

.bento-cell:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Span helper */
.bento-cell--wide  { grid-column: span 2; }
.bento-cell--tall  { grid-row: span 2; }
.bento-cell--big   { grid-column: span 2; grid-row: span 2; }

.bento-cell h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  margin: 0;
}

.bento-cell p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
  margin: 0;
  max-width: 38ch;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  display: grid;
  place-items: center;
  color: var(--brand);
  margin-bottom: auto;
  transition: transform .4s var(--ease-bounce);
}

.bento-cell:hover .bento-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Cella immagine a pieno sanguinamento */
.bento-cell--img {
  padding: 0;
  border: 0;
}

.bento-cell--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.bento-cell--img:hover img {
  transform: scale(1.06);
}

.bento-cell--img figcaption {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3vw, 34px);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.015em;
  margin-top: auto;
  background: linear-gradient(to top, rgba(20, 20, 40, .85), transparent);
}

/* Cella accento con gradiente brand */
.bento-cell--accent {
  background:
    radial-gradient(ellipse at 15% 85%, rgba(200, 149, 108, .28), transparent 55%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 0;
  color: var(--white);
}

.bento-cell--accent h3,
.bento-cell--accent .bento-stat { color: var(--white); }
.bento-cell--accent p { color: rgba(255, 255, 255, .82); }

.bento-cell--accent .bento-icon {
  background: rgba(255, 255, 255, .16);
  color: var(--white);
}

.bento-stat {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--ink);
}

/* ----------------------------------------------------------
   E7. Sticky split — colonna sinistra fissa, destra che scorre
   ---------------------------------------------------------- */
.sticky-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.sticky-col {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}

.sticky-col h2 { margin-bottom: 20px; }

.sticky-col p {
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: var(--sp-md);
}

/* Passi numerati verticali con numeri fantasma */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--rule); }

.ghost-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  transition: color .45s var(--ease), -webkit-text-stroke-color .45s var(--ease);
}

.step:hover .ghost-num {
  color: var(--accent);
}

.step h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7;
  margin: 0;
  max-width: 52ch;
}

/* ----------------------------------------------------------
   E8. FAQ split — intestazione a sinistra, accordion a destra
   ---------------------------------------------------------- */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.faq-split .faq-list {
  max-width: none;
  margin: 0;
}

.faq-split .faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-question {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  padding: 26px 0;
  align-items: flex-start;
}

.faq-answer p {
  max-width: 62ch;
}

/* ----------------------------------------------------------
   E9. Sezione full-bleed (esce dal container)
   ---------------------------------------------------------- */
.bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: none;
}

/* Striscia galleria orizzontale scorrevole */
.gallery-strip {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding: 4px var(--bleed) var(--sp-sm);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-strip .gallery-item {
  flex: 0 0 clamp(240px, 26vw, 380px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
}

.gallery-strip .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------
   E10. Ritmo verticale — sezioni non tutte uguali
   ---------------------------------------------------------- */
.section { padding: var(--sp-xl) 0; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* CTA a pieno sanguinamento, non più una card dentro al container */
.cta-bleed {
  background:
    radial-gradient(ellipse at 18% 85%, rgba(200, 149, 108, .22), transparent 52%),
    radial-gradient(ellipse at 82% 15%, rgba(91, 76, 219, .34), transparent 52%),
    linear-gradient(135deg, var(--ink), #2d2b55);
  color: var(--white);
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
}

.cta-bleed::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -8%;
  width: min(520px, 46vw);
  aspect-ratio: 1;
  border: 1px solid rgba(200, 149, 108, .18);
  border-radius: 50%;
  pointer-events: none;
}

.cta-bleed-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-bleed h2 {
  color: var(--white);
  margin: 0 0 14px;
}

.cta-bleed p {
  color: rgba(255, 255, 255, .8);
  margin: 0;
  max-width: 48ch;
}

.cta-bleed-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.cta-bleed-actions .btn { justify-content: center; }

.cta-bleed .btn-outline {
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
}

.cta-bleed .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* ----------------------------------------------------------
   E11. Header pagine interne — editoriale, non centrato
   ---------------------------------------------------------- */
.page-header {
  text-align: left;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 88% 0%, var(--brand-soft), transparent 58%),
    var(--bg);
}

.page-header .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.page-header h1 {
  margin: 14px 0 0;
  max-width: 20ch;
}

.page-header > .container > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 44ch;
  margin: 0 0 .4em;
}

.page-header .breadcrumb { margin: 0; }

/* ----------------------------------------------------------
   E12. Blocchi servizio — split asimmetrico 7/5, non 50/50
   ---------------------------------------------------------- */
.service-block {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--rule);
}

.service-block:nth-child(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.service-block:nth-child(even) .service-block-image { order: 2; }
.service-block:nth-child(even) .service-block-text  { order: 1; }

.service-block-image img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.service-block-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

/* ----------------------------------------------------------
   E13. About split asimmetrico
   ---------------------------------------------------------- */
.about-preview {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.about-preview-img img,
.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
}

/* ----------------------------------------------------------
   E14. Responsive del layer editoriale
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .sec-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .sec-head-aside {
    grid-column: 2;
    padding-bottom: 0;
  }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell--big,
  .bento-cell--wide { grid-column: span 2; }
  .bento-cell--tall { grid-row: span 1; }
  .manifesto-label { grid-column: 1 / -1; padding-top: 0; }
  .manifesto-body { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero--split .container { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-figures {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 11;
    margin-top: var(--sp-md);
  }
  .sticky-split,
  .faq-split,
  .cta-bleed-inner,
  .page-header .container {
    grid-template-columns: 1fr;
  }
  .sticky-col { position: static; }
  .cta-bleed-actions { flex-direction: row; flex-wrap: wrap; }
  .service-block,
  .service-block:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .service-block:nth-child(even) .service-block-image,
  .service-block:nth-child(even) .service-block-text { order: initial; }
  .about-preview { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }
  .sec-num { padding-bottom: 0; }
  .sec-head-aside { grid-column: 1; }
  .bento { grid-template-columns: 1fr; }
  .bento-cell--big,
  .bento-cell--wide,
  .bento-cell--tall { grid-column: span 1; grid-row: span 1; }
  .bento-cell--img { min-height: 260px; }
  .hero-meta { gap: var(--sp-sm) var(--sp-md); }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .ghost-num { -webkit-text-stroke-width: 1px; }
  .hero-fig--b, .hero-fig--c { border-width: 4px; }
}

/* ----------------------------------------------------------
   E15. Reduced motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-fig img,
  .bento-cell--img img,
  .bento-icon {
    transition: none;
  }
  .sticky-col { position: static; }
}

/* ----------------------------------------------------------
   E16. Logo row partner — striscia sobria, non card ripetute
   ---------------------------------------------------------- */
.logo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.logo-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 2vw, 28px);
  position: relative;
  transition: background .4s var(--ease);
}

.logo-item + .logo-item::before {
  content: '';
  position: absolute;
  left: calc(var(--gap) / -2);
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--rule);
}

.logo-item:hover { background: var(--bg-alt); }

.logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
  margin-bottom: 6px;
}

.logo-item:hover img { filter: grayscale(0); opacity: 1; }

.logo-item strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}

.logo-item span {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.55;
}

.logo-item a {
  font-size: .84rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .logo-row { grid-template-columns: 1fr; }
  .logo-item + .logo-item::before {
    left: 0;
    top: 0;
    height: 1px;
    width: 100%;
  }
}

/* ----------------------------------------------------------
   E17. Wrapper page-header (breadcrumb + h1 in colonna 1)
   ---------------------------------------------------------- */
.page-header-main { min-width: 0; }

.page-header-main h1 {
  margin: 14px 0 0;
  max-width: 20ch;
}

.page-hero {
  text-align: left;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 88% 0%, var(--brand-soft), transparent 58%),
    var(--bg);
}

@media (max-width: 900px) {
  .page-header-main h1 { max-width: none; }
}

/* ----------------------------------------------------------
   E18. Fix contrasto hero chiaro
   Il layer base colorava di bianco testo e bottoni perché
   l'hero era un'immagine scura. Ora l'hero è chiaro.
   ---------------------------------------------------------- */
.hero--split .hero-kicker {
  color: var(--accent-dark);
}

.hero--split .lead,
.hero--split p {
  color: var(--text);
}

.hero--split .hero-meta b { color: var(--ink); }
.hero--split .hero-meta span { color: var(--muted); }

.hero--split .btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.hero--split .btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ----------------------------------------------------------
   E19. FAQ — cap generoso per non tagliare le risposte lunghe.
   Il valore serve solo come inviluppo della transizione:
   l'altezza reale resta quella del contenuto.
   ---------------------------------------------------------- */
.faq-item.is-open .faq-answer { max-height: 560px; }

@media (max-width: 640px) {
  .faq-item.is-open .faq-answer { max-height: 900px; }
}

/* ----------------------------------------------------------
   E20. btn-outline — default per fondo CHIARO
   Il layer base lo definiva bianco perché tutte le sezioni in
   cui compariva erano scure. Con l'hero e le sezioni chiare
   diventava invisibile. I contesti scuri (.cta-banner,
   .cta-bleed) hanno override propri a specificità maggiore.
   ---------------------------------------------------------- */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Variante esplicita per fondi scuri, se servisse fuori dai CTA */
.btn-outline--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}

.btn-outline--light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

/* ----------------------------------------------------------
   E21. sec-head — il numero va in alto, allineato all'eyebrow,
   non in fondo alla colonna (h2 su due righe lo scollegava)
   ---------------------------------------------------------- */
.sec-head { align-items: start; }

.sec-num {
  align-self: start;
  padding-top: 3px;
  padding-bottom: 0;
}

.sec-head-aside { align-self: end; }

/* ----------------------------------------------------------
   E22. Logo footer — era un 500x500 schiacciato a 44px,
   quindi illeggibile. Dimensione leggibile, height auto,
   e schiarita per reggere sul fondo scuro (manca la
   variante chiara del file: da procurare al cliente).
   ---------------------------------------------------------- */
.footer-logo {
  height: auto;
  width: clamp(120px, 14vw, 168px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}

/* ----------------------------------------------------------
   E23. Logo footer — variante chiara, proporzioni reali
   Il PNG originale era 500x500 con ~65% di padding
   trasparente: il logo effettivo e' 500x176 (wordmark largo).
   Niente aspect-ratio forzato, altezza automatica.
   ---------------------------------------------------------- */
.footer-logo {
  width: clamp(180px, 20vw, 240px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}

/* ----------------------------------------------------------
   E24. Kicker hero su schermi stretti — sta su una riga
   ---------------------------------------------------------- */
@media (max-width: 560px) {
  .hero-kicker {
    font-size: .68rem;
    letter-spacing: .1em;
    padding: 7px 13px;
    align-items: flex-start;
  }
  .hero-kicker::before { margin-top: .42em; }
}

/* ----------------------------------------------------------
   E25. Page header — densita' verticale piu' equilibrata
   ---------------------------------------------------------- */
.page-header,
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(32px, 4.5vw, 68px));
  padding-bottom: clamp(32px, 4.5vw, 60px);
}

/* ============================================================
   E26. OFFER CARD — ridisegno completo
   Problemi del layer base:
   - .offer-card p (0,1,1) batteva .offer-price (0,1,0): il
     prezzo ereditava .92rem invece di 2rem
   - .offer-body non esisteva nell'HTML: testo a filo del bordo
   - i dots erano stilati come .offer-slider-dots ma l'HTML usa
     .offer-dots / .dot: mai stilati
   Qui il componente e' riscritto per intero, con selettori
   allineati al markup e prezzo come elemento dominante.
   ============================================================ */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ---------- media ---------- */
.offer-media {
  position: relative;
  background: var(--bg-alt);
}

.offer-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.offer-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}

.offer-slider img.active { opacity: 1; }
.offer-card:hover .offer-slider img.active { transform: scale(1.04); }

/* badge: chip smerigliato, non pastiglia viola piena */
.offer-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: rgba(253, 252, 250, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(26, 26, 46, .08);
  box-shadow: 0 2px 10px rgba(26, 26, 46, .08);
}

/* dots allineati al markup reale (.offer-dots > .dot) */
.offer-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 100px;
  background: rgba(20, 20, 40, .34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.offer-dots .dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.offer-dots .dot:hover { background: rgba(255, 255, 255, .8); }

.offer-dots .dot.active {
  background: var(--white);
  transform: scale(1.35);
}

/* area cliccabile >=44px senza ingrandire il pallino */
.offer-dots .dot::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  margin: 3.5px 0 0 3.5px;
}

/* ---------- corpo ---------- */
.offer-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(20px, 2.4vw, 28px);
  gap: 10px;
}

.offer-card .offer-title {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

.offer-card .offer-desc {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.offer-tags li {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
}

/* ---------- piede: prezzo + CTA, sempre allineati fra le card ---------- */
.offer-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* specificita' 0,2,0: batte .offer-card p (0,1,1) */
.offer-card .offer-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.offer-price-pre {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  align-self: center;
}

.offer-price-value { color: var(--ink); }

.offer-price-unit {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* CTA WhatsApp: verde autentico del canale, con glifo, non slab generico */
.offer-cta {
  --wa: #1faa54;
  --wa-dark: #178f45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 100px;
  background: var(--wa);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid var(--wa);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.offer-cta:hover {
  background: var(--wa-dark);
  border-color: var(--wa-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.offer-cta:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.offer-cta-icon { flex-shrink: 0; }

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

@media (max-width: 640px) {
  .offers-grid { grid-template-columns: 1fr; }
  .offer-card .offer-price { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card:hover { transform: none; }
  .offer-card:hover .offer-slider img.active { transform: none; }
  .offer-cta:hover { transform: none; }
}

/* ----------------------------------------------------------
   E27. Offer dots — pill smerigliato CHIARO come il badge
   (quello scuro sporcava le foto prodotto, quasi tutte chiare)
   e tap target corretto: serve position:relative sul .dot,
   altrimenti l'::after si ancora al contenitore.
   ---------------------------------------------------------- */
.offer-dots {
  gap: 8px;
  padding: 7px 11px;
  background: rgba(253, 252, 250, .9);
  border: 1px solid rgba(26, 26, 46, .07);
  box-shadow: 0 2px 10px rgba(26, 26, 46, .1);
}

.offer-dots .dot {
  position: relative;
  background: rgba(26, 26, 46, .26);
}

.offer-dots .dot:hover { background: rgba(26, 26, 46, .5); }

.offer-dots .dot.active {
  background: var(--ink);
  transform: scale(1.3);
}

/* area tattile 30x30 centrata sul pallino, senza ingrandirlo */
.offer-dots .dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  margin: 0;
  border-radius: 50%;
}

.offer-dots .dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ============================================================
   E28. TIPOGRAFIA — Bricolage Grotesque + Inter
   Sostituisce Playfair Display (serif classico/luxury).
   Bricolage e' un grotesque display variabile con asse opsz:
   piu' largo e geometrico di Playfair, quindi servono peso
   maggiore, tracking piu' stretto e interlinea piu' compatta.
   NON ha corsivo: l'italic sul display va evitato (verrebbe
   sintetizzato come obliquo).
   ============================================================ */
:root {
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

h1, h2, h3, h4, h5, h6,
.display-xl, .bento-stat, .stat-number, .offer-card .offer-price,
.ghost-num, .hero-meta b {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-synthesis: none;            /* niente corsivo/grassetto finti */
}

h1 {
  font-size: clamp(2.8rem, 7.4vw, 6rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.032em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.026em;
}

h3 {
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.018em;
}

.display-xl {
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .88;
}

/* Il manifesto non usa piu' il corsivo (Bricolage non ce l'ha) */
.manifesto-body p {
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.22;
}

.manifesto-body em {
  font-style: normal;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Numeri e prezzi: peso alto, tracking stretto */
.offer-card .offer-price,
.bento-stat,
.stat-number,
.hero-meta b {
  font-weight: 800;
  letter-spacing: -.038em;
}

.ghost-num { font-weight: 800; letter-spacing: -.045em; }

/* Etichette tecniche in monospace: numeri di sezione, unita' */
.sec-num,
.offer-price-unit,
.offer-price-pre,
.manifesto-label {
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

.sec-num { font-size: .74rem; font-weight: 500; }

/* Titoli card: grotesque, non piu' serif */
.offer-card .offer-title,
.bento-cell h3,
.step h3,
.feature-card h3,
.blog-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
}

.nav-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
}

/* ============================================================
   E29. HERO display — titolo oversize con chip immagine inline
        + rail di anteprime a pieno sanguinamento
   ============================================================ */
.hero--display {
  display: block;
  min-height: auto;
  overflow: hidden;
  text-align: left;
  background: none;
  background-attachment: initial;
  padding: calc(var(--nav-h) + clamp(40px, 6vw, 84px)) 0 0;
}

.hero--display::before, .hero--display::after { display: none; }

.hero-title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: clamp(2.7rem, 9vw, 7.6rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.038em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-ln { display: block; }

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

/* chip immagine dentro al titolo */
.hero-chip {
  display: inline-block;
  vertical-align: middle;
  width: clamp(46px, 7.6vw, 108px);
  aspect-ratio: 1;
  margin: 0 0 .16em .22em;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
  transition: transform .5s var(--ease-bounce);
}

.hero-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-title:hover .hero-chip { transform: rotate(3deg) scale(1.06); }

/* riga inferiore: lead + CTA + numeri */
.hero-deck {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}

.hero--display .lead {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  color: var(--text);
}

.hero-side { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.hero--display .hero-ctas { justify-content: flex-start; margin: 0; }

.hero--display .hero-meta {
  border-top: 0;
  padding-top: 0;
  gap: clamp(20px, 3vw, 44px);
}

.hero--display .hero-meta b { font-size: clamp(1.35rem, 2.1vw, 1.9rem); }

/* rail anteprime */
.hero-rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding: clamp(24px, 3vw, 40px) var(--bleed) clamp(28px, 4vw, 48px);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.hero-rail::-webkit-scrollbar { display: none; }

.hero-rail figure {
  flex: 0 0 clamp(150px, 17vw, 240px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg-alt);
  transition: transform .5s var(--ease);
}

.hero-rail figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-rail figure:nth-child(odd)  { transform: translateY(10px); }
.hero-rail figure:hover { transform: translateY(0) scale(1.03); }

/* ============================================================
   E30. QUOTE BLOCK — citazione editoriale (ex manifesto)
   ============================================================ */
.quote-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap) var(--gap);
  align-items: start;
}

.quote-label {
  grid-column: 1 / span 2;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin: .6em 0 0;
}

.quote-text {
  grid-column: 3 / span 10;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.3vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}

.quote-text em { font-style: normal; color: var(--accent); font-weight: 700; }

.quote-meta {
  grid-column: 3 / span 10;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  flex-wrap: wrap;
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--rule);
  margin-top: clamp(8px, 1.4vw, 16px);
}

.quote-photo {
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.quote-photo img { width: 100%; height: 100%; object-fit: cover; }

.quote-who { display: flex; flex-direction: column; line-height: 1.4; }
.quote-who b { color: var(--ink); font-weight: 600; font-size: .98rem; }
.quote-who span { color: var(--muted); font-size: .86rem; }

.quote-link {
  margin-left: auto;
  font-weight: 600;
  font-size: .94rem;
  color: var(--brand);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.quote-link span { transition: transform .3s var(--ease); }
.quote-link:hover span { transform: translateX(5px); }

.quote-body {
  grid-column: 3 / span 7;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: clamp(4px, 1vw, 12px) 0 0;
}

/* ============================================================
   E31. PILLARS — indice interattivo (ex bento)
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.pillars-list { display: flex; flex-direction: column; }

.pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 30px);
  width: 100%;
  padding: clamp(22px, 3vw, 34px) 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .4s var(--ease);
}

.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillars-list:hover .pillar:not(:hover) { opacity: .48; }

.pillar-num {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
  padding-top: .45em;
  transition: color .35s var(--ease);
}

.pillar.is-active .pillar-num { color: var(--accent); }

.pillar-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.022em;
  color: var(--ink);
  transition: color .35s var(--ease);
}

.pillar:hover .pillar-title,
.pillar.is-active .pillar-title { color: var(--brand); }

.pillar-desc { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* media che cambia */
.pillars-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.pillar-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}

.pillar-fig.is-active { opacity: 1; transform: scale(1); }
.pillar-fig img { width: 100%; height: 100%; object-fit: cover; }

/* riga numeri sotto */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin: clamp(40px, 5vw, 68px) 0 0;
  padding-top: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--rule);
}

.figures div { display: flex; flex-direction: column; gap: 4px; }

.figures dt {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.038em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.figures dd { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }

/* ============================================================
   E32. FLOW — stepper orizzontale con linea che si riempie
   ============================================================ */
.flow { position: relative; }

.flow-track {
  position: absolute;
  top: 27px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.flow-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 1s var(--ease);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-step { text-align: center; padding: 0 clamp(6px, 1.4vw, 18px); }

.flow-dot {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  position: relative;
  z-index: 2;
  transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease-bounce), box-shadow .45s var(--ease);
}

.flow-dot span {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .45s var(--ease);
}

.section-alt .flow-dot { background: var(--bg-alt); }

.flow-step.is-in .flow-dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: var(--shadow-brand);
}

.flow-step.is-in .flow-dot span { color: var(--white); }
.flow-step:hover .flow-dot { transform: scale(1.08); }

.flow-step h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  margin: 0 0 8px;
}

.flow-step p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

.flow-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: clamp(40px, 5vw, 64px) 0 0;
}

/* ============================================================
   E33. Responsive dei nuovi componenti
   ============================================================ */
@media (max-width: 1024px) {
  .quote-label { grid-column: 1 / -1; margin-top: 0; }
  .quote-text, .quote-meta, .quote-body { grid-column: 1 / -1; }
  .figures { grid-template-columns: repeat(2, 1fr); row-gap: clamp(22px, 3vw, 32px); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); row-gap: clamp(32px, 4vw, 44px); }
  .flow-track { display: none; }
}

@media (max-width: 900px) {
  .hero-deck { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars-media { position: relative; top: auto; order: -1; aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .hero--display { padding-top: calc(var(--nav-h) + 32px); }
  .figures { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-step { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 16px; column-gap: 18px; }
  .flow-dot { margin: 0; width: 46px; height: 46px; }
  .flow-step h3 { grid-column: 2; }
  .flow-step p { grid-column: 2; }
  .flow-cta { justify-content: stretch; flex-direction: column; }
  .quote-meta { gap: 12px; }
  .quote-link { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chip, .hero-rail figure, .pillar-fig, .flow-dot, .flow-fill, .quote-link span { transition: none; }
  .hero-rail figure:nth-child(odd) { transform: none; }
  .pillars-media { position: relative; top: auto; }
}

/* ============================================================
   E34. HEADER — logo più grande, barra più alta, comportamento
        dinamico (si ritrae scendendo) e indicatore scorrevole
   ============================================================ */
:root { --nav-h: 88px; }

.site-header {
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease), transform .45s var(--ease);
  will-change: transform;
}

.site-header.is-hidden { transform: translateY(-100%); }

/* logo ingrandito */
.nav-brand img {
  height: clamp(46px, 4.6vw, 62px);
  width: auto;
  transition: transform .4s var(--ease);
}

.nav-brand:hover img { transform: scale(1.04); }

.nav-links { position: relative; gap: clamp(18px, 2.2vw, 34px); }

.nav-links a:not(.nav-cta) {
  position: relative;
  z-index: 2;
  padding: 8px 2px;
  font-weight: 500;
  letter-spacing: -.008em;
}

/* l'indicatore sostituisce l'underline statico */
.nav-links a:not(.nav-cta)::after { display: none; }

.nav-indicator {
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  pointer-events: none;
  transition: transform .4s var(--ease), width .4s var(--ease), opacity .3s var(--ease);
}

.nav-indicator.is-on { opacity: 1; }

/* ============================================================
   E35. MENU MOBILE — overlay a schermo pieno, voci in cascata
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: calc(var(--nav-h) + 24px) var(--bleed) 40px;
    background: var(--bg);
    background-image:
      radial-gradient(ellipse at 90% 8%, var(--brand-soft), transparent 55%),
      radial-gradient(ellipse at 5% 95%, var(--accent-soft), transparent 55%);
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-links.is-open { transform: translateY(0); }

  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s var(--ease), transform .5s var(--ease);
  }

  .nav-links.is-open li { opacity: 1; transform: translateY(0); }

  /* cascata */
  .nav-links.is-open li:nth-child(1) { transition-delay: .12s; }
  .nav-links.is-open li:nth-child(2) { transition-delay: .18s; }
  .nav-links.is-open li:nth-child(3) { transition-delay: .24s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: .30s; }
  .nav-links.is-open li:nth-child(5) { transition-delay: .36s; }
  .nav-links.is-open li:nth-child(6) { transition-delay: .42s; }

  .nav-links a:not(.nav-cta) {
    display: block;
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links .nav-cta { margin-top: 24px; width: 100%; justify-content: center; }
  .nav-indicator { display: none; }

  /* hamburger che si trasforma in X */
  .nav-toggle { z-index: 1002; position: relative; }
  .nav-toggle span { transition: transform .4s var(--ease), opacity .3s var(--ease); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   E36. BOTTONE WHATSAPP FLOTTANTE — nuovo colore (gradiente
        brand) e comportamento dinamico: anello pulsante, si
        espande con l'etichetta, si ritrae scendendo
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0;
  width: 60px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 45%, var(--accent) 130%);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(91, 76, 219, .38), 0 2px 8px rgba(26, 26, 46, .18);
  overflow: hidden;
  transition: width .45s var(--ease), transform .45s var(--ease),
              box-shadow .35s var(--ease), opacity .35s var(--ease);
}

.whatsapp-float svg {
  flex: 0 0 60px;
  width: 26px;
  height: 26px;
  margin: 0 auto;
  transition: transform .5s var(--ease-bounce);
}

/* etichetta rivelata all'hover */
.whatsapp-float .wa-label {
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.005em;
  opacity: 0;
  padding-right: 22px;
  transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  width: 232px;
  color: var(--white);
  box-shadow: 0 16px 40px rgba(91, 76, 219, .48), 0 3px 10px rgba(26, 26, 46, .2);
  transform: translateY(-3px);
}

.whatsapp-float:hover .wa-label,
.whatsapp-float:focus-visible .wa-label { opacity: 1; transform: translateX(0); }
.whatsapp-float:hover svg { transform: rotate(-8deg) scale(1.06); }

.whatsapp-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* anello pulsante */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--brand);
  animation: waPulse 2.8s var(--ease) infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .55; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* si ritrae scendendo */
.whatsapp-float.is-tucked {
  transform: translateY(96px) scale(.9);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .whatsapp-float { height: 54px; width: 54px; }
  .whatsapp-float svg { flex-basis: 54px; }
  .whatsapp-float:hover, .whatsapp-float:focus-visible { width: 54px; }
  .whatsapp-float .wa-label { display: none; }
}

/* ============================================================
   E38. BRAND in header — marchio + nome in testo
        (il file 29.png e' solo il monogramma, non un wordmark:
        da solo non e' leggibile come firma del sito)
   ============================================================ */
.nav-brand { gap: 12px; }

.nav-brand img {
  height: clamp(42px, 4vw, 54px);
  width: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -.032em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-brand span em {
  font-style: normal;
  color: var(--accent);
}

@media (max-width: 420px) {
  .nav-brand span { font-size: .96rem; }
}

/* ============================================================
   E39. FOOTER strutturato — 4 colonne + galleria + barra legale
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, .72);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(52px, 7vw, 84px) 24px clamp(36px, 4.5vw, 52px);
  align-items: start;
}

.footer-brand p {
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 34ch;
}

.site-footer .footer-logo {
  width: clamp(170px, 17vw, 210px);
  height: auto;
  aspect-ratio: auto;
  margin: 0 0 20px;
  display: block;
}

.footer-social { display: flex; gap: 10px; margin: 0; }

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}

.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin: 0 0 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.footer-col ul a,
.footer-contact a:not(.btn) {
  color: rgba(255, 255, 255, .62);
  font-size: .92rem;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}

.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact a:not(.btn):hover { color: var(--accent); }

/* colonna contatti (NAP) */
.footer-contact address { font-style: normal; display: grid; gap: 14px; margin: 0 0 22px; }
.footer-contact p { margin: 0; font-size: .92rem; line-height: 1.6; color: rgba(255, 255, 255, .62); }

.fc-lab {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .34);
  margin-bottom: 3px;
}

.footer-cta { width: 100%; justify-content: center; }

/* fascia galleria */
.footer-mid {
  padding: clamp(28px, 3.4vw, 40px) 24px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.footer-mid h4 { margin-bottom: 16px; }

.footer-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.footer-gallery a {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
}

.footer-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}

.footer-gallery a:hover img { opacity: 1; transform: scale(1.07); }

/* barra legale */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: clamp(20px, 2.4vw, 26px) 24px clamp(26px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .5); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255, 255, 255, .6); }
.footer-legal a:hover { color: var(--accent); }
.footer-credit a { color: var(--accent); font-weight: 600; }
.footer-credit a:hover { color: var(--white); }

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   E40. Fix contrasto hero display
   Il layer base ha .hero h1{color:#fff;text-shadow:...} e
   .hero p{color:rgba(255,255,255,.88)} perche' l'hero era
   un'immagine scura. Ora e' chiaro: servono selettori a
   specificita' maggiore (0,2,0 batte 0,1,1).
   ============================================================ */
.hero--display .hero-title {
  color: var(--ink);
  text-shadow: none;
}

.hero--display .hero-title em { color: var(--accent); }

.hero--display .hero-kicker {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.hero--display .hero-meta b { color: var(--ink); }
.hero--display .hero-meta span { color: var(--muted); }
.hero--display p { color: var(--text); }

.hero--display .btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.hero--display .btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ============================================================
   E41. FAB — l'anello pulsante non puo' essere un ::before:
   overflow:hidden (necessario per l'etichetta) lo taglierebbe.
   Uso box-shadow, che non viene clippato.
   ============================================================ */
.whatsapp-float::before { display: none; }

.whatsapp-float {
  animation: waRing 2.6s var(--ease) infinite;
}

@keyframes waRing {
  0%   { box-shadow: 0 10px 30px rgba(91, 76, 219, .38), 0 0 0 0 rgba(91, 76, 219, .5); }
  70%  { box-shadow: 0 10px 30px rgba(91, 76, 219, .38), 0 0 0 16px rgba(91, 76, 219, 0); }
  100% { box-shadow: 0 10px 30px rgba(91, 76, 219, .38), 0 0 0 0 rgba(91, 76, 219, 0); }
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  animation: none;
  box-shadow: 0 16px 40px rgba(91, 76, 219, .48), 0 3px 10px rgba(26, 26, 46, .2);
}

.whatsapp-float.is-tucked { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ============================================================
   E42. ARTICOLI BLOG — corpo leggibile, immagine di apertura,
        CTA finale
   ============================================================ */
.article-body { max-width: 76ch; }

.article-hero {
  margin: 0 0 clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}

.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  margin: clamp(34px, 4vw, 52px) 0 14px;
  letter-spacing: -.024em;
}

.article-body h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  margin: clamp(24px, 2.6vw, 32px) 0 10px;
}

.article-body p { margin: 0 0 1.05em; line-height: 1.78; }

.article-body ul {
  list-style: none;
  margin: 0 0 1.3em;
  padding: 0;
  display: grid;
  gap: 10px;
}

.article-body ul li {
  position: relative;
  padding-left: 26px;
  line-height: 1.7;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body a:not(.btn) {
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(91, 76, 219, .32);
  text-underline-offset: 3px;
  transition: text-decoration-color .25s var(--ease);
}

.article-body a:not(.btn):hover { text-decoration-color: var(--brand); }

/* richiamo evidenziato */
.article-body .callout {
  margin: clamp(24px, 3vw, 34px) 0;
  padding: clamp(18px, 2.2vw, 24px);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .96rem;
  line-height: 1.7;
}

/* CTA di chiusura articolo */
.article-cta {
  margin: clamp(44px, 5vw, 68px) 0 0;
  padding: clamp(28px, 3.6vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 12% 88%, rgba(200, 149, 108, .2), transparent 55%),
    linear-gradient(135deg, var(--ink), #2d2b55);
  color: var(--white);
}

.article-cta h2 { color: var(--white); margin: 0 0 10px; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.article-cta p { color: rgba(255, 255, 255, .82); margin: 0 0 20px; }

.article-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 !important;
}

.article-cta .btn-outline { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.article-cta .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

@media (max-width: 640px) {
  .article-cta-actions { flex-direction: column; }
  .article-cta-actions .btn { justify-content: center; }
}

/* ============================================================
   E43. FORM — honeypot, suggerimento e messaggi di esito
   ============================================================ */

/* Honeypot: fuori schermo, non display:none (alcuni bot lo rilevano) */
.form-honey {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-hint {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--brand);
  font-weight: 500;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .92rem;
  line-height: 1.6;
  border-left: 3px solid transparent;
}

.form-status.is-error {
  display: block;
  background: #fdeeee;
  border-left-color: #d13c3c;
  color: #8f2222;
}

.form-status.is-success {
  display: block;
  background: #eaf7ef;
  border-left-color: #1faa54;
  color: #14663a;
}

/* stato di errore sui campi */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ============================================================
   E44. Fix overlay menu mobile
   .site-header ha backdrop-filter e will-change: entrambi
   creano un containing block per i discendenti position:fixed.
   Quindi inset:0 su .nav-links si riferiva al .container
   (larghezza limitata dal padding), non al viewport.
   Soluzione: larghezza in vw e ricentratura sul viewport.
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    inset: auto;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    transform: translate(-50%, -100%);
  }

  .nav-links.is-open { transform: translate(-50%, 0); }

  /* il menu aperto deve stare sopra l'header */
  .nav-links { z-index: 1001; }
  .site-header.is-hidden { transform: none; }   /* mai nascondere con menu aperto */
}

/* ============================================================
   E45. Fix bottone "Contattaci" nel menu
   .nav-links a:hover{color:var(--brand)} (0,2,0) vinceva su
   .btn-primary:hover{color:#fff} (0,1,1): sul bottone il testo
   diventava viola su fondo viola, quindi illeggibile.
   Restava attivo anche l'underline ::after delle voci di menu,
   che disegnava una barretta sotto la pillola.
   ============================================================ */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus,
.nav-links a.nav-cta:focus-visible,
.nav-links a.nav-cta:active {
  color: var(--white);
}

.nav-links a.nav-cta::after,
.nav-links a.nav-cta:hover::after {
  display: none;
  content: none;
}

.nav-links a.nav-cta:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}

.nav-links a.nav-cta {
  transition: background .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease), transform .25s var(--ease);
}

.nav-links a.nav-cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a.nav-cta:hover { transform: none; }
}

/* ============================================================
   E46. CAROSELLO BLOG — mancava del tutto il CSS di
   .blog-slider-track, .blog-prev e .blog-next: la traccia
   restava un div block (card impilate) e i bottoni due strisce
   verticali. Nel layer base era .blog-slider a fare da
   contenitore flex, ma il JS scorre .blog-slider-track:
   qui i ruoli vengono rimessi in ordine.
   ============================================================ */
.blog-slider {
  display: block;            /* era flex: ora fa solo da contesto per i bottoni */
  position: relative;
  overflow: visible;
  padding-bottom: 0;
}

.blog-slider-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 20px;
  margin: -4px -4px 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.blog-slider-track::-webkit-scrollbar { display: none; }

.blog-slider-track:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.blog-slider .blog-card {
  flex: 0 0 clamp(260px, 30%, 344px);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.blog-slider .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.blog-slider .blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.2vw, 24px);
  flex: 1;
}

.blog-slider .blog-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.018em;
  color: var(--ink);
  margin: 0;
  transition: color .3s var(--ease);
}

.blog-slider .blog-card:hover h3 { color: var(--brand); }

.blog-slider .blog-card-excerpt {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  gap: 6px;
}

.blog-card-more span { transition: transform .3s var(--ease); }
.blog-card:hover .blog-card-more span { transform: translateX(4px); }

/* ---- controlli prev/next ---- */
.blog-nav {
  position: absolute;
  top: 34%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}

.blog-nav:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: scale(1.06);
}

.blog-nav:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.blog-prev { left: -22px; }
.blog-next { right: -22px; }

.blog-slider-cta { margin: clamp(24px, 3vw, 34px) 0 0; text-align: right; }

@media (max-width: 1320px) {
  .blog-prev { left: 6px; }
  .blog-next { right: 6px; }
}

@media (max-width: 640px) {
  /* su touch basta lo swipe: i bottoni sono ridondanti */
  .blog-nav { display: none; }
  .blog-slider .blog-card { flex-basis: 82%; }
  .blog-slider-cta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-slider-track { scroll-behavior: auto; }
  .blog-slider .blog-card:hover { transform: none; }
  .blog-nav:hover { transform: none; }
  .blog-card:hover .blog-card-more span { transform: none; }
}

/* ----------------------------------------------------------
   E47. Traccia blog: niente padding orizzontale.
   Serviva a non tagliare il sollevamento in hover, che pero'
   e' solo verticale (translateY): il padding laterale spostava
   l'origine dello scroll a 4px, falsando il rilevamento
   "inizio traccia" dei controlli.
   ---------------------------------------------------------- */
.blog-slider-track {
  padding: 6px 0 20px;
  margin: -6px 0 0;
}

/* ============================================================
   E48. STORIA + SCHEDA DATI (chi siamo)
   Sostituisce h2 centrato + due colonne di testo compatto:
   narrazione a sinistra, scheda sintetica consultabile a destra.
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.story-text p {
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 1.05em;
  max-width: 62ch;
}

.story-lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--ink) !important;
  margin-bottom: 1.1em !important;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

/* scheda dati */
.spec-card {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.section-alt .spec-card { background: var(--white); }

.spec-card h3 {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin: 0 0 18px;
}

.spec-list { margin: 0 0 24px; display: grid; }

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.spec-list > div:first-child { border-top: 0; padding-top: 0; }

.spec-list dt {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .01em;
}

.spec-list dd {
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.spec-cta { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .spec-card { position: static; }
}

/* ============================================================
   E49. OFFER CARD — colori, presentazione, dinamicità
   ============================================================ */

/* colore: corpo con velatura calda e filetto gradiente in hover */
.offer-card {
  position: relative;
  background:
    linear-gradient(180deg, var(--white) 62%, #fbf9f6 100%);
  isolation: isolate;
}

.offer-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transform: scaleX(.4);
  transform-origin: left;
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  z-index: 3;
}

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

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(26, 26, 46, .13);
}

/* immagine: zoom più marcato e badge che si solleva */
.offer-card:hover .offer-slider img.active { transform: scale(1.07); }

.offer-badge { transition: transform .45s var(--ease-bounce), box-shadow .35s var(--ease); }
.offer-card:hover .offer-badge {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 26, 46, .16);
}

/* prezzo: blocco con velatura ambra, non più su fondo piatto */
.offer-foot {
  margin-top: auto;
  padding: 18px;
  margin-inline: -4px;
  border-top: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 232, 219, .35));
  gap: 16px;
}

.offer-card .offer-price-value { color: var(--ink); }
.offer-price-pre { color: var(--accent-dark); }
.offer-price-unit { color: var(--accent-dark); opacity: .8; }

/* tag: velatura brand invece di solo filetto */
.offer-tags li {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-dark);
  transition: background .3s var(--ease), color .3s var(--ease);
}

.offer-card:hover .offer-tags li { background: #e6e2ff; }

/* ---- CTA: pillola scura con glifo verde, si accende in hover ----
   Tre slab verdi a tutta larghezza appesantivano la sezione:
   ora il verde resta il segnale del canale (glifo + hover). */
.offer-cta {
  --wa: #1faa54;
  --wa-dark: #17924a;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  gap: 11px;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.offer-cta-icon {
  width: 27px;
  height: 27px;
  padding: 5.5px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  transition: background .3s var(--ease), transform .45s var(--ease-bounce);
}

.offer-cta:hover {
  background: var(--wa);
  border-color: var(--wa);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 170, 84, .34);
}

.offer-cta:hover .offer-cta-icon {
  background: rgba(255, 255, 255, .24);
  transform: rotate(-10deg) scale(1.08);
}

.offer-cta:active { transform: translateY(0); }

/* riflesso che attraversa il bottone */
.offer-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent);
  transform: skewX(-18deg);
  transition: left .6s var(--ease);
  pointer-events: none;
}

.offer-cta:hover::after { left: 130%; }

.offer-cta:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .offer-card:hover { transform: none; }
  .offer-card:hover::before { transform: none; }
  .offer-cta:hover { transform: none; }
  .offer-cta::after { display: none; }
  .offer-cta:hover .offer-cta-icon { transform: none; }
  .offer-card:hover .offer-badge { transform: none; }
}

/* ============================================================
   E50. Piede della card offerta — respiro e dicitura
   Il pannello ambra conteneva prezzo E bottone: il bottone
   risultava compresso. Ora la velatura resta solo sul prezzo
   e il bottone ha spazio proprio.
   L'etichetta descrive l'azione ("Richiedi disponibilità") e
   non il mezzo, con una riga che spiega cosa accade: il
   messaggio su WhatsApp è già precompilato.
   ============================================================ */
.offer-foot {
  background: none;
  padding: 0;
  margin-inline: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 16px;
}

/* la velatura ambra ora veste solo il prezzo */
.offer-card .offer-price {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 232, 219, .4));
  gap: 8px;
}

/* bottone: più alto e con etichetta su due righe */
.offer-cta {
  min-height: 60px;
  padding: 12px 20px;
  gap: 13px;
  border-radius: var(--radius);
  text-align: left;
  justify-content: flex-start;
}

.offer-cta-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
  min-width: 0;
}

.offer-cta-txt b {
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.offer-cta-txt small {
  font-size: .74rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .66);
  letter-spacing: .01em;
  transition: color .3s var(--ease);
}

.offer-cta:hover .offer-cta-txt small { color: rgba(255, 255, 255, .85); }

.offer-cta-icon { flex: 0 0 auto; width: 30px; height: 30px; padding: 6px; }

@media (max-width: 380px) {
  .offer-cta { padding-inline: 16px; gap: 11px; }
  .offer-cta-txt b { font-size: .9rem; }
  .offer-cta-txt small { font-size: .7rem; }
}

/* ----------------------------------------------------------
   E51. Piede offerta: azzerare raggio e bordo residui.
   .offer-foot aveva border-radius dalla versione con fondo
   colorato: con solo border-top il browser disegnava gli
   angoli curvi della cornice (linea "a mezzaluna" sopra il
   prezzo). Il separatore non serve piu': la velatura del
   prezzo distingue gia' il blocco.
   ---------------------------------------------------------- */
.offer-foot {
  border-radius: 0;
  border-top: 0;
  padding-top: 4px;
}

/* ============================================================
   E52. CTA offerta — pulsante pulito, senza marchio WhatsApp
   Solo l'azione ("Richiedi disponibilità") e una freccia che
   scorre. Il link porta comunque a WhatsApp col messaggio
   precompilato: il canale è dichiarato nell'aria-label per
   chi usa uno screen reader, senza rumore visivo.
   Colore allineato al CTA primario del sito (brand), non più
   verde: le card non hanno più tre blocchi di colore estraneo.
   ============================================================ */
.offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .28s var(--ease), border-color .28s var(--ease),
              box-shadow .28s var(--ease), transform .28s var(--ease);
}

.offer-cta > span { position: relative; z-index: 2; }

.offer-cta-arrow {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  transition: transform .38s var(--ease);
}

.offer-cta:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 76, 219, .34);
}

.offer-cta:hover .offer-cta-arrow { transform: translateX(5px); }
.offer-cta:active { transform: translateY(0); }

.offer-cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* riflesso che attraversa */
.offer-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-18deg);
  transition: left .62s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.offer-cta:hover::after { left: 130%; }

@media (max-width: 380px) {
  .offer-cta { padding-inline: 16px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-cta:hover { transform: none; }
  .offer-cta:hover .offer-cta-arrow { transform: none; }
  .offer-cta::after { display: none; }
}

/* ============================================================
   E53. SEO — elementi introdotti per la gerarchia dei titoli
   I titoli del footer sono passati da h4 a h2 (h4 dopo un h2
   creava un salto di livello): serve mantenere l'aspetto
   originale, non la dimensione di default degli h2.
   ============================================================ */
.site-footer .footer-h {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 18px;
}

/* titoli card blog: erano h3, ora h2 — stessa resa visiva */
.blog-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.018em;
  margin: 0;
}

.blog-card-title a { color: var(--ink); transition: color .3s var(--ease); }
.blog-card-title a:hover { color: var(--brand); }

/* intestazione della pagina contatti */
.contact-heads { margin-bottom: clamp(28px, 3.4vw, 44px); max-width: 62ch; }

.contact-heads h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 0 0 12px;
}

.contact-heads p { color: var(--muted); line-height: 1.7; margin: 0; }

/* intestazione della galleria */
.gallery-intro { margin-bottom: clamp(32px, 4vw, 52px); }

/* ----------------------------------------------------------
   E54. Fascia footer: galleria + guide affiancate
   La colonna "Cosa facciamo" mescolava servizi e articoli:
   ora l'offerta commerciale resta nella colonna, le guide
   hanno una loro area con i link agli approfondimenti.
   ---------------------------------------------------------- */
.footer-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer-mid-guides ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.footer-mid-guides a {
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
  line-height: 1.5;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}

.footer-mid-guides a:hover { color: var(--accent); padding-left: 4px; }
.footer-all { color: var(--accent) !important; font-weight: 600; }
.footer-all:hover { color: var(--white) !important; }

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


/* ============================================================
   E55. Guardia sui bottoni
   Le regole di link discendenti (.article-body a,
   .legal-content a, .footer-contact a) hanno specificità 0,1,1
   e battevano .btn-primary {color:#fff} che è 0,1,0: il testo
   del bottone prendeva il colore del link, diventando viola su
   viola. Sopra quei selettori sono stati ristretti con
   :not(.btn); qui resta una guardia per il futuro.

   Nota sulla specificità: selettori come .footer-col ul li a
   valgono (0,1,3) e batterebbero a.btn-primary (0,1,1).
   Per questo la guardia usa DUE classi -> (0,2,0), che vince
   su qualunque discendente a una sola classe.
   ============================================================ */
.btn.btn-primary,
.btn.btn-outline,
.btn.btn-outline-dark,
.btn.btn-green,
.btn.btn-accent,
.btn.btn-submit {
  text-decoration: none;
}

.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:visited,
.btn.btn-green,
.btn.btn-green:hover,
.btn.btn-green:visited {
  color: var(--white);
}

/* varianti su fondo scuro: il testo resta bianco */
.article-cta .btn.btn-outline,
.article-cta .btn.btn-outline:visited,
.cta-bleed .btn.btn-outline,
.cta-bleed .btn.btn-outline:visited,
.cta-banner .btn.btn-outline,
.cta-banner .btn.btn-outline:visited {
  color: var(--white);
}

.article-cta .btn.btn-outline:hover,
.cta-bleed .btn.btn-outline:hover,
.cta-banner .btn.btn-outline:hover {
  color: var(--ink);
}

/* ============================================================
   E56. PARTNER — schede con targa del logo
   I file sorgente avevano il marchio su ~29% dell'altezza del
   canvas: con height:40px il logo rendeva a ~12px e con peso
   ottico diverso fra i tre (PhotoSì illeggibile). Ora i file
   sono ritagliati al contenuto e normalizzati alla stessa
   altezza ottica; qui la presentazione passa da colonne nude
   a schede con la targa bianca del logo.
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.partner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.partner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* targa del logo: i file hanno fondo bianco, quindi la targa
   bianca è coerente e rende il marchio leggibile su fondo caldo */
.partner-logo {
  display: grid;
  place-items: center;
  height: 92px;
  padding: 16px 22px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.partner-logo img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* i loghi sono a colori (PhotoSì è arancio/viola): niente
     grayscale che li spegneva, solo una lieve desaturazione */
  filter: saturate(.88);
  transition: filter .4s var(--ease), transform .5s var(--ease);
}

.partner:hover .partner-logo img { filter: saturate(1); transform: scale(1.03); }

.partner-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 5px 11px;
}

.partner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
}

.partner p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
}

.partner-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.partner-link span { transition: transform .3s var(--ease); }
.partner-link:hover span { transform: translateX(4px); }

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

@media (max-width: 600px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner-logo { height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .partner:hover { transform: none; }
  .partner:hover .partner-logo img { transform: none; }
  .partner-link:hover span { transform: none; }
}

/* ============================================================
   E57. PRELOADER — separazione CMYK
   Le quattro lastre di stampa (cyan, magenta, yellow, nero)
   entrano fuori registro e convergono: è esattamente il
   processo di quadricromia che il laboratorio usa ogni giorno.
   Il logo è usato come MASCHERA CSS, così ogni lastra è la
   silhouette del marchio tinta nel colore di processo.
   ============================================================ */
html.is-loading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99000;
  display: none;
  place-items: center;
  background:
    radial-gradient(ellipse at 26% 20%, rgba(91, 76, 219, .26), transparent 58%),
    radial-gradient(ellipse at 78% 84%, rgba(200, 149, 108, .18), transparent 58%),
    var(--footer-bg);
}

.preloader.is-active { display: grid; }

.preloader.is-out {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}

.pre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 4vw, 40px);
  padding: 24px;
}

/* ---------- banco di stampa con crocini di registro ---------- */
.pre-stage {
  position: relative;
  width: clamp(230px, 42vw, 380px);
  aspect-ratio: 500 / 176;
}


/* ---------- le quattro lastre ---------- */
.pre-plate {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url('../img/logo-light.png');
  mask-image: url('../img/logo-light.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: screen;
  opacity: 0;
  animation: plateIn .85s var(--ease) forwards;
}

/* colori di processo */
.pre-plate--c { background: #00aeef; --from-x: -16px; --from-y: -9px; animation-delay: .05s; }
.pre-plate--m { background: #ec008c; --from-x:  14px; --from-y:  8px; animation-delay: .22s; }
.pre-plate--y { background: #fff200; --from-x:  -7px; --from-y: 14px; animation-delay: .39s; }

.pre-plate--k { background: #ffffff; --from-x: 5px; --from-y: -14px; animation-delay: .56s; }

@keyframes plateIn {
  0%   { opacity: 0; transform: translate(var(--from-x), var(--from-y)) scale(1.035); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* ---------- barra e stato ---------- */
.pre-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: clamp(190px, 26vw, 240px);
}

.pre-bar {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.pre-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #00aeef, #ec008c 45%, #fff200 75%, var(--accent));
  transition: width .5s var(--ease);
}

.pre-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin: 0;
}

.pre-status b {
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
  min-width: 7ch;
  text-align: left;
}

/* pallino che pulsa accanto allo stato */
.pre-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: preDot 1.1s var(--ease) infinite;
}

@keyframes preDot {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}


/* Motion ridotto: nessun preloader, si va diretti al contenuto */
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
}


/* ----------------------------------------------------------
   E58. Preloader: le frange restano visibili durante la
   convergenza, poi il marchio vero le copre.
   ---------------------------------------------------------- */
.pre-plate { opacity: 0; }

.pre-plate--c,
.pre-plate--m,
.pre-plate--y { z-index: 1; }


@media (prefers-reduced-motion: reduce) {
  .pre-plate, }

/* ----------------------------------------------------------
   E59. Preloader semplificato
   Via i crocini di registro e i nomi delle lastre: resta la
   convergenza CMYK che si chiude su un logo bianco pulito,
   con la sola dicitura "Caricamento".
   ---------------------------------------------------------- */
.pre-plate--k {
  background: #ffffff;
  --from-x: 5px;
  --from-y: -14px;
  animation-delay: .56s;
  z-index: 2;
}

.pre-status {
  gap: 10px;
  font-size: .7rem;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .62);
}

@media (prefers-reduced-motion: reduce) {
  .pre-plate { animation: none; opacity: 1; transform: none; }
  .pre-plate--c, .pre-plate--m, .pre-plate--y { opacity: 0; }
}

/* ----------------------------------------------------------
   E60. Preloader accelerato
   Ritardi e durata ridotti di ~40%: l'ultima lastra chiude a
   ~0,84s invece di 1,41s, così il minimo mostrato scende a
   0,9s senza tagliare la convergenza a metà.
   ---------------------------------------------------------- */
.pre-plate { animation-duration: .5s; }

.pre-plate--c { animation-delay: .03s; }
.pre-plate--m { animation-delay: .13s; }
.pre-plate--y { animation-delay: .24s; }
.pre-plate--k { animation-delay: .34s; }

/* ============================================================
   E61. MICRO-INTERAZIONI SULLE CARD
   Il puntatore illumina la card e sposta l'immagine in
   controparallasse: la scheda reagisce invece di limitarsi a
   sollevarsi. Solo su puntatore fine (non sui touch).
   ============================================================ */
@media (hover: hover) and (pointer: fine) {

  .offer-card,
  .blog-slider .blog-card,
  .partner,
  .bento-cell {
    --mx: 50%;
    --my: 50%;
  }

  /* alone che segue il cursore */
  .offer-card::after,
  .blog-slider .blog-card::after,
  .partner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity .4s var(--ease);
    background: radial-gradient(320px circle at var(--mx) var(--my),
                rgba(91, 76, 219, .09), transparent 62%);
  }

  .offer-card:hover::after,
  .blog-slider .blog-card:hover::after,
  .partner:hover::after { opacity: 1; }

  /* l'immagine si sposta in senso opposto al cursore */
  .offer-slider img.active,
  .blog-slider .blog-card-image img {
    transition: transform .5s var(--ease), opacity .5s var(--ease);
  }

  .offer-card:hover .offer-slider img.active {
    transform: scale(1.07) translate(calc((50% - var(--mx)) * .035), calc((50% - var(--my)) * .035));
  }

  .blog-slider .blog-card:hover .blog-card-image img {
    transform: scale(1.06) translate(calc((50% - var(--mx)) * .03), calc((50% - var(--my)) * .03));
  }
}

/* la freccia "sente" il passaggio sulla card, non solo sul link */
.blog-card:hover .blog-card-more span,
.partner:hover .partner-link span { transform: translateX(5px); }

.offer-card:hover .offer-cta-arrow { transform: translateX(3px); }

/* pressione: la card cede un poco, dà sensazione tattile */
.offer-card:active,
.blog-slider .blog-card:active,
.partner:active { transform: translateY(-3px) scale(.994); }

/* ============================================================
   E62. TRANSIZIONE FRA PAGINE
   View Transitions API dove supportata (Chrome, Edge, Safari):
   il passaggio fra pagine diventa una dissolvenza continua
   invece di un salto bianco. Dove non c'è, la pagina fa
   comunque una comparsa morbida: nessun JS che possa
   lasciare la pagina bloccata a metà.
   ============================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vtOut .22s var(--ease) both;
}

::view-transition-new(root) {
  animation: vtIn .34s var(--ease) both;
}

@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(10px); } }

/* header e bottone WhatsApp restano fermi durante il passaggio */
.site-header { view-transition-name: intestazione; }
.whatsapp-float { view-transition-name: contatto-rapido; }

/* comparsa morbida su tutti i browser, senza JS */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

main { animation: pageIn .5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  main { animation: none; }
  .offer-card::after,
  .blog-slider .blog-card::after,
  .partner::after { display: none; }
  .offer-card:hover .offer-slider img.active,
  .blog-slider .blog-card:hover .blog-card-image img { transform: none; }
  .offer-card:active,
  .blog-slider .blog-card:active,
  .partner:active { transform: none; }
}

/* ============================================================
   E63. Skip link — primo elemento focalizzabile della pagina.
   Invisibile finché non riceve il fuoco da tastiera: chi
   naviga con Tab può saltare header e menu e arrivare al
   contenuto senza attraversare tutte le voci.
   ============================================================ */
.salta-contenuto {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1100;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .25s var(--ease);
}

.salta-contenuto:focus,
.salta-contenuto:focus-visible {
  top: 0;
  color: var(--white);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* il main riceve il fuoco quando si salta, senza contorno visibile */
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .salta-contenuto { transition: none; }
}
