:root{
  --ink:#0B3D2F; --paper:#FBEFD7; --mist:#B6CEB6; --denim:#365B46; --thread:#DF542D; --thread-strong:#AF3D20;
  --line:rgba(11,61,47,.18);
  --display:"Young Serif",Georgia,"Times New Roman",serif;
  --head:"Bricolage Grotesque","Arial Narrow",system-ui,sans-serif;
  --hand:"Caveat","Segoe Script","Bradley Hand",cursive;
  --body:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.6 var(--body)}
img{display:block;max-width:100%}
a{color:inherit}
h1,h2{font-family:var(--display);font-weight:400;line-height:1.1;letter-spacing:-.01em;margin:0}
h3{font-family:var(--head);font-weight:800;line-height:1.1;letter-spacing:-.01em;margin:0}
p{margin:0 0 1rem}
.wrap{width:min(1120px,100% - 2.5rem);margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--thread);outline-offset:3px}
.skip{position:absolute;left:1rem;top:-4rem;background:var(--ink);color:#FBEFD7;padding:.6rem 1rem;z-index:20}
.skip:focus{top:1rem}

/* punto cucito: motivo ricorrente */
.stitch{height:3px;background:repeating-linear-gradient(90deg,var(--thread) 0 14px,transparent 14px 24px)}
.draw{clip-path:inset(0 100% 0 0);animation:draw 1.2s .25s ease-out forwards}
@keyframes draw{to{clip-path:inset(0 0 0 0)}}

/* header e menu */
header{position:sticky;top:0;z-index:10;background:rgba(251,239,215,.95);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:68px}
.brand{display:inline-flex;align-items:center;gap:.7rem;font-family:var(--head);font-weight:800;font-size:1.3rem;letter-spacing:-.01em;text-decoration:none}
.brand-mark{height:44px;width:auto}
nav{display:flex;gap:1.6rem;font-weight:500}
nav a{text-decoration:none;padding:.4rem 0;border-bottom:2px solid transparent}
nav a:hover,nav a[aria-current="page"]{border-color:var(--thread)}

/* bottoni */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 1.4rem;border-radius:6px;font-weight:600;text-decoration:none;border:2px solid var(--ink);background:transparent;color:inherit;transition:background .15s,color .15s}
.btn:hover{background:var(--ink);color:#FBEFD7}
.btn.primary{background:var(--thread-strong);border-color:var(--thread-strong);color:#FBEFD7}
.btn.primary:hover{background:#893019;border-color:#893019}
.dark .btn{border-color:#FBEFD7}
.dark .btn:hover{background:#FBEFD7;color:var(--ink)}
.dark .btn.primary{background:var(--thread-strong);border-color:var(--thread-strong);color:#FBEFD7}
.dark .btn.primary:hover{background:#FBEFD7;border-color:#FBEFD7;color:var(--ink)}
.btns{display:flex;flex-wrap:wrap;gap:.8rem}

/* cornici foto */
.frame{position:relative;display:block;width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--mist);border-radius:4px}
.frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
button.frame{border:0;padding:0;cursor:zoom-in;font:inherit}
.dark .frame{background:#164D39}

/* titolo di pagina */
.page-title{padding:3.2rem 0 2rem}
.page-title h1{font-size:clamp(2.2rem,4.6vw,3.5rem)}
.page-title .stitch{width:min(260px,60%);margin:1.4rem 0}
.page-title p{max-width:38rem;font-size:1.15rem}

/* gallerie */
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}
.gal.two{grid-template-columns:repeat(2,1fr)}
.gallery-sec{padding:0 0 4.5rem}
.dark{background:var(--ink);color:#FBEFD7}
.dark .page-title{padding-top:3.2rem}
.dark .gallery-sec{padding-bottom:4.5rem}

/* fascia con invito all'azione */
.band{background:var(--mist);padding:3rem 0}
.band .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem 3rem}
.band p{max-width:36rem;margin:0;font-size:1.15rem}

/* home */
.hero{padding:3.2rem 0 4.5rem}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:3.5rem;align-items:center}
.hero h1{font-size:clamp(2.4rem,4.9vw,4.1rem)}
.hero .stitch{width:min(260px,60%);margin:1.5rem 0}
.hero p.lead{font-size:1.2rem;max-width:34rem}
.hero .frame{outline:2px dashed var(--thread);outline-offset:10px;aspect-ratio:3/4;max-width:440px;justify-self:end}
.status{display:inline-flex;align-items:center;gap:.6rem;padding:.4rem .95rem;border-radius:999px;background:var(--mist);font-weight:600;font-size:.95rem;margin-bottom:1.6rem}
.status::before{content:"";width:.7rem;height:.7rem;border-radius:50%;background:var(--denim)}
.status[data-state="open"]::before{background:#0B3D2F}
.status[data-state="closed"]::before{background:var(--thread)}
.home-sec{padding:4.5rem 0}
.home-sec h2{font-size:clamp(1.9rem,3.6vw,2.7rem);margin-bottom:2rem}
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:2.2rem 1.5rem}
.tile{display:block;text-decoration:none}
.tile h3{font-size:1.6rem;margin:1rem 0 .4rem}
.tile p{margin:0;max-width:30rem}
.tile:hover h3{text-decoration:underline;text-decoration-color:var(--thread);text-decoration-thickness:3px;text-underline-offset:5px}

/* testo semplice (riparazioni) */
.text-sec{padding:0 0 4.5rem}
.facts{max-width:38rem;margin:0 0 2rem;padding:0;list-style:none;border-top:1px dashed var(--line)}
.facts li{padding:.8rem 0;border-bottom:1px dashed var(--line)}

/* contatti */
.contact{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start;padding:3.5rem 0 4.5rem}
.contact h2{font-size:clamp(1.9rem,3.6vw,2.5rem);margin-bottom:1.2rem}
address{font-style:normal;margin-bottom:1.2rem}
.hours{border-collapse:collapse;width:100%;max-width:26rem;margin-bottom:1.6rem}
.hours th,.hours td{text-align:left;padding:.55rem 0;border-bottom:1px dashed var(--line);font-weight:400;vertical-align:top}
.hours th{width:7.5rem}
.hours tr.today th,.hours tr.today td{font-weight:600}
.map{width:100%;height:100%;min-height:340px;border:0;border-radius:4px;background:var(--mist)}

footer{background:var(--ink);color:#FBEFD7;padding:2rem 0;font-size:.95rem}
footer p{margin:0 0 .3rem}
footer a{text-underline-offset:3px}

/* foto ingrandita */
dialog{border:0;padding:0;background:transparent;max-width:min(96vw,1100px);overflow:visible}
dialog::backdrop{background:rgba(24,31,27,.9)}
dialog img{max-height:84vh;width:auto;margin:0 auto;border-radius:4px}
dialog .x{display:block;margin:0 0 .6rem auto;min-height:44px;padding:0 1.1rem;border:2px solid #FBEFD7;border-radius:6px;background:transparent;color:#FBEFD7;font:600 1rem var(--body);cursor:pointer}
dialog .x:hover{background:#FBEFD7;color:var(--ink)}

@media (max-width:900px){
  .hero .frame{justify-self:center;width:min(100%,440px)}
  .bar{flex-wrap:wrap;gap:.2rem 1rem;padding:.6rem 0 0}
  .brand{order:1;font-size:1.15rem;gap:.55rem}
  .brand-mark{height:38px}
  .bar > .btn{order:2;margin-left:auto;min-height:42px;padding:0 1.1rem}
  nav{order:3;width:100%;gap:1.3rem;overflow-x:auto;white-space:nowrap;padding-bottom:.2rem}
  .hero .wrap,.contact{grid-template-columns:1fr}
  .hero .wrap{gap:2.5rem}
  .hero{padding-top:2rem}
  .home-sec{padding:3.2rem 0}
  .page-title{padding-top:2.2rem}
  .contact{padding:2.5rem 0 3.2rem}
}
@media (max-width:620px){
  .tiles{grid-template-columns:1fr}
  .gal{grid-template-columns:repeat(2,1fr);gap:.7rem}
  .gal.two{grid-template-columns:1fr}
  .btns .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .draw{animation:none;clip-path:none}
}

/* gallerie con foto di forme diverse: si vedono intere, a colonne */
.gal.natural{display:block;columns:3 260px;column-gap:1rem}
.gal.natural .frame{aspect-ratio:auto;margin:0 0 1rem;break-inside:avoid}
.gal.natural .frame img{position:static;height:auto}
.gal.portrait .frame{aspect-ratio:3/4}
@media (max-width:620px){
  .gal.natural{columns:2;column-gap:.7rem}
  .gal.natural .frame{margin-bottom:.7rem}
  .gal.two.portrait{grid-template-columns:repeat(2,1fr);gap:.7rem}
}

/* telefoni stretti: nome e pulsante restano sulla stessa riga */
@media (max-width:430px){
  .brand{font-size:1.02rem;gap:.5rem}
  .brand-mark{height:34px}
  .bar > .btn{padding:0 .9rem}
}

/* due o poche foto grandi, mostrate intere affiancate */
.gal.pair{grid-template-columns:repeat(2,1fr);align-items:start}
.gal.pair .frame{aspect-ratio:auto}
.gal.pair .frame img{position:static;height:auto}
@media (max-width:620px){
  .gal.pair{grid-template-columns:1fr}
}

/* cornici uniformi nelle gallerie */
.gal.square .frame{aspect-ratio:1/1}

/* animazioni leggere: ingrandimento lento della foto e ombra morbida */
.gal .frame,.tile .frame{transition:box-shadow .35s ease}
.gal .frame img,.tile .frame img{transition:transform .6s cubic-bezier(.2,.6,.2,1)}
@media (hover:hover){
  .gal .frame:hover,.tile:hover .frame{box-shadow:0 14px 26px -16px rgba(11,61,47,.45)}
  .gal .frame:hover img,.tile:hover .frame img{transform:scale(1.045)}
  .dark .gal .frame:hover{box-shadow:0 14px 26px -16px rgba(0,0,0,.7)}
}
/* sul telefono: piccola risposta mentre il dito è appoggiato */
.gal .frame:active img,.tile:active .frame img{transform:scale(1.03);transition-duration:.2s}
.btn:active{transform:translateY(1px)}
@media (prefers-reduced-motion:reduce){
  .gal .frame,.tile .frame,.gal .frame img,.tile .frame img{transition:none}
  .gal .frame:hover img,.tile:hover .frame img,.gal .frame:active img,.tile:active .frame img{transform:none}
}

/* =========================================================
   Font: titoli in Young Serif, testi in Instrument Sans,
   titoletti e nome in Bricolage Grotesque, appunti in Caveat
   ========================================================= */
.hand{display:inline-block;font-family:var(--hand);font-weight:600;font-size:2.1rem;line-height:1.05;color:var(--thread-strong);margin:0 0 1.2rem;transform:rotate(-2deg);transform-origin:left center}
.dark .hand{color:#F0B78C}
.band p.hand{font-size:2rem;margin:0 0 .3rem;max-width:none}

/* ---------- entrata della pagina (una sola volta, in sequenza) ---------- */
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.hero .wrap > div:first-child > :not(.stitch),
.page-title > :not(.stitch){animation:rise .9s cubic-bezier(.2,.6,.2,1) both}
.hero .wrap > div:first-child > :nth-child(1){animation-delay:.05s}
.hero .wrap > div:first-child > :nth-child(2){animation-delay:.18s}
.hero .wrap > div:first-child > :nth-child(4){animation-delay:.5s}
.hero .wrap > div:first-child > :nth-child(5){animation-delay:.65s}
.page-title > :nth-child(1){animation-delay:.05s}
.page-title > :nth-child(3){animation-delay:.4s}
.page-title > :nth-child(4){animation-delay:.55s}

/* ---------- comparsa allo scorrimento ---------- */
/* foto: si aprono dall'alto verso il basso mentre si assestano */
.js .rv{opacity:0;clip-path:inset(0 0 99.6% 0)}
.js .rv.in{opacity:1;clip-path:inset(-40px);transition:clip-path 1.1s cubic-bezier(.77,0,.18,1) var(--d,0s),opacity .01s var(--d,0s),box-shadow .35s ease}
.js .rv.in img{animation:settle 1.5s cubic-bezier(.2,.6,.2,1) var(--d,0s) backwards}
@keyframes settle{from{transform:scale(1.22)}to{transform:scale(1)}}
/* testi: salgono di poco e compaiono */
.js .fx{opacity:0;transform:translateY(16px)}
.js .fx.in{opacity:1;transform:none;transition:opacity .9s ease var(--d,0s),transform .9s cubic-bezier(.2,.6,.2,1) var(--d,0s)}
/* linee a punto cucito: si cuciono da sinistra */
.js .rs{opacity:0;clip-path:inset(0 99.6% 0 0)}
.js .rs.in{opacity:1;clip-path:inset(0 0 0 0);transition:clip-path 1.5s ease-out,opacity .01s}

/* ---------- chi siamo ---------- */
.about{padding:4.5rem 0}
.about-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:4.5rem;align-items:center}
.about h2,.why h2{font-size:clamp(2rem,4vw,3rem);margin-bottom:1.4rem}
.about-text p{max-width:34rem}
.about-photos{position:relative;padding-bottom:4.2rem}
.about-main{width:78%;margin-left:auto;aspect-ratio:3/4}
.about-side{position:absolute;left:0;bottom:0;width:56%;aspect-ratio:4/3;outline:2px dashed var(--thread);outline-offset:8px;background:var(--mist)}

/* ---------- perché sceglierci / riparazioni ---------- */
.why{padding:4.5rem 0}
.why-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2.6rem 3.5rem;margin-top:2.6rem}
.why-grid.three{grid-template-columns:repeat(3,1fr);gap:2.4rem;margin-top:0}
.why.flat{padding-top:0}
.why-item{display:grid;grid-template-columns:auto 1fr;gap:0 1.3rem;align-items:start}
.ico{grid-row:span 2;display:grid;place-items:center;width:64px;height:64px;border:2px dashed var(--thread);border-radius:50%}
.ico svg{width:30px;height:30px;fill:none;stroke:var(--thread);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .5s cubic-bezier(.2,.6,.2,1)}
.why-item h3{font-size:1.4rem;margin:.3rem 0 .45rem}
.why-item p{margin:0;max-width:30rem}
.dark .why-item p{color:rgba(251,239,215,.86)}
@media (hover:hover){
  .why-item:hover .ico svg{transform:rotate(-9deg) scale(1.12)}
}

/* ---------- usato: due foto uguali ---------- */
.gal.pair .frame{aspect-ratio:1/1}
.gal.pair .frame img{position:absolute;height:100%}

@media (max-width:900px){
  .about{padding:3.2rem 0}
  .about-grid{grid-template-columns:1fr;gap:2.8rem}
  .why{padding:3.2rem 0}
  .why-grid,.why-grid.three{grid-template-columns:1fr;gap:2rem}
  .why.flat{padding-top:0}
}
@media (max-width:620px){
  .gal.pair{grid-template-columns:1fr}
}

/* ---------- chi preferisce meno movimento ---------- */
@media (prefers-reduced-motion:reduce){
  .js .rv,.js .rv.in,.js .fx,.js .fx.in,.js .rs,.js .rs.in{clip-path:none;opacity:1;transform:none;transition:none}
  .js .rv.in img{animation:none}
  .hero .wrap > div:first-child > *,.page-title > *{animation:none}
  .ticker-track{animation:none;width:auto;justify-content:center}
  .ticker-set + .ticker-set,.ticker .rep{display:none}
}

/* Layout condiviso: navigazione visibile e sezioni ben distanziate. */
html{scroll-padding-top:150px}
.bar{flex-wrap:wrap;gap:1rem;padding:1rem 0}
.brand{order:1}.bar>.btn{order:2;margin-left:auto}
nav{order:3;width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem 1.6rem;overflow:visible;white-space:normal}
nav a{padding:.45rem 0}
.brand-strip{padding:2rem 0;border-block:1px solid var(--line);background:#FBEFD7}
.brand-strip .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem}
.brand-strip p{margin:0;font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em}
.brand-list{display:flex;flex-wrap:wrap;gap:1rem 2rem}
.brand-list span{font-family:var(--head);font-size:1.35rem;font-weight:800}
.about{padding:5.5rem 0 6rem}
.about-grid{gap:4rem}.about-grid>*{min-width:0}
.about-photos{padding:0}.about-main{width:100%;margin:0;aspect-ratio:4/5}
.about-text .btns{margin-top:1.75rem}
.why{padding:5rem 0;background:var(--mist);color:var(--ink)}
.why-grid{gap:1.5rem;margin-top:2.5rem}
.why-item{padding:1.75rem;border:1px solid var(--line);border-radius:12px;background:#FBEFD7;grid-template-columns:48px minmax(0,1fr);gap:0 1.1rem}
.ico{width:48px;height:48px;border:0;background:#F6DFC1;border-radius:12px;color:var(--thread-strong)}
.ico svg{display:block;width:24px!important;height:24px!important;max-width:24px;max-height:24px;fill:none;stroke:currentColor}
.why-item h3{font-size:1.25rem;line-height:1.3;margin:0 0 .65rem}
.why-item p{font-size:1rem;line-height:1.65}
.why.flat{padding:1rem 0 4rem;background:transparent}
.page-title{padding:3.5rem 0 2.75rem}.page-title p{margin-bottom:0;max-width:48rem}
.page-title .btns{margin-top:1.75rem}
.catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.75rem}
.catalog.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-card{min-width:0;overflow:hidden;background:#FBEFD7;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column}
.product-card .frame{border-radius:0;aspect-ratio:4/3;background:#F1E5CB}
.product-card .frame img{object-fit:contain}
.product-copy{padding:1.5rem;flex:1}
.product-copy h2,.advice-card h2{font:800 1.35rem/1.3 var(--head);letter-spacing:-.01em;margin:0 0 .8rem}
.product-copy p{font-size:1rem;line-height:1.7;margin:0;color:var(--denim)}
.advice-card{padding:2rem;background:var(--ink);color:#FBEFD7;justify-content:center;gap:1rem}
.advice-card p,.advice-card h2{margin:0}.advice-card .btn{align-self:start}
.eyebrow{font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.catalog-note{margin:2rem 0 0;max-width:52rem;font-size:.95rem;color:var(--denim)}
.dark .product-card{background:#164D39;border-color:rgba(251,239,215,.2)}
.dark .product-copy p{color:#FBEFD7}
.help-section{padding:0 0 4rem}.help-section>h2{font-size:clamp(1.8rem,3vw,2.6rem);margin-bottom:2rem}
.help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}
.help-grid h3{font-size:1.2rem;line-height:1.4;margin-bottom:.75rem}.help-grid p{margin:0}
@media(max-width:900px){
 .about-grid{gap:3rem}.about{padding:4rem 0}.why{padding:4rem 0}
 .catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
 .why-grid,.why-grid.three{grid-template-columns:1fr}
 .help-grid{grid-template-columns:1fr;gap:1.5rem}
}
@media(max-width:620px){
 html{scroll-padding-top:190px}
 .wrap{width:calc(100% - 2rem)}
 nav{justify-content:flex-start;gap:.25rem 1rem;font-size:.9rem}
 .bar{gap:.75rem}.brand{font-size:1.02rem}.brand-mark{height:34px}
 .catalog,.catalog.two{grid-template-columns:1fr;gap:1.5rem}
 .product-copy{padding:1.4rem}.product-card .frame{aspect-ratio:4/3}
 .brand-list{gap:.65rem 1.25rem}.brand-list span{font-size:1.15rem}
 .about-grid{gap:2.75rem}.about{padding:3.5rem 0 4rem}
 .why-item{padding:1.4rem;gap:0 1rem}
 .hero .frame{outline-offset:5px}
 .page-title{padding:2.5rem 0 2rem}
}

/* Pulsante WhatsApp fisso, accessibile su desktop e smartphone. */
.whatsapp-float{
 position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));
 z-index:50;display:flex;align-items:center;justify-content:center;width:56px;height:56px;
 border-radius:50%;background:#0B3D2F;color:#FBEFD7;text-decoration:none;
 box-shadow:0 4px 16px rgba(0,0,0,.16);transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.whatsapp-float svg{display:block;width:26px;height:26px;flex:none}
.whatsapp-float:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
@media(hover:hover){.whatsapp-float:hover{background:#164D39;transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,.2)}}
.whatsapp-float:active{transform:scale(.96)}
@media(max-width:620px){.whatsapp-float{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.whatsapp-float{transition:none}.whatsapp-float:hover,.whatsapp-float:active{transform:none}}

/* Logo leggibile e testata condivisa in tutte le pagine. */
:root{--header-height:180px}
html{scroll-padding-top:calc(var(--header-height) + 16px)}
header{position:sticky;top:0;z-index:40;background:var(--paper);color:var(--ink)}
.bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem 1rem;padding:.65rem 0}
.brand{min-width:0;gap:1rem;font-size:1.5rem;line-height:1.2}
.brand-mark{display:block;width:104px;height:104px;max-width:none;object-fit:contain;flex:none}
.brand span{min-width:0}
.bar>.btn{margin-left:0}
.bar nav{grid-column:1/-1;gap:.25rem 1.6rem}
@media(max-width:900px){
 .brand{font-size:1.25rem;gap:.75rem}
 .brand-mark{width:88px;height:88px}
}
@media(max-width:620px){
 .bar{gap:.4rem .6rem;padding:.5rem 0}
 .brand{font-size:1.05rem;gap:.5rem}
 .brand-mark{width:76px;height:76px}
 .bar>.btn{padding:0 .8rem;min-height:42px}
 .bar nav{flex-wrap:nowrap;justify-content:flex-start;gap:1.2rem;overflow-x:auto;white-space:nowrap;padding-bottom:.3rem;max-width:100%}
 .bar nav a{flex:none}
}
