/* T91 storefront theme, proposal B "La Firma". Black page, off-white type, light plates for
   products and reading panels; the authentic brush T91 mark (sprite #t91-mark) appears as a
   large graphic in a few places, marker strokes stay as small accents. Page-specific rules live
   in pages/<name>/css. */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Black and off-white, plus one burnt orange used sparingly: the marker hand, discounts and
       the hero indicator. Token names are kept from the first pass: --holo is the page ground,
       --ink the foreground. */
    --holo: #0c0c0c;
    --holo-soft: #262626;
    --ink: #f2f0ec;
    --ink-2: #d9d6d1;
    --ink-line: rgba(242, 240, 236, .2);
    --paper: #f2f0ec;
    --paper-2: #e2dfda;
    --on-ink: #0c0c0c;
    --on-ink-muted: #5c5955;
    --plate: #e9e7e3;
    --orange: #c8693a;
    --orange-deep: #9c4420;
    --accent: var(--orange);

    --gutter: clamp(16px, 4vw, 56px);
    --max: 1480px;
    --hdr: 72px;
    --util: 39px;
    /* Visible header height for sticky bars below it: strip plus bar, or the bar alone when tucked. */
    --hdr-top: calc(var(--hdr) + var(--util));
    --sec: clamp(72px, 9vw, 136px);

    --f: "Bricolage Grotesque", system-ui, sans-serif;
    --fd: "Anybody", "Bricolage Grotesque", system-ui, sans-serif;
    --fd-var: "wdth" 72;
    --hand: "Permanent Marker", "Bricolage Grotesque", cursive;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --draw: 900ms;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hdr-top) + 16px);
    scrollbar-color: var(--ink) var(--holo);
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--f);
    font-size: 1.0625rem;
    font-variation-settings: "opsz" 14;
    line-height: 1.55;
    color: var(--ink);
    background: var(--holo);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

sup {
    font-size: .6em;
    color: inherit;
}

::selection {
    background: var(--accent);
    color: #0c0c0c;
}

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

a {
    color: inherit;
    text-decoration-thickness: 2px;
    text-underline-offset: .22em;
}

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

input,
textarea {
    caret-color: var(--accent);
}

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

.on-ink :focus-visible,
.ftr :focus-visible {
    outline-color: var(--holo);
}

.ico {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

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

/* Light context: anything on a light plate flips the tokens back, so var(--ink) reads dark. */
.light,
.sec--ink,
.on-ink {
    --ink: #0c0c0c;
    --ink-2: #2a2a2a;
    --ink-line: rgba(12, 12, 12, .16);
    --on-ink: #f2f0ec;
    --on-ink-muted: #5c5955;
    --holo: #0c0c0c;
    --holo-soft: #262626;
    --accent: var(--orange-deep);
    color: var(--ink);
}

/* ---------- Type ---------- */

.d,
h1,
h2,
h3 {
    margin: 0;
    font-weight: 800;
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    line-height: .88;
    letter-spacing: 0;
    text-wrap: balance;
}

h1,
.d {
    font-size: clamp(3.4rem, 9.5vw, 6rem);
}

h2 {
    font-size: clamp(2.8rem, 7.4vw, 5.6rem);
}

h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: .95;
    letter-spacing: 0;
}

p {
    margin: 0;
    max-width: 62ch;
}

.lead {
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.4;
    font-weight: 500;
    max-width: 38ch;
}

/* Hand-lettered note in the marker face: names, annotations, the footer claim. */
.hand {
    font-family: var(--hand);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
}

