/* ===========================================================
   COSYTEC — Design System
   =========================================================== */

:root{
  /* Brand colors */
  --flame-600:#e2521f;
  --flame-500:#f3651e;
  --flame-400:#ff8a3d;
  --ice-600:#0a6ea8;
  --ice-500:#0e8fd6;
  --ice-400:#4bc3f0;

  --ink-900:#12181f;
  --ink-800:#1c2531;
  --ink-700:#2c3646;
  --ink-500:#586274;
  --ink-300:#8b95a6;
  --ink-100:#e7eaef;

  --paper-0:#ffffff;
  --paper-50:#f9f7f4;
  --paper-100:#f2efe9;

  --success:#1f9d63;

  --grad-warm: linear-gradient(135deg, var(--flame-600) 0%, var(--flame-400) 100%);
  --grad-cool: linear-gradient(135deg, var(--ice-600) 0%, var(--ice-400) 100%);
  --grad-hero: linear-gradient(120deg, #10161d 0%, #1c2c3a 45%, #0d3752 100%);
  --grad-duo: linear-gradient(135deg, var(--flame-500) 0%, var(--ice-500) 100%);

  --shadow-sm: 0 1px 2px rgba(18,24,31,.06), 0 1px 1px rgba(18,24,31,.04);
  --shadow-md: 0 8px 24px rgba(18,24,31,.10);
  --shadow-lg: 0 24px 48px -12px rgba(18,24,31,.25);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 40px rgba(226,82,31,.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --nav-h: 84px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Inter', system-ui, sans-serif;
  color:var(--ink-800);
  background:var(--paper-50);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Poppins', sans-serif;
  margin:0 0 .5em;
  line-height:1.15;
  color:var(--ink-900);
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--ink-500); }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

section{ padding:100px 0; }
@media (max-width: 768px){ section{ padding:64px 0; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--flame-600);
  background:rgba(226,82,31,.08);
  padding:6px 14px; border-radius:var(--radius-pill);
  margin-bottom:18px;
}
.eyebrow.ice{ color:var(--ice-600); background:rgba(10,110,168,.08); }
.eyebrow i{ font-size:11px; }

.section-head{ max-width:640px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(28px,3.6vw,42px); }
.section-head p{ font-size:17px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 28px; border-radius:var(--radius-pill);
  font-weight:600; font-size:15px; border:none;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--grad-warm); color:#fff; box-shadow:0 12px 24px -8px rgba(226,82,31,.55); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -6px rgba(226,82,31,.6); }
.btn-dark{ background:var(--ink-900); color:#fff; }
.btn-dark:hover{ background:var(--ink-700); transform:translateY(-2px); }
.btn-outline{ background:transparent; color:var(--ink-900); border:1.5px solid var(--ink-100); }
.btn-outline:hover{ border-color:var(--flame-500); color:var(--flame-600); }
.btn-ghost-light{ background:rgba(255,255,255,.1); color:#fff; border:1.5px solid rgba(255,255,255,.35); backdrop-filter:blur(6px); }
.btn-ghost-light:hover{ background:rgba(255,255,255,.2); }
.btn-sm{ padding:10px 18px; font-size:13.5px; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- Placeholder art (stand-in for real photography) ---------- */
.ph{
  position:relative; overflow:hidden; border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  color:#fff; isolation:isolate;
}
.ph::before{
  content:""; position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,.12), transparent 45%);
}
.ph::after{
  content:""; position:absolute; inset:0; opacity:.5; mix-blend-mode:overlay;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 22px);
}
.ph i{ position:relative; z-index:1; font-size:42px; opacity:.9; filter:drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.hero-art .ph i{ font-size:88px; }
.product-card .ph i{ font-size:44px; }
.cart-row-info .ph i{ font-size:24px; }
.team-card .ph i{ font-size:44px; }
.ph span.ph-label{
  position:absolute; z-index:1; bottom:14px; left:14px; font-size:12px; font-weight:600;
  background:rgba(0,0,0,.28); padding:5px 10px; border-radius:var(--radius-pill); letter-spacing:.03em;
}
.ph-warm{ background:var(--grad-warm); }
.ph-cool{ background:var(--grad-cool); }
.ph-duo{ background:var(--grad-duo); }
.ph-dark{ background:linear-gradient(135deg,#232b36,#3a4a5c); }
.ph-navy{ background:linear-gradient(135deg,#0d3752,#123a52); }

/* Real product cutout photo on a brand-color background */
.ph-photo > img{
  position:relative; z-index:1; width:74%; height:74%; object-fit:contain;
  filter:drop-shadow(0 16px 26px rgba(0,0,0,.35));
}

/* Real catalog photo on a plain white card (for shots with a white background) */
.ph-white{ background:#fff; border:1px solid rgba(18,24,31,.08); }
.ph-white::before, .ph-white::after{ content:none; }
.ph-white > img{ position:relative; z-index:1; width:100%; height:100%; object-fit:contain; padding:18px; }

/* Real full-frame photo (installations, gallery) */
.ph-cover{ background:var(--ink-900); }
.ph-cover::before{ content:none; }
.ph-cover::after{
  content:""; background-image:none; mix-blend-mode:normal; opacity:1;
  background:linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
}
.ph-cover > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.ph-cover span.ph-label{ z-index:2; }

/* ===========================================================
   Header / Nav
   =========================================================== */
.topbar{
  background:var(--ink-900); color:var(--ink-300); font-size:13px;
}
.topbar .container{ display:flex; justify-content:space-between; align-items:center; height:38px; }
.topbar-links{ display:flex; gap:22px; }
.topbar-links a{ display:flex; align-items:center; gap:6px; color:var(--ink-300); transition:color .2s; }
.topbar-links a:hover{ color:#fff; }
.topbar-social a{ margin-left:14px; color:var(--ink-300); }
.topbar-social a:hover{ color:var(--flame-400); }

header.nav{
  position:sticky; top:0; z-index:200;
  background:rgba(249,247,244,.85); backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(18,24,31,.06);
}
.nav-row{ height:var(--nav-h); display:flex; align-items:center; justify-content:space-between; }
.logo{ display:flex; align-items:center; gap:10px; font-family:'Poppins',sans-serif; font-weight:700; font-size:22px; color:var(--ink-900); }
.logo .mark{
  width:42px; height:42px; border-radius:12px; background:#fff;
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px;
  box-shadow:var(--shadow-glow); border:1px solid rgba(18,24,31,.06); overflow:hidden;
}
.logo .mark img{ width:100%; height:100%; object-fit:contain; padding:4px; }
.logo small{ display:block; font-family:'Inter',sans-serif; font-weight:500; font-size:10.5px; letter-spacing:.14em; color:var(--ink-300); text-transform:uppercase; }

nav.main-links{ display:flex; align-items:center; gap:2px; }
nav.main-links a{
  padding:10px 16px; border-radius:var(--radius-pill); font-weight:600; font-size:14.5px; color:var(--ink-700);
  transition:background .2s, color .2s; position:relative;
}
nav.main-links a:hover{ background:rgba(18,24,31,.05); color:var(--ink-900); }
nav.main-links a.active{ color:var(--flame-600); }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.cart-btn{ position:relative; width:42px; height:42px; border-radius:50%; background:var(--ink-100); display:flex; align-items:center; justify-content:center; color:var(--ink-800); font-size:16px; }
.cart-btn:hover{ background:var(--ink-900); color:#fff; }
.cart-count{
  position:absolute; top:-4px; right:-4px; background:var(--flame-500); color:#fff; font-size:10.5px; font-weight:700;
  min-width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:2px solid var(--paper-50);
}
.burger{ display:none; width:44px; height:44px; border-radius:50%; border:none; background:var(--ink-100); align-items:center; justify-content:center; font-size:18px; }

@media (max-width: 980px){
  nav.main-links{ display:none; }
  .burger{ display:flex; }
  .topbar{ display:none; }
}

@media (max-width: 560px){
  .logo small{ display:none; }
  .nav-cta .btn-primary{ display:none; }
  .logo{ font-size:19px; gap:8px; }
  .logo .mark{ width:36px; height:36px; }
}

/* mobile drawer */
.mobile-drawer{
  position:fixed; inset:0; z-index:300; display:none;
}
.mobile-drawer.open{ display:block; }
.mobile-drawer .backdrop{ position:absolute; inset:0; background:rgba(12,16,21,.5); }
.mobile-drawer .panel{
  position:absolute; top:0; right:0; height:100%; width:min(320px,86vw); background:#fff; padding:28px 24px;
  box-shadow:var(--shadow-lg); display:flex; flex-direction:column; gap:6px;
  animation:slideIn .25s ease;
}
@keyframes slideIn{ from{ transform:translateX(100%);} to{ transform:translateX(0);} }
.mobile-drawer a{ padding:14px 6px; font-weight:600; font-size:16px; border-bottom:1px solid var(--ink-100); color:var(--ink-800); }
.mobile-drawer .close-drawer{ align-self:flex-end; width:38px; height:38px; border-radius:50%; background:var(--ink-100); border:none; font-size:16px; margin-bottom:10px; }

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  position:relative; background:var(--grad-hero); color:#fff; overflow:hidden;
  padding:110px 0 130px;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 15% 25%, rgba(243,101,30,.35), transparent 45%),
                     radial-gradient(circle at 85% 15%, rgba(14,143,214,.30), transparent 40%);
}
.hero-grid{ position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center; }
@media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; } }

.hero-badges{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px; }
.hero-badge{
  display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  padding:8px 14px; border-radius:var(--radius-pill); font-size:13px; font-weight:600; color:#e7eefc;
  backdrop-filter:blur(6px);
}
.hero-badge i{ color:var(--flame-400); }
.hero h1{ color:#fff; font-size:clamp(34px,5vw,58px); }
.hero h1 span{ background:linear-gradient(90deg,var(--flame-400),var(--ice-400)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.lead{ font-size:18px; color:#c7d0dd; max-width:520px; }
.hero-cta{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }

.hero-stats{ display:flex; gap:36px; margin-top:50px; flex-wrap:wrap; }
.hero-stats .stat b{ display:block; font-family:'Poppins',sans-serif; font-size:26px; color:#fff; }
.hero-stats .stat span{ font-size:12.5px; color:#9fb0c4; text-transform:uppercase; letter-spacing:.06em; }

.hero-art{ position:relative; }
.hero-art .ph{ aspect-ratio:4/5; box-shadow:var(--shadow-lg); }
.hero-float-card{
  position:absolute; background:#fff; color:var(--ink-800); border-radius:var(--radius-md); padding:16px 18px;
  box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:12px; font-size:13.5px; font-weight:600;
}
.hero-float-card.c1{ top:-24px; left:-30px; }
.hero-float-card.c2{ bottom:-22px; right:-24px; }
.hero-float-card .ic{ width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; }
@media (max-width:640px){ .hero-float-card{ display:none; } }

/* ===========================================================
   Cards / Grids
   =========================================================== */
.grid{ display:grid; gap:26px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:980px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-3,.grid-4,.grid-2{ grid-template-columns:1fr; } }

.service-card{
  background:#fff; border-radius:var(--radius-lg); padding:34px 28px; box-shadow:var(--shadow-sm);
  border:1px solid rgba(18,24,31,.05); transition:transform .3s ease, box-shadow .3s ease;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.service-card .icon{
  width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  font-size:22px; color:#fff; margin-bottom:20px;
}
.service-card h3{ font-size:19px; margin-bottom:8px; }
.service-card p{ font-size:14.5px; margin-bottom:16px; }
.service-card .link{ font-size:13.5px; font-weight:700; color:var(--flame-600); display:inline-flex; align-items:center; gap:6px; }

/* stat band */
.stat-band{ background:var(--ink-900); color:#fff; }
.stat-band .grid-4, .stat-band .grid-2{ text-align:center; }
.stat-band .grid-2{ max-width:560px; margin:0 auto; }
.stat-band b{ display:block; font-family:'Poppins',sans-serif; font-size:38px; background:linear-gradient(90deg,var(--flame-400),var(--ice-400)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-band span{ font-size:13px; color:#9fb0c4; letter-spacing:.04em; text-transform:uppercase; }

/* product card */
.product-card{ background:#fff; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid rgba(18,24,31,.05); transition:box-shadow .3s, transform .3s; display:flex; flex-direction:column; }
.product-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.product-card .ph{ border-radius:0; aspect-ratio:4/3; }
.product-card .body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-card .tag{ align-self:flex-start; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:4px 10px; border-radius:var(--radius-pill); background:var(--ink-100); color:var(--ink-500); }
.product-card h3{ font-size:17.5px; margin:0; }
.product-card p{ font-size:13.5px; margin:0; }
.product-card .pdf-link{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:var(--flame-600); }
.product-card .pdf-link:hover{ text-decoration:underline; }
.product-card .price-row{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; padding-top:10px; }
.product-card .price{ font-family:'Poppins',sans-serif; font-weight:700; font-size:20px; color:var(--ink-900); }
.product-card .price small{ font-weight:500; font-size:12px; color:var(--ink-300); }

/* Testimonials */
.testi-card{ background:#fff; border-radius:var(--radius-lg); padding:30px; box-shadow:var(--shadow-sm); border:1px solid rgba(18,24,31,.05); }
.testi-card .stars{ color:#f5a623; font-size:14px; margin-bottom:14px; }
.testi-card .who{ display:flex; align-items:center; gap:12px; margin-top:20px; }
.testi-card .avatar{ width:44px; height:44px; border-radius:50%; }
.testi-card .who b{ display:block; font-size:14px; color:var(--ink-900); }
.testi-card .who span{ font-size:12.5px; color:var(--ink-300); }

/* CTA band */
.cta-band{ background:var(--grad-warm); border-radius:var(--radius-lg); padding:60px; display:flex; align-items:center; justify-content:space-between; gap:30px; color:#fff; position:relative; overflow:hidden; }
.cta-band::after{ content:""; position:absolute; inset:0; background-image:radial-gradient(circle at 90% 10%, rgba(255,255,255,.25), transparent 40%); pointer-events:none; }
.cta-band h2{ color:#fff; font-size:clamp(24px,3vw,34px); max-width:520px; position:relative; }
.cta-band p{ color:rgba(255,255,255,.85); position:relative; }
.cta-band .actions{ position:relative; display:flex; gap:14px; flex-shrink:0; flex-wrap:wrap; }
@media (max-width:820px){ .cta-band{ flex-direction:column; text-align:center; padding:44px 28px; } .cta-band .actions{ justify-content:center; } }

/* Footer */
footer{ background:var(--ink-900); color:var(--ink-300); padding-top:80px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,.08); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
footer h4{ color:#fff; font-size:15px; margin-bottom:20px; }
footer .logo{ color:#fff; margin-bottom:16px; }
footer p{ color:var(--ink-300); font-size:14px; }
footer ul li{ margin-bottom:12px; }
footer ul a{ font-size:14px; color:var(--ink-300); transition:color .2s; }
footer ul a:hover{ color:#fff; }
footer .contact-item{ display:flex; gap:12px; margin-bottom:16px; font-size:14px; }
footer .contact-item i{ color:var(--flame-400); margin-top:3px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:26px 0; font-size:13px; flex-wrap:wrap; gap:10px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background:var(--flame-500); }
.footer-newsletter{ display:flex; margin-top:6px; }
.footer-newsletter input{ flex:1; padding:12px 14px; border-radius:var(--radius-pill) 0 0 var(--radius-pill); border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:#fff; font-size:13.5px; }
.footer-newsletter button{ padding:0 18px; border:none; border-radius:0 var(--radius-pill) var(--radius-pill) 0; background:var(--grad-warm); color:#fff; }

/* ===========================================================
   Inner page header
   =========================================================== */
.page-hero{ background:var(--grad-hero); color:#fff; padding:70px 0; position:relative; overflow:hidden; }
.page-hero::before{ content:""; position:absolute; inset:0; background-image:radial-gradient(circle at 85% 20%, rgba(14,143,214,.3), transparent 45%); }
.page-hero .container{ position:relative; }
.breadcrumb{ font-size:13.5px; color:#9fb0c4; margin-bottom:14px; }
.breadcrumb a:hover{ color:#fff; }
.page-hero h1{ color:#fff; font-size:clamp(30px,4vw,44px); margin-bottom:8px; }
.page-hero p{ color:#c7d0dd; max-width:560px; }

/* Timeline (Chi Siamo) */
.timeline{ position:relative; padding-left:34px; }
.timeline::before{ content:""; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background:var(--ink-100); }
.timeline-item{ position:relative; padding-bottom:44px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{ content:""; position:absolute; left:-34px; top:2px; width:20px; height:20px; border-radius:50%; background:var(--grad-warm); border:4px solid var(--paper-50); box-shadow:0 0 0 2px var(--flame-500); }
.timeline-item b.year{ color:var(--flame-600); font-family:'Poppins',sans-serif; font-size:14px; }
.timeline-item h3{ font-size:19px; margin:6px 0 8px; }

/* Values */
.value-card{ text-align:center; padding:30px 20px; }
.value-card .icon{ width:64px; height:64px; border-radius:50%; margin:0 auto 18px; display:flex; align-items:center; justify-content:center; font-size:24px; color:#fff; }

/* Team */
.team-card{ text-align:center; }
.team-card .ph{ aspect-ratio:1/1; border-radius:50%; width:150px; margin:0 auto 18px; }
.team-card h3{ font-size:16.5px; margin-bottom:2px; }
.team-card span{ font-size:13px; color:var(--flame-600); font-weight:600; }

/* Brand strip */
.brand-strip{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px 40px; padding:36px 0; opacity:.75; }
.brand-strip .b{ font-family:'Poppins',sans-serif; font-weight:700; font-size:19px; color:var(--ink-500); letter-spacing:.02em; }

/* Tabs (Prodotti) */
.tabbar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:46px; }
.tabbar button{ padding:12px 22px; border-radius:var(--radius-pill); border:1.5px solid var(--ink-100); background:#fff; font-weight:600; font-size:14px; color:var(--ink-700); transition:all .2s; }
.tabbar button.active, .tabbar button:hover{ background:var(--ink-900); color:#fff; border-color:var(--ink-900); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation:fadeIn .4s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

/* Promo banner inside prodotti */
.promo-banner{ display:flex; align-items:center; gap:30px; background:var(--ink-900); color:#fff; border-radius:var(--radius-lg); padding:34px; margin-bottom:50px; }
.promo-banner .ic{ width:64px; height:64px; border-radius:16px; background:var(--grad-warm); display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; }
.promo-banner h3{ color:#fff; font-size:19px; margin-bottom:4px; }
.promo-banner p{ color:#aab6c6; margin:0; font-size:14px; }
@media (max-width:640px){
  .promo-banner{ flex-wrap:wrap; }
  .promo-banner > a{ margin-left:0 !important; width:100%; }
}

/* Preventivo form */
.form-wrap{ display:grid; grid-template-columns:1.3fr .9fr; gap:44px; align-items:start; }
.form-wrap > div{ min-width:0; }
@media (max-width:900px){ .form-wrap{ grid-template-columns:1fr; } }
.card-panel{ background:#fff; border-radius:var(--radius-lg); padding:38px; box-shadow:var(--shadow-sm); border:1px solid rgba(18,24,31,.05); }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:8px; color:var(--ink-800); }
.field input, .field select, .field textarea{
  width:100%; padding:13px 16px; border-radius:var(--radius-sm); border:1.5px solid var(--ink-100); font-size:14.5px;
  font-family:inherit; background:var(--paper-50); transition:border-color .2s, box-shadow .2s; color: var(--ink-800);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--flame-500); box-shadow:0 0 0 4px rgba(243,101,30,.12); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:520px){ .field-row{ grid-template-columns:1fr; } }
.checkbox-row{ display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--ink-500); }
.checkbox-row input{ width:auto; margin-top:3px; }
.info-list li{ display:flex; gap:14px; margin-bottom:22px; }
.info-list .ic{ width:44px; height:44px; border-radius:12px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:17px; }
.info-list b{ display:block; font-size:14.5px; color:var(--ink-900); margin-bottom:2px; }
.info-list span{ font-size:13.5px; }
.map-ph{ aspect-ratio:16/10; border-radius:var(--radius-md); margin-top:20px; }

.form-success{ display:none; text-align:center; padding:40px 10px; }
.form-success.show{ display:block; }
.order-success{ display:none; }
.order-success.show{ display:block; }
.form-success .ic{ width:70px; height:70px; border-radius:50%; background:var(--success); color:#fff; font-size:28px; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; }

/* Gallery */
.gallery-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px; }
.gallery-filters button{ padding:10px 20px; border-radius:var(--radius-pill); border:1.5px solid var(--ink-100); background:#fff; font-weight:600; font-size:13.5px; color:var(--ink-700); }
.gallery-filters button.active, .gallery-filters button:hover{ background:var(--ink-900); color:#fff; border-color:var(--ink-900); }
.gallery-grid{ column-count:3; column-gap:22px; }
@media (max-width:900px){ .gallery-grid{ column-count:2; } }
@media (max-width:560px){ .gallery-grid{ column-count:1; } }
.gallery-item{ break-inside:avoid; margin-bottom:22px; cursor:zoom-in; }
.gallery-item .ph{ border-radius:var(--radius-md); transition:transform .3s; }
.gallery-item:hover .ph{ transform:scale(1.02); }

.lightbox{ position:fixed; inset:0; background:rgba(10,14,18,.92); z-index:500; display:none; align-items:center; justify-content:center; padding:40px; }
.lightbox.open{ display:flex; }
.lightbox .ph{ width:min(700px,90vw); aspect-ratio:4/3; }
.lightbox .close-lb{ position:absolute; top:24px; right:28px; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.1); color:#fff; border:none; font-size:18px; }

/* Shop */
.shop-layout{ display:grid; grid-template-columns:260px 1fr; gap:40px; align-items:start; }
@media (max-width:860px){ .shop-layout{ grid-template-columns:1fr; } }
.filter-box{ background:#fff; border-radius:var(--radius-lg); padding:26px; box-shadow:var(--shadow-sm); border:1px solid rgba(18,24,31,.05); position:sticky; top:calc(var(--nav-h) + 20px); }
@media (max-width:860px){ .filter-box{ position:static; } }
.filter-box h4{ font-size:14.5px; margin-bottom:16px; }
.filter-box .fgroup{ margin-bottom:26px; }
.filter-box label{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--ink-500); margin-bottom:10px; }
.filter-box input[type=checkbox]{ width:auto; }
.filter-box input[type=range]{ width:100%; }
.shop-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; flex-wrap:wrap; gap:12px; }
.shop-toolbar select{ padding:10px 14px; border-radius:var(--radius-sm); border:1.5px solid var(--ink-100); background:#fff; font-size:13.5px; }
.add-cart-btn{ width:100%; background:var(--ink-900); color:#fff; border:none; padding:12px; border-radius:var(--radius-pill); font-weight:600; font-size:13.5px; display:flex; align-items:center; justify-content:center; gap:8px; transition:background .2s; }
.add-cart-btn:hover{ background:var(--flame-600); }
.add-cart-btn.added{ background:var(--success); }

/* Cassa / cart */
#cart-render{ max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.cart-table{ width:100%; min-width:480px; border-collapse:collapse; }
.cart-table th{ text-align:left; font-size:12.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-300); padding-bottom:16px; border-bottom:1px solid var(--ink-100); }
.cart-table td{ padding:18px 0; border-bottom:1px solid var(--ink-100); vertical-align:middle; }
.cart-row-info{ display:flex; align-items:center; gap:16px; }
.cart-row-info .ph{ width:76px; height:76px; border-radius:12px; flex-shrink:0; }
.cart-row-info b{ display:block; font-size:14.5px; color:var(--ink-900); }
.cart-row-info span{ font-size:12.5px; }
.qty-box{ display:inline-flex; align-items:center; border:1.5px solid var(--ink-100); border-radius:var(--radius-pill); }
.qty-box button{ width:32px; height:32px; border:none; background:transparent; font-size:15px; color:var(--ink-700); }
.qty-box span{ width:30px; text-align:center; font-weight:600; font-size:14px; }
.remove-btn{ color:var(--ink-300); font-size:16px; border:none; background:none; }
.remove-btn:hover{ color:#e0413c; }
.summary-card{ background:#fff; border-radius:var(--radius-lg); padding:30px; box-shadow:var(--shadow-sm); border:1px solid rgba(18,24,31,.05); position:sticky; top:calc(var(--nav-h) + 20px); }
@media (max-width:900px){ .summary-card{ position:static; } }
.summary-row{ display:flex; justify-content:space-between; font-size:14.5px; margin-bottom:14px; color:var(--ink-500); }
.summary-row.total{ font-size:19px; font-weight:700; color:var(--ink-900); border-top:1px solid var(--ink-100); padding-top:16px; margin-top:6px; }
.promo-row{ display:flex; gap:10px; margin:20px 0; }
.promo-row input{ flex:1; padding:11px 14px; border-radius:var(--radius-sm); border:1.5px solid var(--ink-100); font-size:13.5px; }
.empty-cart{ text-align:center; padding:80px 20px; }
.empty-cart .ic{ font-size:52px; color:var(--ink-100); margin-bottom:20px; }

/* Utility */
.mt-0{margin-top:0;} .center{text-align:center;}
.text-white{color:#fff;}
.flex{display:flex;} .items-center{align-items:center;} .gap-10{gap:10px;}
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* Pulsante WhatsApp fisso */
.whatsapp-fab{
  position:fixed; right:24px; bottom:24px; width:60px; height:60px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:28px; box-shadow:0 8px 24px rgba(37,211,102,.4); z-index:400; transition:transform .2s, background .2s;
}
.whatsapp-fab:hover{ transform:scale(1.08); background:#1ebe5a; color:#fff; }
@media (max-width:560px){ .whatsapp-fab{ width:52px; height:52px; font-size:24px; right:16px; bottom:16px; } }
