@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.sc-ottica { --k-bg: #ffffff; --k-ink: #111; --k-muted: #5f5f5f; --k-ac: #e8261c; --k-ac-ink: #fff; --k-surface: #f3f3f1; --k-line: rgba(0,0,0,.12);
  --k-display: "Anton", Impact, sans-serif; --k-body: "Outfit", system-ui, sans-serif; --k-dw: 400; --k-track: 0; --k-case: uppercase; --k-lh: .92; --k-r: 4px; --k-btn-r: 2px; --red: #e8261c; }
.sc-ottica .k-btn { text-transform: uppercase; letter-spacing: .06em; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 30px; min-height: calc(100vh - 110px); padding: 30px var(--k-pad) 80px; overflow: hidden; background: linear-gradient(115deg, #fff 0 52%, #f1f1ef 52%); }
.hero h1 { position: relative; z-index: 2; margin: 0; font-size: clamp(76px, 11vw, 180px); font-style: italic; transform: skewX(-6deg); }
.hero h1 .l { display: block; animation: slam .8s cubic-bezier(.2,1.4,.4,1) both; }
.hero h1 .l:nth-child(2) { animation-delay: .1s; } .hero h1 .l:nth-child(3) { animation-delay: .2s; }
@keyframes slam { from { opacity: 0; transform: translateX(-80px); } }
.brush { position: absolute; z-index: 3; left: calc(var(--k-pad) + 30%); top: 30%; color: var(--red); font: 700 clamp(44px, 6vw, 96px)/1 "Caveat"; transform: rotate(-8deg); clip-path: inset(0 100% 0 0); animation: write 1s .7s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.red-bar { display: block; width: 260px; height: 46px; margin: 26px 0 20px; background: var(--red); transform: skewX(-12deg); transform-origin: left; animation: bar .8s .4s var(--k-ease) both; }
@keyframes bar { from { transform: skewX(-12deg) scaleX(0); } }
.hero-copy .k-btn { position: relative; margin-top: -86px; margin-left: 18px; background: #111; }
.hero-note { max-width: 380px; margin: 24px 0 0; color: var(--k-muted); }
.hero-visual { position: relative; z-index: 1; transform: perspective(1000px) rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg)); transition: transform .2s linear; }
.hero-glasses { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.glare { animation: glare 4s 1.2s ease-in-out infinite; }
@keyframes glare { 0% { transform: translateX(0) skewX(-20deg); } 40%, 100% { transform: translateX(900px) skewX(-20deg); } }
.price-tag { position: absolute; right: 4%; bottom: -10%; padding: 14px 18px; background: #fff; border: 2px solid #111; box-shadow: 8px 8px 0 var(--red); }
.price-tag b { display: block; font: 400 22px "Anton"; text-transform: uppercase; }
.price-tag span { font-size: 14px; }
.giant { position: absolute; right: -2%; bottom: -6%; margin: 0; color: transparent; -webkit-text-stroke: 1.5px rgba(0,0,0,.1); font: 400 clamp(120px, 22vw, 360px)/1 "Anton"; pointer-events: none; }

.tryon { background: #111; color: #fff; --k-muted: #b5b5b5; --k-line: rgba(255,255,255,.2); }
.tryon .k-chips button { color: #fff; }
.tryon .k-chips button[aria-checked="true"] { background: var(--red); border-color: var(--red); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.try-stage { padding: 20px; background: #1d1d1d; border-left: 6px solid var(--red); }
.try-stage svg { width: 100%; max-height: 60vh; }
.try-tip { margin: 0; color: #fff; font: 700 24px "Caveat"; }
.try-panel fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.try-panel legend { margin-bottom: 10px; font: 400 22px "Anton"; text-transform: uppercase; }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 44px; height: 44px; border: 3px solid #333; border-radius: 50%; background: var(--c); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.swatches button[aria-checked="true"] { border-color: #fff; transform: scale(1.15); }
.face-skin { fill: #f0c9a8; } .face-hair { fill: #2b1d14; }
.frame { fill: none; stroke-width: 7; stroke-linejoin: round; transition: stroke .4s; }
.lens { transition: fill .4s, opacity .4s; }
.frame-g { transform-origin: 150px 150px; animation: drop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.prod { padding: 18px; background: var(--k-surface); border-bottom: 4px solid transparent; transition: border-color .3s, transform .4s var(--k-ease); }
.prod:hover { border-color: var(--red); transform: translateY(-6px); }
.prod svg { width: 100%; height: 90px; margin: 20px 0; }
.prod h3 { margin: 0; font-size: 24px; }
.prod p { margin: 4px 0 0; color: var(--k-muted); font-size: 14px; }
.prod b { display: block; margin-top: 10px; color: var(--red); font: 400 22px "Anton"; }

.exam { background: var(--k-surface); }
.slots-wrap { display: grid; gap: 16px; }
.days, .hours { display: flex; flex-wrap: wrap; gap: 8px; }
.days button, .hours button { min-width: 74px; min-height: 60px; padding: 8px 14px; border: 2px solid #111; background: #fff; font-weight: 700; transition: background .2s, color .2s, transform .3s; }
.days button small { display: block; font-size: 11px; color: var(--k-muted); text-transform: uppercase; }
.days button b { font: 400 24px "Anton"; }
.hours button { min-height: 46px; }
.days button[aria-checked="true"], .hours button[aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; transform: skewX(-6deg); }
.days button[aria-checked="true"] small { color: #ffd6d3; }
.hours button:disabled { opacity: .3; text-decoration: line-through; }
.slots-wrap .k-btn { justify-self: start; }
.book-msg { min-height: 1.4em; font-weight: 600; }

@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; background: #fff; }
  .brush { left: 40%; top: 18%; }
  .try-grid { grid-template-columns: 1fr; }
  .price-tag { bottom: -20%; }
}
@media (prefers-reduced-motion: reduce) { .brush { clip-path: none; } .glare { animation: none; } }

/* fx · rifacimento */
.ot-hv { display: grid; place-items: center; }
.ot-hero-ph { width: min(460px, 100%); aspect-ratio: 4 / 5; border: 6px solid #111; box-shadow: 14px 14px 0 var(--red); }
.ot-hv .price-tag { position: absolute; left: 0; bottom: 10%; }
.ot-focus { --fx-zh: 260vh; background: #111; color: #fff; }
.ot-focus-in { display: grid; grid-template-columns: 1fr 1fr .8fr; align-items: center; gap: 30px; padding: 0 var(--k-pad); }
.ot-chart { display: grid; justify-items: center; gap: 6px; padding: 30px; border-radius: 6px; background: #fff; color: #111; font-family: "Anton", sans-serif; }
.ot-chart p { margin: 0; font-size: calc(110px - var(--r) * 13px); line-height: 1; letter-spacing: .14em; filter: blur(calc(max(0, 1 - var(--p, 0) * 1.8 + var(--r) * .1) * 9px)); }
.ot-focus-c h2 { margin: 0 0 16px; font: 400 clamp(56px, 7vw, 120px)/.9 "Anton"; text-transform: uppercase; } .ot-focus-c h2 span { color: var(--red); }
.ot-focus-c p:last-child { color: #bdbdbd; max-width: 360px; }
.ot-focus-ph { aspect-ratio: 3 / 4; filter: blur(calc((1 - min(1, var(--p, 0) * 1.6)) * 14px)); transform: scale(calc(1.08 - var(--p, 0) * .08)); }
.ot-looks { --fx-h-gap: 20px; }
.ot-lk-head { flex: none; width: min(420px, 74vw); align-self: center; } .ot-lk-head h2 { margin: 0; font: 400 clamp(54px, 6vw, 104px)/.9 "Anton"; text-transform: uppercase; } .ot-lk-head h2 span { color: var(--red); }
.ot-lk { flex: none; width: clamp(260px, 24vw, 360px); } .ot-lk .fx-ph { aspect-ratio: 3 / 4; border: 4px solid #111; }
.ot-lk .fx-ph img { filter: grayscale(.2); transition: filter .5s, transform 1s cubic-bezier(.16,1,.3,1); } .ot-lk:hover .fx-ph img { transform: scale(1.05); filter: none; }
.ot-lk > div { display: grid; padding-top: 12px; } .ot-lk b { font: 400 30px "Anton"; text-transform: uppercase; } .ot-lk span { color: var(--k-muted); }
.ot-shop { aspect-ratio: 21 / 7; margin-bottom: 40px; }
@media (max-width: 899px) { .ot-focus-in { grid-template-columns: 1fr; padding-top: 80px; } .ot-focus-ph { display: none; } .ot-chart p { font-size: calc(64px - var(--r) * 7px); } .ot-lk { width: 72vw; } .ot-shop { aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) { .ot-chart p, .ot-focus-ph { filter: none; } }