.label {
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.num {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    letter-spacing: 0;
}

/* ---------- Marker strokes ---------- */

/* An inline SVG that draws one marker stroke from the sprite in head.php. Every path has
   pathLength="100", so the dash trick draws any stroke regardless of its real length. */
.br {
    display: block;
    fill: none;
    stroke: var(--accent);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
    pointer-events: none;
}

.br use {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}

.js .draw .br use,
.js .br--hover use {
    stroke-dashoffset: 100;
}

.js .draw.is-in .br:not(.br--hover) use,
.js .draw.is-static .br:not(.br--hover) use {
    transition: stroke-dashoffset var(--draw) var(--ease);
    transition-delay: calc(var(--d, 0) * 1ms + 150ms);
    stroke-dashoffset: 0;
}

.js .draw.is-static .br:not(.br--hover) use {
    transition: none;
}

/* Underline that writes itself under a word. Wrap the word in .mark and put the svg inside. */
.mark {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.mark > .br {
    position: absolute;
    left: -4%;
    width: 108%;
    bottom: -.16em;
    height: .26em;
}

/* Loop around a word or number. */
.loop {
    position: relative;
    display: inline-block;
}

.loop > .br {
    position: absolute;
    inset: -28% -18%;
    width: 136%;
    height: 156%;
    stroke-width: 5;
}

/* ---------- The T91 brush mark ---------- */

/* The real logo stroke used as a graphic: big behind a racket, tonal or full white. */
.mark-t91 {
    display: block;
    height: auto;
    pointer-events: none;
}

.mark-t91 use {
    fill: currentColor;
}

/* Tonal mark behind a racket cut-out; the stage keeps its own positioning. */
.mark-t91--bg {
    position: absolute;
    left: -10%;
    top: 14%;
    width: 120%;
    color: rgba(242, 240, 236, .08);
    transform: rotate(-8deg);
}

.mark-t91--bg ~ * {
    z-index: 1;
}

/* ---------- Tags ---------- */

.plate,
.tag {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .3em .8em .32em;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-ink);
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.plate--w,
.tag--paper {
    background: var(--paper);
    color: var(--ink);
    --ink: #0c0c0c;
    --accent: var(--orange-deep);
    --ink-2: #2a2a2a;
    --ink-line: rgba(12, 12, 12, .16);
    --on-ink: #f2f0ec;
    --holo: #0c0c0c;
    color: var(--ink);
}

/* Sale badge: the one tag in the accent, so a discount is the first thing the eye finds. */
.tag--sale {
    background: var(--orange);
    color: #0c0c0c;
}

.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

/* ---------- Buttons: ink pills, the only rounded shape besides tags ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    height: 56px;
    padding: 0 1.6em;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-ink);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, transform .2s var(--ease), color .2s;
}

.btn .ico {
    transition: transform .3s var(--ease);
}

.btn:hover {
    background: var(--ink-2);
}

.btn:hover .ico {
    transform: translateX(4px);
}

.btn:active {
    transform: scale(.98);
}

.btn--ink {
    background: var(--ink);
}

.btn--white {
    background: var(--paper);
    color: var(--ink);
    --ink: #0c0c0c;
    --accent: var(--orange-deep);
    --ink-2: #2a2a2a;
    --ink-line: rgba(12, 12, 12, .16);
    --on-ink: #f2f0ec;
    --holo: #0c0c0c;
    color: var(--ink);
}

.btn--white:hover {
    background: var(--paper-2);
    --ink: #0c0c0c;
    --accent: var(--orange-deep);
    --ink-2: #2a2a2a;
    --ink-line: rgba(12, 12, 12, .16);
    --on-ink: #f2f0ec;
    --holo: #0c0c0c;
    color: var(--ink);
}

/* Outline pill for the secondary action on the black page. */
.btn--line {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--ink);
}

.btn--line:hover {
    background: var(--ink);
    color: var(--on-ink);
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    opacity: .4;
    pointer-events: none;
}

/* Text link: the marker underline draws in on hover. */
.link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding-bottom: .3em;
    font-weight: 700;
    text-decoration: none;
}

.link .br {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.1em;
    width: 100%;
    height: .45em;
    stroke-width: 5;
}

.link .ico {
    transition: transform .3s var(--ease);
}

.link:hover .ico {
    transform: translateX(4px);
}

.link:not(:has(.br)) {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.js .link:hover .br use,
.js .link:focus-visible .br use,
.hdr__nav a:hover .br use,
.hdr__nav a[aria-current="page"] .br use {
    transition: stroke-dashoffset 500ms var(--ease);
    stroke-dashoffset: 0;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    font-size: .875rem;
    font-weight: 600;
}

.crumbs a {
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.demo-note {
    margin-top: 32px;
    font-size: .8125rem;
    font-weight: 500;
}

/* Page head for content pages (Servizi, Sei un centro): crumbs, big title, side copy. */
.phead {
    padding: clamp(16px, 2vw, 28px) 0 clamp(56px, 7vw, 104px);
}

.phead__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 28px clamp(32px, 6vw, 112px);
    margin-top: clamp(16px, 2.4vw, 32px);
}

.phead h1 {
    font-size: clamp(3.2rem, 8.4vw, 7rem);
    line-height: .9;
}

.phead h1 .mark > .br {
    bottom: -.08em;
    height: .2em;
    stroke-width: 8;
}

.phead__side {
    display: grid;
    gap: 24px;
    justify-items: start;
    max-width: 48ch;
}

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

/* ---------- Header ---------- */

.hdr {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--holo);
    transition: box-shadow .3s, transform .35s var(--ease);
}

