/* ==========================================================================
   Bioicon — strato finale "polish" (0.15)
   Si carica per ultimo: rifinisce animazioni, hover, frecce e dettagli.
   Regole di fondo:
   - le animazioni sono sempre brevi e una tantum (nessun loop invadente);
   - tutto ciò che si muove rispetta prefers-reduced-motion;
   - gli effetti legati al mouse sono solo per puntatori "fine" (hover reale);
   - testo e sfondo di ogni stato (normale/hover/focus) hanno contrasto alto.
   ========================================================================== */

:root {
  --bp-ease: cubic-bezier(.22, 1, .36, 1);
  --bp-ease-soft: cubic-bezier(.4, 0, .2, 1);
  --bp-cyan: #9adff6;
  --bp-cyan-hi: #d4f4fe;
  --bp-cyan-lo: #6cc3e6;
  --bp-ink: #052031;
  --bp-line: #284053;
  /* Freccia moderna: diagonale in alto a destra, tratto sottile e punte arrotondate */
  --bp-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E");
  --bp-arrow-cyan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239adff6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E");
  --bp-arrow-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052031' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   1. Base: tipografia, selezione, scrollbar, focus
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scrollbar-color: #3a5a72 #080e17; scrollbar-width: thin; }
body { text-rendering: optimizeLegibility; font-kerning: normal; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: #9adff6; color: #052031; }

/* Anello di focus ben visibile su sfondo scuro (prima: blu scuro poco contrastato) */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 4px;
  border-radius: 8px;
}
.button:focus-visible { border-radius: 24px; outline-offset: 3px; }

/* Barra di avanzamento: più sottile, con una piccola luce in testa */
.scroll-progress { height: 2px; background: linear-gradient(90deg, #3b86ab, #9ce8fa); box-shadow: 0 0 12px #6fd2f066; }

/* --------------------------------------------------------------------------
   2. Header: si "compone" quando si scorre
   -------------------------------------------------------------------------- */
.header { transition: background-color .35s var(--bp-ease-soft), box-shadow .35s var(--bp-ease-soft), border-color .35s; }
.header.is-scrolled {
  background: #080e17cc;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: #9adff61f;
  box-shadow: 0 10px 30px -18px #000c;
}
.brand img { transition: transform .5s var(--bp-ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }

@media (min-width: 681px) {
  .nav > a:not(.button):is(:hover, :focus-visible),
  .products-menu > summary:is(:hover, :focus-visible) > span,
  .products-menu[open] > summary > span {
    text-decoration: underline solid var(--bp-cyan) 1px;
    text-underline-offset: .25em;
  }
}

/* Menu "Soluzioni": entrata morbida e voci con evidenza leggibile */
.products-menu[open] .mega-menu { animation: bp-menu .32s var(--bp-ease) both; }
@keyframes bp-menu { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
.mega-category { border-radius: 10px; padding: 0 12px; margin: 0 -12px; transition: background-color .25s, color .25s, padding-left .3s var(--bp-ease); }
.mega-category:hover, .mega-category:focus-visible { background: #9adff61a; color: #fff; padding-left: 18px; }
.mega-intro a { transition: color .2s; }
.mega-intro a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   3. Pulsanti: stato hover SEMPRE leggibile + riflesso di luce
   -------------------------------------------------------------------------- */
.button { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--bp-ease), box-shadow .35s var(--bp-ease), background-color .25s, color .25s, border-color .25s; }
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, #ffffff66 50%, transparent 72%);
  transform: translateX(-130%); transition: transform .8s var(--bp-ease);
}

/* Primario: fondo azzurro, testo blu notte, in ogni stato */
html a.button:not(.secondary):not(.mail-alt), html button.button:not(.secondary):not(.mail-alt) {
  color: var(--bp-ink);
  background: linear-gradient(120deg, #b6ecfb, #8fd8f2);
  border-color: transparent;
  box-shadow: 0 6px 22px -8px #5ec4ea99;
}
html a.button:not(.secondary):not(.mail-alt):is(:hover, :focus-visible, :active),
html button.button:not(.secondary):not(.mail-alt):is(:hover, :focus-visible, :active) {
  color: var(--bp-ink);
  background: linear-gradient(120deg, #e3f9ff, #b4eafb);
  box-shadow: 0 12px 30px -10px #73cef3cc;
}
/* Secondario: contorno chiaro; in hover si riempie e il testo diventa scuro (contrasto alto) */
html .button.secondary, html .button.mail-alt {
  color: #e4f6fd; background: transparent; border-color: #4a7089; box-shadow: none;
}
html .button.secondary:is(:hover, :focus-visible, :active), html .button.mail-alt:is(:hover, :focus-visible, :active) {
  color: var(--bp-ink); background: var(--bp-cyan); border-color: var(--bp-cyan);
}
.button:is(:hover, :focus-visible)::before { transform: translateX(130%); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
.button[disabled], .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.button[disabled]::before { display: none; }
.button > * { color: inherit; }

/* Frecce moderne (sostituiscono la vecchia freccia orizzontale) */
html .button:not(.mail-alt):not(.secondary)::after, html .button.secondary::after {
  width: 1.1em; height: 1.1em; margin: 0 -.15em 0 -.35em; vertical-align: -.14em; flex: 0 0 auto;
  -webkit-mask: var(--bp-arrow-mask) center / contain no-repeat; mask: var(--bp-arrow-mask) center / contain no-repeat;
  transition: transform .4s var(--bp-ease);
}
html .button:hover::after { transform: translate(2px, -2px); }
html .search-controls .button::after { display: none; }

/* Link testuali: etichetta + piccolo "chip" circolare con freccia che scorre */
html .text-link, html .quiet-link {
  background: none; padding-bottom: 0; gap: .65em; align-items: center;
  transition: color .25s;
}
html .text-link::after, html .quiet-link::after {
  content: ""; flex: 0 0 auto; display: inline-block;
  width: 1.9em; height: 1.9em; margin: 0; vertical-align: middle;
  border: 1px solid #9adff673; border-radius: 50%;
  background: var(--bp-arrow-cyan) center / 52% no-repeat;
  -webkit-mask: none; mask: none;
  transition: background-color .3s var(--bp-ease), border-color .3s, transform .4s var(--bp-ease);
}
html .text-link:is(:hover, :focus-visible), html .quiet-link:is(:hover, :focus-visible) { color: #fff; background: none; text-decoration: none; }
html .text-link:is(:hover, :focus-visible)::after, html .quiet-link:is(:hover, :focus-visible)::after {
  background-color: var(--bp-cyan); background-image: var(--bp-arrow-dark); border-color: var(--bp-cyan);
  transform: scale(1.06);
  animation: bp-arrow-run .55s var(--bp-ease) both;
}
@keyframes bp-arrow-run {
  0% { background-position: center; }
  45% { background-position: 170% -70%; }
  46% { background-position: -70% 170%; }
  100% { background-position: center; }
}
/* La freccia del link dentro una card si anima quando si passa sulla card intera */
.product-card:hover .text-link::after, .story-card:hover .text-link::after, .subcategory-card:hover .text-link::after {
  background-color: var(--bp-cyan); background-image: var(--bp-arrow-dark); border-color: var(--bp-cyan);
}

/* --------------------------------------------------------------------------
   4. HERO
   -------------------------------------------------------------------------- */
.hero-logo .hero-stage { --hx: 72%; --hy: 46%; }

/* Luce che segue (dolcemente) il puntatore */
.hero-logo .hero-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--hx) var(--hy), #78d6fa22, transparent 62%);
  opacity: 0; transition: opacity .8s ease;
}
.hero-logo.bp-pointer .hero-stage::after { opacity: 1; }

/* Due aloni che si muovono lentissimi dietro il contenuto (solo transform, leggerissimo) */
.hero-scan::before, .hero-scan::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(40px); will-change: transform; }
.hero-scan::before { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, #1d6d9150, transparent 66%); animation: bp-drift-a 26s ease-in-out infinite alternate; }
.hero-scan::after { width: 40vw; height: 40vw; right: -10vw; bottom: -16vw; background: radial-gradient(circle, #2c5fb340, transparent 66%); animation: bp-drift-b 32s ease-in-out infinite alternate; }
@keyframes bp-drift-a { to { transform: translate3d(9vw, 6vw, 0) scale(1.15); } }
@keyframes bp-drift-b { to { transform: translate3d(-8vw, -5vw, 0) scale(1.2); } }

/* Piccola etichetta sopra il titolo */
.bp-eyebrow { display: inline-flex !important; align-items: center; gap: 12px; margin-bottom: 22px !important; color: #a9cfe2 !important; font-size: 12px !important; letter-spacing: .2em !important;
  animation: bp-fade-up .9s var(--bp-ease) .05s both; }
.bp-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--bp-cyan); box-shadow: 0 0 14px #9adff6aa; }
.bp-pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #9adff699; animation: bp-ping 2.8s ease-out 1.2s 3; opacity: 0; }
@keyframes bp-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* Titolo: ogni parola esce da una "maschera" */
.hero-logo h1 .hl-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .2em; margin: 0 -.05em -.2em; animation: none; }
.hero-logo h1 .hl-word > span { display: inline-block; animation: bp-rise 1.05s var(--bp-ease) .15s both; }
.hero-logo h1 .hl-word:nth-child(2) > span {
  animation: bp-rise 1.05s var(--bp-ease) .3s both, bp-sheen 2.6s var(--bp-ease-soft) 1.3s 1 both;
  background: linear-gradient(100deg, #9adff6 0%, #effcff 38%, #7fd0ee 62%, #9adff6 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
@keyframes bp-rise { from { transform: translateY(105%) rotate(2deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bp-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

.hero-logo .hl-sub { animation: bp-fade-up 1s var(--bp-ease) .55s both; }
.hero-logo .hl-actions { animation: bp-fade-up 1s var(--bp-ease) .7s both; }
@keyframes bp-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Il logo: respiro di luce dietro e inclinazione col puntatore */
.hero-mark { transition: filter .6s; }
.hero-mark .logo-depth-scene { transform: perspective(1000px) rotateX(calc(var(--ty, 0) * 1deg)) rotateY(calc(var(--tx, 0) * 1deg)); transition: transform .5s var(--bp-ease); will-change: transform; animation: bp-logo-in 1.4s var(--bp-ease) .1s both; }
.hero-mark::after {
  content: ""; position: absolute; z-index: -1; inset: 6% -18% 4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, #7fd6fb26, transparent 66%);
  animation: bp-breathe 9s ease-in-out infinite alternate;
}
@keyframes bp-logo-in { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
@keyframes bp-breathe { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

/* Indicatore di scroll */
.bp-scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 28px; height: 46px; margin-left: -14px;
  border: 1px solid #9adff666; border-radius: 16px; display: block;
  animation: bp-fade-up 1s var(--bp-ease) 1.6s both; transition: opacity .4s, transform .4s var(--bp-ease), border-color .25s;
}
.bp-scroll i { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--bp-cyan); animation: bp-wheel 2.2s var(--bp-ease-soft) 2.4s infinite; }
.bp-scroll:hover { border-color: var(--bp-cyan); }
.bp-scrolled .bp-scroll { opacity: 0; transform: translateY(10px); pointer-events: none; }
@keyframes bp-wheel { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 70% { opacity: 0; transform: translateY(16px); } 100% { opacity: 0; transform: translateY(16px); } }

/* Il contenuto dell'hero si dissolve piano mentre si scende (solo desktop) */
@media (min-width: 901px) {
  .hero-logo .hero-logo-copy { transform: translate3d(0, calc(var(--hp, 0) * -28px), 0); opacity: calc(1 - var(--hp, 0) * .7); }
  .hero-logo .hero-mark { transform: translate3d(0, calc(var(--hp, 0) * 36px), 0) scale(calc(1 - var(--hp, 0) * .05)); }
}

/* --------------------------------------------------------------------------
   5. Rivelazioni allo scroll (gestite da polish.js) — brevi e a cascata
   -------------------------------------------------------------------------- */
.bp-motion [data-reveal] {
  opacity: 0; transform: translate3d(0, 26px, 0) scale(.985);
  transition: opacity .8s var(--bp-ease), transform .9s var(--bp-ease);
  transition-delay: var(--bp-d, 0s);
}
.bp-motion [data-reveal].is-visible { opacity: 1; transform: none; }
.bp-motion [data-reveal]:focus-within { opacity: 1; transform: none; }
/* Dopo la rivelazione le card tornano reattive subito all'hover (nessun ritardo ereditato) */
.bp-motion [data-reveal].is-visible.bp-done { transition-delay: 0s; }

/* Titoli di sezione parola per parola */
.bp-split .bp-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.bp-split .bp-w > span { display: inline-block; }
.bp-motion .bp-split:not(.bp-in) .bp-w > span { transform: translateY(108%); }
.bp-motion .bp-split .bp-w > span { transition: transform .95s var(--bp-ease); transition-delay: calc(var(--i, 0) * 70ms); }
.bp-motion .bp-split.bp-in .bp-w > span { transform: none; }

/* --------------------------------------------------------------------------
   6. Card: lift + luce che segue il mouse + bordo luminoso
   -------------------------------------------------------------------------- */
.product-card, .subcategory-card, .category-tile, .story-card, .contact-option, .product-help {
  position: relative; --mx: 50%; --my: 0%;
  transition: transform .55s var(--bp-ease), border-color .35s, box-shadow .5s var(--bp-ease), background-color .3s;
}
.product-card::before, .subcategory-card::before, .story-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), #9adff61f, transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.product-card > *, .subcategory-card > *, .story-card > * { position: relative; z-index: 1; }
.story-card > .story-number { position: absolute; }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover, .subcategory-card:hover { transform: translateY(-6px); border-color: #5e9dbb; box-shadow: 0 26px 50px -26px #000, 0 0 0 1px #9adff62b; }
  .product-card:hover::before, .subcategory-card:hover::before, .story-card:hover::before { opacity: 1; }
  .story-card:hover { border-color: #5e9dbb; }
  .category-tile:hover { box-shadow: 0 20px 40px -24px #000; }
}
.product-card .product-image img, .subcategory-card .subcategory-image img { transition: transform .8s var(--bp-ease), filter .5s; }
.product-card:hover .product-image img, .subcategory-card:hover .subcategory-image img { transform: scale(1.06) translateY(-4px); }
.product-card h3 a { transition: color .2s; }
.product-card h3 a:hover { color: var(--bp-cyan); text-decoration: none; }

/* Numeri grandi delle categorie: contorno sottile invece di un grigio piatto */
.story-number { color: transparent !important; -webkit-text-stroke: 1px #9adff62e; }
.story-card img { transition: transform .9s var(--bp-ease); }
.story-card:hover img { transform: scale(1.05) translateY(-6px) rotate(-1.5deg); }
.story-progress { overflow: visible; }
.story-progress span { background: linear-gradient(90deg, #3b86ab, #9ce8fa); box-shadow: 0 0 14px #6fd2f08c; }

/* --------------------------------------------------------------------------
   7. Sezioni: separatori, timeline, contatori, marchi, mappa
   -------------------------------------------------------------------------- */
.service-story, .final-contact, .brands-band, .location-section { position: relative; }
.service-story::before, .final-contact::before, .location-section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #9adff655 50%, transparent);
}

/* Timeline assistenza: la linea si disegna, i cerchi compaiono uno dopo l'altro */
@media (min-width: 681px) {
  .bp-motion .service-timeline::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--bp-ease) .15s;
    border-top-color: transparent; background: linear-gradient(90deg, #9adff6, #335167 70%); height: 1px; border-top-width: 0; }
  .bp-motion .service-timeline.bp-in::before { transform: scaleX(1); }
}
.bp-motion .service-timeline li > span { transition: transform .7s var(--bp-ease), background-color .4s, border-color .4s, color .4s; transition-delay: calc(var(--i, 0) * 160ms + .2s); transform: scale(.6); }
.bp-motion .service-timeline.bp-in li > span { transform: none; }
.service-timeline li:hover > span { background: var(--bp-cyan); border-color: var(--bp-cyan); color: var(--bp-ink); }
.service-timeline li > span { transition-property: transform, background-color, border-color, color; }

/* Contatori */
.real-counters strong { font-variant-numeric: tabular-nums; background: linear-gradient(120deg, #fff, #9adff6); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* Marchi: appaiono a cascata, hover con sottolineatura che scorre */
.brand-track span { position: relative; transition: color .25s, transform .4s var(--bp-ease); }
.brand-track span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--bp-cyan); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--bp-ease); }
.brand-track span:hover { color: #e4f8ff; transform: translateY(-2px); }
.brand-track span:hover::after { transform: scaleX(1); }

/* Mappa: respiro luminoso */
.geographic-map { position: relative; }
.geographic-map img { transition: transform 1.2s var(--bp-ease), filter .6s; }
.geographic-map:hover img { transform: scale(1.025); filter: drop-shadow(0 0 28px #6fd2f033); }

/* Mail principale */
.final-contact-grid a[href^=mailto] { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .45s var(--bp-ease), color .2s; padding-bottom: 3px; }
.final-contact-grid a[href^=mailto]:hover { color: #fff; background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   8. Catalogo e pagina prodotto
   -------------------------------------------------------------------------- */
.catalog-tree details a, .catalog-tree summary { transition: background-color .25s, color .25s, padding-left .3s var(--bp-ease); }
.catalog-tree details a:hover { background: #9adff61a; color: #fff; padding-left: 16px; }
.catalog-tree summary:hover { color: #fff; }
.breadcrumbs a { transition: color .2s; }
.breadcrumbs a:hover { color: #fff; text-decoration: none; }
.feature-list li { transition: padding-left .35s var(--bp-ease), color .25s, background-color .25s; }
.feature-list li:hover { padding-left: 28px; color: #fff; }
.feature-list li::before { transition: transform .35s var(--bp-ease); }
.feature-list li:hover::before { transform: rotate(90deg); }
.product-specs tr { transition: background-color .25s; }
.product-specs tr:hover { background: #9adff60f; }
.product-tabs a { position: relative; transition: color .2s; }
.product-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bp-cyan); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--bp-ease); }
.product-tabs a:hover { color: #fff; }
.product-tabs a:hover::after { transform: scaleX(1); }
.gallery-thumbs a { transition: border-color .25s, background-color .25s, transform .35s var(--bp-ease); }
.gallery-thumbs a:hover { border-color: var(--bp-cyan); transform: translateY(-3px); }
.gallery-main img, .detail-image img { transition: transform .9s var(--bp-ease); }
.gallery-main:hover img { transform: scale(1.03); }
.zoom-label { transition: background-color .25s, color .25s, border-color .25s; }
.gallery-main:hover .zoom-label { background: var(--bp-cyan); color: var(--bp-ink); border-color: var(--bp-cyan); }
.detail-image img { animation: bp-float 7s ease-in-out infinite alternate; }
@keyframes bp-float { from { translate: 0 0; } to { translate: 0 -7px; } }
.search-controls input { transition: border-color .25s, box-shadow .25s, background-color .25s; }
.search-controls input:focus { border-color: var(--bp-cyan); box-shadow: 0 0 0 4px #9adff626; outline: none; }

/* --------------------------------------------------------------------------
   9. Modulo e finestre
   -------------------------------------------------------------------------- */
.request-dialog[open], .image-dialog[open] { animation: bp-dialog .5s var(--bp-ease) both; }
.request-dialog[open]::backdrop, .image-dialog[open]::backdrop { animation: bp-fade .4s ease both; }
@keyframes bp-dialog { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bp-fade { from { opacity: 0; } to { opacity: 1; } }
.request-form input:not([type=checkbox]), .request-form select, .request-form textarea { transition: border-color .25s, box-shadow .25s, background-color .25s; }
.request-form input:not([type=checkbox]):hover, .request-form select:hover, .request-form textarea:hover { border-color: #5b819a; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { box-shadow: 0 0 0 4px #9adff626; outline: none; border-color: var(--bp-cyan); }
.request-dialog .dialog-close { transition: transform .4s var(--bp-ease), background-color .25s, color .25s; }
.request-dialog .dialog-close:hover { transform: rotate(90deg); background: var(--bp-cyan); color: var(--bp-ink); }
.request-status[data-state=success], .request-status[data-state=error] { animation: bp-fade-up .5s var(--bp-ease) both; }
.request-status[data-state=success]::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -.2em; background: var(--bp-cyan);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Footer e link legali */
.footer-links a, .footer a { position: relative; transition: color .2s; }
.footer-links a:hover, .footer a:hover { color: #fff; text-decoration: none; }
.footer-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--bp-cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--bp-ease); }
.footer-links a:hover::after { transform: scaleX(1); }

/* Barra azioni mobile: feedback al tocco */
.mobile-actions a { transition: background-color .2s, color .2s; }
.mobile-actions a:active { background: var(--bp-cyan); color: var(--bp-ink); }

/* --------------------------------------------------------------------------
   10. Mobile: effetti più sobri, nessun effetto da mouse
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-scan::before, .hero-scan::after { animation: none; }
  .hero-logo .hero-stage::after { display: none; }
  .hero-mark .logo-depth-scene { transform: none; }
  .bp-scroll { display: none; }
}
@media (max-width: 680px) {
  .bp-motion [data-reveal] { transform: translate3d(0, 16px, 0); transition-duration: .6s; }
  .bp-eyebrow { font-size: 11px !important; margin-bottom: 16px !important; }
  .detail-image img { animation: none; }
  .hero-logo .hl-actions .button { width: 100%; }
}
@media (hover: none) {
  .button:hover { transform: none; }
  .product-card:hover, .subcategory-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   11. Movimento ridotto: niente animazioni, tutto subito visibile
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-scan::before, .hero-scan::after, .hero-mark::after, .bp-pulse::after, .bp-scroll i,
  .detail-image img, .hero-logo h1 .hl-word > span, .hero-mark .logo-depth-scene,
  .bp-eyebrow, .hero-logo .hl-sub, .hero-logo .hl-actions, .bp-scroll { animation: none !important; }
  .hero-logo h1 .hl-word:nth-child(2) > span { background-position: 0 0; }
  .bp-motion [data-reveal], .bp-split .bp-w > span, .service-timeline::before, .service-timeline li > span {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .button::before { display: none; }
  .button, .product-card, .subcategory-card, .story-card, .text-link::after, .brand-track span { transition: none !important; }
  .request-dialog[open], .image-dialog[open], .products-menu[open] .mega-menu { animation: none; }
  .hero-logo .hero-logo-copy, .hero-logo .hero-mark { transform: none !important; opacity: 1 !important; }
}

/* ==========================================================================
   12. MOBILE (touch) — esperienza dedicata, sempre sobria e rapida
   ========================================================================== */
@media (max-width: 900px) {
  /* Hero: il logo "respira" e reagisce al tocco con un'onda di luce */
  .hero-logo .hero-stage { --tx: 50%; --ty: 40%; }
  .hero-logo .hero-stage::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(circle at var(--tx) var(--ty), #7fd6fb40, transparent 42%);
    opacity: 0; transform: scale(.6); transform-origin: var(--tx) var(--ty);
  }
  .hero-logo.bp-tap .hero-stage::before { animation: bp-tap 1.1s var(--bp-ease) both; }
  @keyframes bp-tap { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
  .hero-mark { animation: bp-logo-float 6s ease-in-out infinite alternate; }
  @keyframes bp-logo-float { from { translate: 0 0; } to { translate: 0 -6px; } }
  .hero-mark::after { inset: 0 -30% -4%; }
  .hero-logo .hero-mark { transform: translate3d(0, calc(var(--hp, 0) * 24px), 0); }
}

@media (max-width: 680px) {
  /* Menu a schermo intero: voci che entrano a cascata */
  .nav.is-open > a, .nav.is-open > details { animation: bp-nav-in .55s var(--bp-ease) both; }
  .nav.is-open > :nth-child(1) { animation-delay: .05s; }
  .nav.is-open > :nth-child(2) { animation-delay: .11s; }
  .nav.is-open > :nth-child(3) { animation-delay: .17s; }
  .nav.is-open > :nth-child(4) { animation-delay: .23s; }
  @keyframes bp-nav-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .menu-toggle { transition: background-color .25s, color .25s, transform .2s; }
  .menu-toggle:active { transform: scale(.94); }
  .nav > a:not(.button) { border-bottom: 1px solid #ffffff12; }

  /* Carosello categorie: scheda attiva in evidenza, le altre più quiete */
  .story-window { scroll-snap-type: x mandatory; scroll-padding-inline: 22px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
  .story-window::-webkit-scrollbar { display: none; }
  .story-card { scroll-snap-align: center; transition: transform .5s var(--bp-ease), opacity .5s, border-color .4s; }
  .bp-carousel .story-card:not(.is-active) { transform: scale(.94); opacity: .62; }
  .bp-carousel .story-card.is-active { border-color: #5e9dbb; }
  .bp-carousel .story-card.is-active img { animation: bp-card-img .9s var(--bp-ease) both; }
  @keyframes bp-card-img { from { transform: translateY(14px) scale(.96); } to { transform: none; } }
  .story-card:active { transform: scale(.98); }

  /* Indicatori del carosello (creati da polish.js) */
  .bp-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; }
  .bp-dots button { width: 8px; height: 8px; min-width: 8px; padding: 0; border: 0; border-radius: 8px; background: #3a5a72; transition: width .4s var(--bp-ease), background-color .3s; position: relative; }
  .bp-dots button::before { content: ""; position: absolute; inset: -18px -8px; } /* area di tocco ampia */
  .bp-dots button[aria-current="true"] { width: 26px; background: var(--bp-cyan); }
  .story-instruction { display: inline-flex; align-items: center; gap: 10px; }
  .story-instruction::after { content: ""; width: 22px; height: 22px; background: var(--bp-cyan); -webkit-mask: var(--bp-arrow-mask) center / contain no-repeat; mask: var(--bp-arrow-mask) center / contain no-repeat; transform: rotate(45deg); animation: bp-nudge 1.8s var(--bp-ease) 1s 3; }
  @keyframes bp-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 8px 0; } }

  /* Barra Preventivo/Assistenza: entra dopo l'hero, esce vicino al footer e durante il modulo */
  .mobile-actions { transition: transform .5s var(--bp-ease), opacity .35s; }
  .bp-motion:not(.bp-scrolled) .mobile-actions { transform: translateY(140%); opacity: 0; }
  .bp-motion.bp-footer .mobile-actions, .bp-motion.bp-dialog .mobile-actions { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .mobile-actions a:active { transform: scale(.97); }

  /* Feedback al tocco su card e link */
  .product-card:active, .subcategory-card:active, .category-tile:active { transform: scale(.985); }
  .text-link:active::after { background-color: var(--bp-cyan); background-image: var(--bp-arrow-dark); }

  /* Titoli e testi: ritmo più arioso e leggibile con una mano */
  .hero-logo .hl-actions .button { min-height: 54px; font-size: 16px; }
  .hero-logo .hl-sub { max-width: 32ch; }
  .service-timeline li > span { box-shadow: 0 0 0 6px #0b1622; }
  .final-contact-grid a[href^=mailto] { font-size: 21px; word-break: break-word; }
  .real-counters { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark, .story-instruction::after, .nav.is-open > a, .nav.is-open > details,
  .bp-carousel .story-card.is-active img { animation: none !important; }
  .bp-carousel .story-card:not(.is-active) { transform: none; opacity: 1; }
  .hero-logo.bp-tap .hero-stage::before { animation: none; }
  .bp-motion:not(.bp-scrolled) .mobile-actions { transform: none; opacity: 1; }
}


/* ==========================================================================
   13. Toelettature (Aries Pet), pausa marchi, rifiniture
   ========================================================================== */
/* Nessun pulsante di pausa sui marchi (se una vecchia versione lo generasse) */
.brand-pause, .brands-band [aria-label*="ausa"], .brands-band button { display: none !important; }

/* Etichette delle regioni */
.region-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; padding: 0; }
.region-chips li { padding: 8px 16px; border: 1px solid #9adff64d; border-radius: 999px; color: #dff5fd; font-size: 14px; background: #9adff60d;
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--bp-ease); }
.region-chips li:hover { background: var(--bp-cyan); color: var(--bp-ink); border-color: var(--bp-cyan); transform: translateY(-2px); }

/* Sezione e pagina Toelettature */
.groom-grid { align-items: center; }
.groom-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.triveneto-map img { filter: drop-shadow(0 0 24px #6fd2f01f); }
.groom-why-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.groom-why-list li { padding-top: 22px; border-top: 1px solid #9adff640; position: relative; }
.groom-why-list li::before { content: ""; position: absolute; left: 0; top: -1px; width: 38px; height: 2px; background: var(--bp-cyan); transition: width .6s var(--bp-ease); }
.groom-why-list li:hover::before { width: 100%; }
.groom-why-list strong { display: block; font-size: 19px; color: #fff; margin-bottom: 10px; font-weight: 600; letter-spacing: -.01em; }
.groom-why-list p { margin: 0; color: #a8bfcc; line-height: 1.6; }
.groom-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.groom-card { position: relative; padding: 30px 28px 32px; border: 1px solid var(--bp-line); border-radius: 22px; background: linear-gradient(160deg, #11202e, #0d1823);
  transition: transform .55s var(--bp-ease), border-color .35s, box-shadow .5s var(--bp-ease); }
.groom-card h3 { margin: 22px 0 10px; font-size: 21px; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.groom-card p { margin: 0; color: #a8bfcc; line-height: 1.6; }
.groom-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--bp-cyan); background: #9adff614; border: 1px solid #9adff633;
  transition: background-color .3s, color .3s, transform .5s var(--bp-ease); }
.groom-icon svg { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) {
  .groom-card:hover { transform: translateY(-6px); border-color: #5e9dbb; box-shadow: 0 26px 50px -26px #000; }
  .groom-card:hover .groom-icon { background: var(--bp-cyan); color: var(--bp-ink); transform: rotate(-6deg) scale(1.06); }
}
.groom-academy-inner, .groom-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 44px 48px; border: 1px solid var(--bp-line); border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, #17354a, #0d1823 62%); }
.groom-academy-inner h2, .groom-cta-inner h2 { margin: 12px 0 14px; }
.groom-academy-inner p, .groom-cta-inner p { margin: 0; max-width: 56ch; color: #a8bfcc; line-height: 1.65; }
.groom-note { margin-top: 22px; font-size: 13px; color: #7f97a6; }
.groom-home .territory-grid, .groom-home.section { position: relative; }
.groom-home::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #9adff655 50%, transparent); pointer-events: none; }
@media (max-width: 980px) {
  .groom-why-list { grid-template-columns: repeat(2, 1fr); }
  .groom-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .groom-why-list, .groom-cards { grid-template-columns: 1fr; gap: 18px; }
  .groom-academy-inner, .groom-cta-inner { flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 24px; border-radius: 22px; }
  .groom-actions .button { width: 100%; }
  .region-chips { margin: 20px 0 24px; }
  .nav.is-open > :nth-child(5) { animation-delay: .29s; }
}
@media (prefers-reduced-motion: reduce) { .groom-card, .groom-icon, .region-chips li, .groom-why-list li::before { transition: none !important; } }

/* Titoli delle sezioni Toelettature: stessa scala del resto del sito */
.groom-home h2, .groom-intro h2, .groom-academy h2, .groom-cta h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.05em; line-height: 1.08; }
.groom-why h2, .groom-range h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.045em; line-height: 1.1; }
.groom-academy h2, .groom-cta h2 { font-size: clamp(28px, 3vw, 40px); }
@media (max-width: 680px) { .groom-home h2, .groom-intro h2 { font-size: 34px; } .groom-why h2, .groom-range h2 { font-size: 30px; } }

/* 0.15.3 — accenti fluorescenti nei titoli della home */
.neon-dual,.hero-logo #hero-title .hl-word>.neon-dual{color:#62f4ff;-webkit-text-fill-color:currentColor;background:none;filter:drop-shadow(0 0 9px #62f4ff26)}
.neon-green{color:#85ff43;-webkit-text-fill-color:currentColor;background:none;filter:drop-shadow(0 0 8px #85ff4326)}
.groom-home p .neon-green{font-weight:600}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 .neon-dual,.hero-logo #hero-title .hl-word>.neon-dual{background-image:linear-gradient(110deg,#52f5ff 0%,#bdabff 52%,#ff85ed 100%);background-size:100% 100%;background-repeat:no-repeat;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
 .neon-green{background-image:linear-gradient(110deg,#d7ff62 0%,#85ff43 48%,#39efb2 100%);background-size:100% 100%;background-repeat:no-repeat;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
@media(forced-colors:active){.neon-dual,.neon-green,.hero-logo #hero-title .hl-word>.neon-dual{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText;filter:none}}

/* 0.15.4 — spazio per discendenti e alone nel titolo sfumato. */
.hero-logo #hero-title .hl-word{line-height:1.12;padding:.04em .06em .28em;margin:-.04em -.06em -.28em}
.hero-logo #hero-title .hl-word>.neon-dual{line-height:1.12;padding-bottom:.16em;margin-bottom:-.16em}

/* 0.15.5 — marchio originale Aries nella pagina Toelettature */
.groom-intro p .neon-green{font-weight:600}.groom-cta .eyebrow .neon-green{font:inherit;letter-spacing:inherit}
/* 0.15.6 — testo con gradiente solidale alla rivelazione del titolo. */
.bp-split .bp-w-accent .neon-green,.bp-split .bp-w-accent .neon-dual{display:inline-block;vertical-align:baseline;line-height:inherit}

/* 0.15.7 — contatti diretti dedicati ad Aries Pet */
.groom-direct-contacts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;margin:26px 0 0;font-style:normal}
.groom-direct-contacts a{display:inline-flex;align-items:center;min-height:48px;font-size:clamp(18px,2vw,23px);line-height:1.4;font-weight:500;letter-spacing:-.02em;color:#c5f8b3;text-decoration:underline;text-decoration-color:#6b9c7966;text-underline-offset:6px;overflow-wrap:anywhere}
.groom-direct-contacts a:hover{color:#fff;text-decoration-color:#c5f8b3}.groom-cta .groom-direct-contacts{margin:0;flex-direction:column;align-items:flex-start;gap:4px}.groom-cta .groom-direct-contacts a{font-size:22px}
@media(max-width:680px){.groom-direct-contacts{flex-direction:column;align-items:flex-start;gap:4px;margin-top:20px}.groom-direct-contacts a{font-size:20px}.groom-cta .groom-direct-contacts a{font-size:20px}}

/* 0.15.10 — collegamenti Home e Contatti, con spazio per il menu ampliato. */
#dove-siamo{scroll-margin-top:96px}
@media(min-width:681px) and (max-width:980px){.header-inner{gap:14px}.header .nav{gap:12px;font-size:12px}.header .nav .button{padding:10px 14px}}
@media(max-width:680px){#dove-siamo{scroll-margin-top:82px}.nav.is-open>:nth-child(5){animation-delay:.29s}.nav.is-open>:nth-child(6){animation-delay:.35s}.nav.is-open>:nth-child(7){animation-delay:.41s}}

/* ==========================================================================
   14. Radiologia dentale (guida nella famiglia "Radiologia dentale")
   ========================================================================== */
.dental-guide { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--bp-line); position: relative; }
.dental-guide::before { content: ""; position: absolute; left: 0; top: -1px; width: 120px; height: 2px; background: var(--bp-cyan); }
.dental-head { max-width: 760px; }
.dental-head h2 { margin: 12px 0 16px; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.045em; line-height: 1.08; }
.dental-head p { margin: 0; color: #a8bfcc; line-height: 1.65; font-size: 17px; }
.dental-cards { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dental-card { padding: 26px 24px 28px; border: 1px solid var(--bp-line); border-radius: 20px; background: linear-gradient(160deg, #11202e, #0d1823);
  transition: transform .55s var(--bp-ease), border-color .35s, box-shadow .5s var(--bp-ease); }
.dental-card h3 { margin: 0 0 10px; font-size: 19px; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.dental-card p { margin: 0; color: #a8bfcc; line-height: 1.6; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .dental-card:hover { transform: translateY(-5px); border-color: #5e9dbb; box-shadow: 0 24px 46px -26px #000; } }
.dental-split { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.dental-split h3, .dental-compare h3 { margin: 0 0 18px; font-size: 22px; color: #fff; font-weight: 600; letter-spacing: -.02em; }
.dental-list { margin: 0; display: grid; gap: 0; }
.dental-list > div { padding: 16px 0; border-top: 1px solid #9adff633; }
.dental-list dt { color: var(--bp-cyan); font-weight: 600; margin-bottom: 6px; }
.dental-list dd { margin: 0; color: #a8bfcc; line-height: 1.6; font-size: 15px; }
.dental-compare { margin-top: 48px; }
.dental-table-wrap { overflow-x: auto; border: 1px solid var(--bp-line); border-radius: 18px; background: #0d1823; -webkit-overflow-scrolling: touch; }
.dental-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.dental-table th, .dental-table td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid #284053; color: #b5cad6; line-height: 1.45; }
.dental-table thead th { color: var(--bp-cyan); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: #11202e; white-space: nowrap; }
.dental-table tbody th { color: #fff; font-weight: 600; min-width: 170px; }
.dental-table tbody tr:last-child th, .dental-table tbody tr:last-child td { border-bottom: 0; }
.dental-table tbody tr { transition: background-color .25s; }
.dental-table tbody tr:hover { background: #9adff60f; }
@media (max-width: 980px) { .dental-cards { grid-template-columns: 1fr; } .dental-split { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 680px) { .dental-guide { margin-top: 52px; padding-top: 40px; } .dental-head p { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .dental-card, .dental-table tbody tr { transition: none !important; } }

/* Immagini dei cataloghi accanto ai contenuti Aries */
.groom-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
}
.groom-editorial--reverse { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
.groom-editorial--reverse .groom-scene { grid-area: 1 / 1; }
.groom-range .groom-editorial { padding-block: clamp(22px, 4vw, 56px); }
.groom-range .groom-editorial + .groom-editorial { border-top: 1px solid var(--bp-line); }
.groom-range-copy h3 {
  margin: 0 0 22px;
  color: #f3f8fb;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.035em;
}
.groom-topics { margin: 0; }
.groom-topics > div + div { margin-top: 16px; }
.groom-topics dt { color: #d4f9c5; font-weight: 600; }
.groom-topics dd { margin: 4px 0 0; color: #afc4d0; line-height: 1.6; }
.groom-scene {
  --aries-glow: #e9b761;
  margin: 0;
  min-width: 0;
  isolation: isolate;
  text-align: center;
}
.groom-scene--velvet { --aries-glow: #f55b82; }
.groom-scene--table { --aries-glow: #8eedc4; }
.groom-scene img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-inline: auto;
  border-radius: 18px;
  mask-image: radial-gradient(ellipse 69% 68% at 50% 48%, #000 50%, transparent 99%);
}
.groom-scene--table img {
  width: min(100%, 380px);
  background: radial-gradient(ellipse at center, #31765d80, transparent 68%);
  mask-image: none;
}
.groom-scene figcaption {
  margin-top: 2px;
  color: var(--aries-glow);
  font-size: .9rem;
}
.groom-cta-territory > div { flex: 1; }
.groom-cta-territory .geographic-map { width: min(100%, 300px); margin: 0; }
@media (max-width: 760px) {
  .groom-editorial, .groom-editorial--reverse { grid-template-columns: minmax(0, 1fr); }
  .groom-editorial--reverse .groom-scene { grid-area: auto; }
  .groom-scene img { width: min(100%, 330px); }
  .groom-cta-territory { flex-direction: column; align-items: flex-start; }
}

/* Fotografie Aries nella home e nella pagina Toelettature */
.groom-why-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
  gap: clamp(16px, 4vw, 56px);
  align-items: center;
}
.groom-why-feature .compact-heading { margin-block: 0; }
.groom-why-portrait {
  background: radial-gradient(ellipse at 55% 48%, #263e4c, transparent 68%);
}
.groom-why-portrait img {
  display: block;
  width: min(100%, 304px);
  height: auto;
  margin-inline: auto;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 75% 64% at 51% 49%, #000 54%, transparent 98%);
  mask-image: radial-gradient(ellipse 75% 64% at 51% 49%, #000 54%, transparent 98%);
}
.groom-bath-panorama {
  min-width: 0;
  margin: 0;
  background: radial-gradient(ellipse at center, #75544448, transparent 72%);
}
.groom-bath-panorama img {
  display: block;
  width: 100%;
  height: auto;
  /* 0.17.15: sfumatura che arriva a zero prima dei bordi della foto, con discesa graduale (niente bordo dritto in alto) */
  -webkit-mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 0%, #000 63%, rgba(0,0,0,.84) 72%, rgba(0,0,0,.55) 82%, rgba(0,0,0,.24) 91%, rgba(0,0,0,.06) 97%, transparent 100%);
  mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 0%, #000 63%, rgba(0,0,0,.84) 72%, rgba(0,0,0,.55) 82%, rgba(0,0,0,.24) 91%, rgba(0,0,0,.06) 97%, transparent 100%);
}
@media (max-width: 760px) {
  .groom-why-feature { grid-template-columns: minmax(0, 1fr); }
  .groom-why-portrait img { width: min(72%, 250px); }
}
/* 0.17.15 · Logo Aries nel titolo di Toelettature: ARIES compare con una pennellata, poi la foglia entra in volo da sinistra, si posa sulla A e continua a muoversi libera come al vento */
.aries-title-logo{display:inline-block;white-space:nowrap;vertical-align:baseline}
.aries-title-svg{display:inline-block;height:1.1em;width:auto;aspect-ratio:244/48;vertical-align:-.11em;margin-left:-.02em;overflow:visible;color:#f4f9fc}
.aries-title-svg .aries-brush-rect{animation:aries-brush 1.9s cubic-bezier(.45,.05,.25,1) .35s backwards}
@keyframes aries-brush{from{transform:translateX(-300px)}to{transform:translateX(0)}}
/* foglia: il gruppo .aries-leaf-fly porta il volo e la deriva; la foglia ruota e, con scale, simula la rotazione sugli assi orizzontale e verticale (scorcio e retro più scuro) */
.aries-title-svg .aries-leaf-fly,.aries-title-svg .aries-leaf{transform-box:fill-box;transform-origin:50% 50%}
.aries-title-svg .aries-leaf-fly{animation:aries-fly-x 3.4s cubic-bezier(.25,.55,.3,1) 1.6s backwards,aries-fly-y 3.4s linear 1.6s backwards,aries-drift 5.3s ease-in-out 5s infinite}
.aries-title-svg .aries-leaf{animation:aries-fly-r 3.4s cubic-bezier(.2,.55,.3,1) 1.6s backwards,aries-fly-3d 3.4s linear 1.6s backwards,aries-sway 7.1s ease-in-out 5s infinite,aries-tilt 4.6s ease-in-out 5s infinite}
@keyframes aries-fly-x{0%{translate:-640px 0;opacity:0}12%{opacity:1}100%{translate:0 0;opacity:1}}
@keyframes aries-fly-y{0%{transform:translateY(-26px);animation-timing-function:ease-in-out}22%{transform:translateY(10px);animation-timing-function:ease-in-out}44%{transform:translateY(-16px);animation-timing-function:ease-in-out}66%{transform:translateY(6px);animation-timing-function:ease-in-out}85%{transform:translateY(-4px);animation-timing-function:ease-in-out}100%{transform:translateY(0)}}
@keyframes aries-fly-r{0%{rotate:-320deg}100%{rotate:0deg}}
/* in volo la foglia si gira più volte: scala negativa = si vede il retro, più scuro; vicino a zero = vista di taglio, più chiara */
@keyframes aries-fly-3d{
0%{scale:.6 1;fill:#94BEA7;animation-timing-function:ease-in-out}
12%{scale:-.9 .9;fill:#6E9A84;animation-timing-function:ease-in-out}
24%{scale:.25 1;fill:#B9DAC8;animation-timing-function:ease-in-out}
36%{scale:1 -.55;fill:#6E9A84;animation-timing-function:ease-in-out}
48%{scale:.85 .3;fill:#B9DAC8;animation-timing-function:ease-in-out}
60%{scale:-.6 1;fill:#6E9A84;animation-timing-function:ease-in-out}
72%{scale:.35 .9;fill:#B9DAC8;animation-timing-function:ease-in-out}
84%{scale:.95 .7;fill:#A3C9B4;animation-timing-function:ease-in-out}
93%{scale:.85 1;fill:#9CC4AE;animation-timing-function:ease-in-out}
100%{scale:1 1;fill:#94BEA7}}
/* sulla A: deriva, rotazione e scorcio su tre periodi diversi, così il perno non resta mai fisso */
@keyframes aries-drift{0%,100%{translate:0 0}20%{translate:1.2px -1.6px}45%{translate:-1px .6px}62%{translate:2px -2.6px}80%{translate:-.6px 1px}}
@keyframes aries-sway{0%,100%{rotate:0deg}12%{rotate:-6deg}26%{rotate:4deg}40%{rotate:-3deg}52%{rotate:-14deg}60%{rotate:-8deg}70%{rotate:6deg}85%{rotate:-3deg}}
@keyframes aries-tilt{0%,100%{scale:1 1;fill:#94BEA7}22%{scale:.62 .97;fill:#A9CDB9}45%{scale:.92 .8;fill:#8BB59F}68%{scale:.74 1;fill:#A3C9B4}85%{scale:1 .9;fill:#90BAA3}}
/* foglie di passaggio (JS): strato dietro al testo dell'intestazione; con JS attivo la foglia sulla A segue lo stesso vento */
.aries-wind-host{position:relative;overflow:hidden}
.aries-wind-host>.wrap{position:relative;z-index:1}
.aries-wind-layer{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:visible}
.aries-title-svg.aries-wind-js .aries-leaf-fly,.aries-title-svg.aries-wind-js .aries-leaf{animation:none}
/* cappello di Natale sulla S (8 dicembre - 7 gennaio): la classe aries-xmas la mette il JS in base alla data */
.aries-title-svg .aries-hat{display:none;transform-box:fill-box;transform-origin:15% 100%}
.aries-title-svg.aries-xmas .aries-hat{display:inline;animation:aries-hat-drop 1.1s cubic-bezier(.3,1.5,.5,1) 2.4s backwards}
@keyframes aries-hat-drop{from{transform:translateY(-26px) rotate(-14deg);opacity:0}60%{opacity:1}to{transform:none;opacity:1}}
@media(min-width:900px){.catalog-intro h1.aries-title{max-width:none;white-space:nowrap}}
@media (prefers-reduced-motion:reduce){.aries-title-svg .aries-brush-rect,.aries-title-svg .aries-leaf-fly,.aries-title-svg .aries-leaf,.aries-title-svg .aries-hat{animation:none}}
/* 0.17.18: conferma di invio del modulo ben visibile, in un riquadro */
.request-status[data-state=success]{display:block;margin-top:18px;padding:16px 18px;border:1px solid rgba(124,214,240,.45);border-radius:14px;background:rgba(124,214,240,.1);color:#e6f8ff;font-size:16px;line-height:1.55}
.request-status[data-state=success]::before{width:1.25em;height:1.25em}
/* 0.17.18: barra contatti mobile con un solo link (Toelettature: solo email) a tutta larghezza */
.mobile-actions>a:only-child{grid-column:1/-1}
/* 0.17.19: modulo con telefono obbligatorio e allegato facoltativo */
.request-form .form-wide{grid-column:1/-1}
.request-form .attachment-label{display:block;margin-top:20px}
.request-form input[type=file]{padding:11px 12px;font-size:15px;cursor:pointer}
.request-form input[type=file]::file-selector-button{margin-right:14px;padding:8px 14px;border:1px solid #5b819a;border-radius:8px;background:#12283a;color:#edf6fc;font:600 14px/1.2 Arial,Helvetica,sans-serif;cursor:pointer}
@media(max-width:680px){.request-form .form-wide{grid-column:auto}}
/* 0.17.20: carosello categorie su telefono, la scheda successiva resta tagliata sul bordo destro per invitare a scorrere */
@media (max-width: 680px) {
  .story-window { scroll-padding-inline: 24px; }
  .story-track { gap: 14px; }
  .story-card { width: calc(100vw - 96px); scroll-snap-align: start; }
  .bp-carousel .story-card:not(.is-active) { transform-origin: left center; }
}
/* 0.17.20: allo scorrimento il blocco dell'hero (logo e Imaging first) si rimpicciolisce leggermente */
@media (min-width: 901px) {
  .hero-logo .hero-logo-grid { transform: scale(calc(1 - var(--hp, 0) * .08)); transform-origin: 50% 35%; }
}
/* 0.17.20: logo grande su telefono, con la stessa luce del desktop più breve, che si rimpicciolisce scorrendo */
@media (max-width: 680px) {
  .hero-logo .logo-depth-scene { height: min(50svh, 116vw); width: calc(min(50svh, 116vw) * .605634); margin: 4px auto 0; }
  .hero-mark .logo-depth-scene { animation-duration: .9s; }
  .hero-logo .hero-mark { transform: translate3d(0, calc(var(--hp, 0) * 40px), 0) scale(calc(1 - var(--hp, 0) * .45)); transform-origin: 50% 100%; }
}
/* 0.17.21: su telefono niente «Bioicon · Veterinaria» sopra il titolo; rimpicciolimento del logo fluido */
@media (max-width: 680px) {
  .hero-logo .bp-eyebrow { display: none !important; }
  .hero-logo #hero-title { margin-top: 12px; }
  .hero-logo .hero-mark { transform: none; transform-origin: 50% 100%; will-change: transform; }
  .hero-logo .hero-mark svg { filter: none; }
}
/* 0.17.23: su telefono il logo segue di nuovo lo scorrimento, in modo leggero: solo transform sul logo
   (scritto da polish.js), niente transizioni, niente animazioni continue né prospettiva 3D sullo stesso elemento */
@media (max-width: 680px) {
  .hero-logo .hero-mark { transform: none; transition: none; animation: none; transform-origin: 50% 100%; will-change: transform; perspective: none; backface-visibility: hidden; }
  .hero-logo .hero-mark::after { animation: none; }
  .hero-logo .logo-depth-scene { perspective: none; transform-style: flat; }
}
/* 0.17.24: partnership Alpha-Vet nella pagina Azienda e riga nel footer */
.partner-alphavet{margin-top:44px;padding-top:36px;border-top:1px solid rgba(165,230,255,.14)}
.partner-alphavet h3{margin-top:0}
.partner-alphavet .partner-logo{display:inline-block;margin:6px 0 18px}
.partner-alphavet .partner-logo img{display:block;width:220px;height:auto}
.partner-alphavet .text-link{color:#a5e6ff}
.footer-partner{margin-top:6px;opacity:.85}
.footer-partner a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(165,230,255,.45)}
.footer-partner a:hover{color:#a5e6ff}
@media (max-width:680px){.partner-alphavet{margin-top:34px;padding-top:28px}.partner-alphavet .partner-logo img{width:180px}}
/* 0.17.24: fascia partnership Alpha-Vet in home, prima del contatto finale */
.partner-band{padding-top:72px;padding-bottom:72px;border-top:1px solid rgba(165,230,255,.10)}
.partner-band-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:64px;align-items:center}
.partner-band-logo img{display:block;width:100%;height:auto}
.partner-band h2{font-size:34px;line-height:1.15;margin:10px 0 14px}
.partner-band p{color:#b3c6d7;max-width:640px;margin-bottom:18px}
@media (max-width:680px){.partner-band{padding-top:52px;padding-bottom:52px}.partner-band-grid{grid-template-columns:1fr;gap:26px}.partner-band-logo img{width:190px}.partner-band h2{font-size:27px}}