/* Scrolling down tucks the utility strip above the viewport; scrolling up brings it back. */
.hdr-tucked {
    --hdr-top: var(--hdr);
}

.hdr.is-tucked {
    transform: translateY(calc(-1 * var(--util)));
}

.hdr__bar {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    height: var(--hdr);
}

.hdr__logo img {
    width: 58px;
    height: auto;
}

.hdr__nav {
    display: flex;
    gap: clamp(14px, 2vw, 30px);
    margin-right: auto;
}

.hdr__nav a {
    position: relative;
    padding: 6px 0;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.hdr__nav .br {
    position: absolute;
    left: -6%;
    width: 112%;
    bottom: -4px;
    height: 9px;
    stroke-width: 6;
}

/* Member link: the same orange pill as the Membri badge on products, so the nav invites, not selects. */
.hdr__nav .hdr__member {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: center;
    height: 34px;
    padding: 0 14px 0 4px;
    border-radius: 999px;
    background: var(--orange);
    color: #0c0c0c;
    font-size: .9375rem;
    transition: transform .2s var(--ease);
}

.hdr__nav .hdr__member:hover {
    transform: translateY(-1px);
}

.hdr__nav .hdr__member[aria-current="page"] {
    box-shadow: 0 0 0 2px var(--holo), 0 0 0 4px var(--orange);
}

.hdr__member .mb__disc {
    width: 26px;
    height: 26px;
}

/* ---------- Utility strip above the header: secondary links, scrolls away ---------- */

.util {
    border-bottom: 1px solid var(--ink-line);
    font-size: .8125rem;
    font-weight: 600;
}

.util__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: calc(var(--util) - 1px);
}

.util__msg {
    max-width: none;
    color: rgba(242, 240, 236, .72);
}

.util__nav {
    display: flex;
    gap: 22px;
}

.util__nav a {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding-block: 8px;
    text-decoration: none;
    color: rgba(242, 240, 236, .82);
    transition: color .2s;
}

.util__nav a:hover,
.util__nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

.util__nav .ico {
    width: 1.1em;
    height: 1.1em;
}

.hdr__tools {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.hdr__tools a,
.hdr__tools button {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s;
}

.hdr__tools a:hover,
.hdr__tools button:hover {
    background: rgba(242, 240, 236, .1);
}

.hdr__cart b {
    position: absolute;
    top: 4px;
    right: 2px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--holo);
    font-size: .6875rem;
}

.hdr__lang {
    padding: 0 10px;
    font-size: .875rem;
    font-weight: 700;
}

.hdr__menu {
    display: none !important;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter) 32px;
    background: var(--ink);
    color: var(--on-ink);
    visibility: hidden;
    clip-path: circle(0 at calc(100% - 40px) 36px);
    transition: clip-path .6s var(--ease), visibility 0s .6s;
}

.drawer.is-open {
    visibility: visible;
    clip-path: circle(150% at calc(100% - 40px) 36px);
    transition: clip-path .7s var(--ease);
}

.drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--hdr);
}

.drawer__top img {
    filter: invert(1);
}

.drawer__top button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--holo);
    color: var(--ink);
    cursor: pointer;
}

.drawer nav {
    display: grid;
    margin: 24px 0 auto;
}

.drawer nav a {
    padding: 4px 0;
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    font-weight: 800;
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
}

.drawer nav a:hover {
    color: var(--on-ink-muted);
}

.drawer__util {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 20px;
    font-size: .9375rem;
    font-weight: 700;
}

.drawer__util a {
    text-decoration: none;
}

.drawer__foot {
    display: grid;
    gap: 12px;
    color: var(--on-ink-muted);
    font-size: .9375rem;
}

.drawer__foot a {
    color: var(--on-ink);
}

/* ---------- Sections ---------- */

.sec {
    padding: var(--sec) 0;
}

.sec--ink,
.on-ink {
    background: var(--paper);
    --ink: #0c0c0c;
    --accent: var(--orange-deep);
    --ink-2: #2a2a2a;
    --ink-line: rgba(12, 12, 12, .16);
    --on-ink: #f2f0ec;
    --holo: #0c0c0c;
    color: var(--ink);
}

.sec__head {
    display: grid;
    gap: 22px;
    margin-bottom: clamp(40px, 6vw, 80px);
}

.sec__head p {
    font-size: 1.125rem;
    font-weight: 500;
    max-width: 46ch;
}

.on-ink .sec__head p,
.sec--ink .sec__head p {
    color: var(--on-ink-muted);
}

/* Entrance: content is visible by default; only blocks below the fold arm and rise once. */
.js .draw.is-armed > :not(.br) {
    opacity: 0;
    transform: translateY(28px);
}

.js .draw.is-in > :not(.br) {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease), transform .9s var(--ease);
}

/* ---------- Product card ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px);
}

.pc {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pc__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--paper);
    --ink: #0c0c0c;
    --accent: var(--orange-deep);
    --ink-2: #2a2a2a;
    --ink-line: rgba(12, 12, 12, .16);
    --on-ink: #f2f0ec;
    --holo: #0c0c0c;
    color: var(--ink);
}

.pc__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s var(--ease), opacity .3s;
}

/* Rackets are transparent cut-outs on a light plate, with a soft drop shadow. */
.pc[data-line]:not([data-line=""]) .pc__media {
    background: var(--plate);
}

.pc[data-line]:not([data-line=""]) .pc__media img {
    padding: 8% 12%;
    filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .35));
}

.pc:hover .pc__media img {
    transform: rotate(-4deg) scale(1.04);
}

.pc[data-line=""]:hover .pc__media img {
    transform: scale(1.03);
}

.pc__alt {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.pc:hover .pc__alt {
    opacity: 1;
}

.pc__body {
    display: grid;
    gap: 4px;
    padding-top: 14px;
}

.pc__name {
    font-size: 1.25rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.pc__name a {
    text-decoration: none;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
}

.pc:hover .pc__name a,
.pc__name a:focus-visible {
    text-decoration-line: underline;
}

.pc__name a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.pc__meta {
    font-size: .875rem;
    font-weight: 500;
}

.pc__price {
    display: flex;
    align-items: baseline;
    gap: .5em;
    margin-top: 4px;
}

.pc__price b {
    font-size: 1.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pc__price s {
    font-size: .9375rem;
    font-weight: 500;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

.pc__rate {
    font-size: .8125rem;
    color: var(--ink-2);
}

.pc__cmp {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    width: fit-content;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}

.pc__cmp input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--ink);
}

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 24%);
    gap: clamp(14px, 2vw, 28px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

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

.rail > * {
    scroll-snap-align: start;
}

/* ---------- Placeholder page ---------- */

.ph {
    min-height: 72vh;
    display: grid;
    align-content: center;
    padding: clamp(64px, 10vw, 140px) 0;
}

.ph h1 {
    margin: 22px 0 28px;
}

.ph p {
    font-size: 1.125rem;
    font-weight: 500;
}

.ph ul {
    margin: 28px 0 40px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    max-width: 60ch;
}

.ph li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-weight: 500;
}

.ph li::before {
    content: "";
    flex: none;
    width: 14px;
    height: 3px;
    border-radius: 3px;
    background: var(--ink);
    transform: translateY(-4px) rotate(-8deg);
}

.ph h1 {
    font-size: clamp(3rem, 11vw, 9rem);
    line-height: .84;
    letter-spacing: 0;
}

.ph h1 .mark > .br {
    bottom: -.06em;
    height: .18em;
    stroke-width: 9;
}

.ph--404 h1 {
    font-size: clamp(3.6rem, 13vw, 11rem);
    line-height: .82;
}

.ph h1 .loop > .br {
    inset: -10% -12% -16%;
    width: 124%;
    height: 126%;
    stroke-width: 7;
}

.ph__note {
    margin: 0 0 28px;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    transform: rotate(-3deg);
    transform-origin: left center;
}

div.ph__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

ul.ph__links {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
    max-width: 720px;
    border-top: 2px solid var(--ink);
}

ul.ph__links li {
    border-bottom: 2px solid var(--ink);
}

ul.ph__links li::before {
    display: none;
}

ul.ph__links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    letter-spacing: 0;
    text-decoration: none;
}

ul.ph__links a .ico {
    transition: transform .3s var(--ease);
}

ul.ph__links a:hover .ico {
    transform: translateX(6px);
}

/* ---------- Footer ---------- */

.ftr {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 140px) 0 32px;
    background: var(--ink);
    color: var(--on-ink);
}

/* Floated, not absolute: the link columns clear it, so a tall mark can never touch them. */
.ftr__mark {
    float: right;
    width: clamp(150px, 24vw, 380px);
    margin: -2vw 0 32px 32px;
    color: var(--on-ink);
    transform: rotate(-6deg);
}

.ftr .wrap {
    position: relative;
}

.ftr__claim {
    font-family: var(--hand);
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 400;
    font-variation-settings: normal;
    line-height: .95;
    letter-spacing: 0;
    color: var(--on-ink-muted);
    transform: rotate(-3deg);
    transform-origin: left center;
}

.ftr__claim span {
    color: var(--on-ink);
}

.ftr__grid {
    clear: both;
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    margin-top: clamp(56px, 8vw, 110px);
}

.ftr h4 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 800;
}

.ftr ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ftr li a {
    color: var(--on-ink-muted);
    text-decoration: none;
}

.ftr li a:hover {
    color: var(--holo);
}

.ftr__news p {
    color: var(--on-ink-muted);
    max-width: 36ch;
}

.ftr__form {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    max-width: 440px;
}

.ftr__form input {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 22px;
    border: 2px solid var(--ink-2);
    border-radius: 999px;
    background: var(--ink-2);
    color: var(--on-ink);
}

.ftr__form input:focus {
    border-color: var(--holo);
    outline: none;
}

.ftr__form input::placeholder {
    color: var(--on-ink-muted);
}

.ftr__form .btn {
    background: var(--holo);
    color: var(--ink);
}

.ftr__form .btn:hover {
    background: var(--holo-soft);
}

.ftr__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    margin-top: clamp(56px, 8vw, 96px);
    padding-top: 24px;
    border-top: 1px solid var(--ink-2);
    font-size: .875rem;
    color: var(--on-ink-muted);
}

.ftr__legal nav {
    display: flex;
    gap: 20px;
}

.ftr__legal a {
    text-decoration: none;
}

.ftr__legal a:hover {
    color: var(--on-ink);
}

.ftr__pay {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.ftr__pay span {
    padding: 4px 10px;
    border: 1px solid var(--ink-2);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.site-footer__credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--ink-2);
    font-size: .8rem;
    color: var(--on-ink);
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s;
}

.site-footer__credit:hover {
    opacity: 1;
}

.site-footer__credit img {
    height: 16px;
    width: auto;
}

/* ---------- Floating WhatsApp ---------- */

.wa {
    position: fixed;
    right: clamp(14px, 2vw, 28px);
    bottom: clamp(14px, 2vw, 28px);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 22px 0 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55);
    transition: transform .3s var(--ease);
}

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

.wa .ico {
    color: var(--holo);
}

/* ---------- Add-to-cart confirmation ---------- */

.cart-toast {
    position: fixed;
    top: calc(var(--hdr-top) + 12px);
    right: clamp(12px, 2vw, 28px);
    z-index: 50;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 14px;
    width: min(440px, calc(100vw - 24px));
    padding: 12px 12px 12px 12px;
    background: var(--paper);
    --ink: #0c0c0c;
    --accent: var(--orange-deep);
    --on-ink: #f2f0ec;
    color: var(--ink);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .4s var(--ease);
}

.cart-toast.is-on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.cart-toast img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: var(--plate);
}

.cart-toast div {
    display: grid;
    min-width: 0;
    font-size: .875rem;
}

.cart-toast span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-toast .btn {
    height: 44px;
    padding: 0 1.1em;
    font-size: .9375rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    :root {
        --util: 0px;
    }

    .hdr__nav,
    .hdr__lang,
    .util {
        display: none;
    }

    .hdr__menu {
        display: grid !important;
    }

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

    .ftr__news {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    :root {
        --hdr: 62px;
    }

    body {
        font-size: 1rem;
    }

    .hdr__account {
        display: none !important;
    }

    .btn {
        height: 52px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }

    .pc__name {
        font-size: 1.0625rem;
    }

    .rail {
        grid-auto-columns: 72%;
        margin-right: calc(var(--gutter) * -1);
        padding-right: var(--gutter);
    }

    .ftr__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ftr__mark {
        float: none;
        display: block;
        width: 120px;
        margin: 0 var(--gutter) 20px auto;
    }

    .ftr__form {
        flex-direction: column;
    }

    .ftr__form input {
        flex: none;
    }

    .ftr__pay {
        margin-left: 0;
    }

    .wa span {
        display: none;
    }

    .wa {
        width: 56px;
        padding: 0;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .js .draw .br:not(.br--hover) use {
        stroke-dashoffset: 0;
    }

    .js .draw.is-armed > :not(.br) {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Trova T91 ---------- */

.centers-page__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.centers-page__list {
    padding-top: 0;
}

.centers-page__cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(32px, 5vw, 96px);
}

.centers-page__cols h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.centers-page__cols ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink-line);
}

.centers-page__cols li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-line);
}

.centers-page__cols li span {
    color: var(--ink-2);
    text-align: right;
}

@media (max-width: 760px) {
    .centers-page__cols {
        grid-template-columns: 1fr;
    }
}
