/* =========================================================
   WISH IT — Design System
   Restyling 2026 — palette derivata dal logo storico (1995)
   ========================================================= */

:root{
  /* --- Colore: palette derivata dal blu del logo --- */
  --navy-900:#0c2243;     /* testo scuro / sfondi profondi */
  --navy-800:#0f2a52;     /* primario brand */
  --navy-600:#1c4f8c;     /* primario interattivo */
  --signal-500:#2e9bd6;   /* accento — azzurro Wish IT */
  --signal-300:#7cc6ea;   /* accento chiaro / hover */
  --ink:#101820;          /* testo principale */
  --ink-soft:#46505c;     /* testo secondario */
  --mist-50:#f5f7fa;      /* sfondo sezione chiaro */
  --mist-100:#eef1f6;
  --line:#e0e6ed;         /* separatori */
  --paper:#ffffff;
  --ok:#1c8a5a;
  --warn:#b3661a;

  /* --- Tipografia --- */
  --f-display:'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --f-body:'IBM Plex Sans', -apple-system, sans-serif;
  --f-mono:'IBM Plex Mono', monospace;

  /* --- Scala spaziale --- */
  --gap-xs:.5rem;
  --gap-sm:1rem;
  --gap-md:1.75rem;
  --gap-lg:3rem;
  --gap-xl:5.5rem;

  --radius:14px;
  --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(12,34,67,.06), 0 1px 1px rgba(12,34,67,.04);
  --shadow-md:0 8px 24px rgba(12,34,67,.10);
  --shadow-lg:0 24px 48px rgba(12,34,67,.16);

  --maxw:1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
button{font-family:inherit;}

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 1.5rem;
}
.container--narrow{max-width:860px;}
.container--wide{max-width:1320px;}

@media (max-width:640px){
  .container{padding:0 1.25rem;}
}

/* === Typography === */
h1,h2,h3,h4{
  font-family:var(--f-display);
  color:var(--navy-900);
  line-height:1.15;
  margin:0 0 .6em;
  letter-spacing:-.01em;
}
h1{font-size:clamp(2.1rem,4.4vw,3.6rem);font-weight:700;}
h2{font-size:clamp(1.7rem,3vw,2.5rem);font-weight:700;}
h3{font-size:1.3rem;font-weight:600;}
h4{font-size:1.05rem;font-weight:600;}
p{margin:0 0 1em;color:var(--ink-soft);}
p:last-child{margin-bottom:0;}
.lede{font-size:1.18rem;color:var(--ink-soft);max-width:62ch;}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:var(--f-mono);
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--signal-500);
  font-weight:600;
  margin-bottom:.9rem;
}
.eyebrow::before{
  content:"";
  width:18px;height:2px;
  background:var(--signal-500);
  display:inline-block;
}

.section-head{
  max-width:680px;
  margin-bottom:var(--gap-lg);
}
.section-head.center{margin-inline:auto;text-align:center;}

/* === Buttons === */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-family:var(--f-body);
  font-weight:600;
  font-size:.96rem;
  padding:.85rem 1.5rem;
  border-radius:999px;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--navy-800);
  color:#fff;
}
.btn-primary:hover{background:var(--navy-600);transform:translateY(-1px);box-shadow:var(--shadow-md);}
.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--navy-800);
}
.btn-ghost:hover{border-color:var(--navy-800);transform:translateY(-1px);}
.btn-light{
  background:#fff;
  color:var(--navy-800);
}
.btn-light:hover{transform:translateY(-1px);box-shadow:var(--shadow-md);}
.btn-arrow svg{transition:transform .18s ease;}
.btn-arrow:hover svg{transform:translateX(3px);}

/* === Header / Nav === */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid rgba(224,230,237,.8);
  transition:background .2s ease;
}
.site-header .container{
  display:flex;
  align-items:center;
  gap:1.5rem;
  height:78px;
}
.brand{display:flex;align-items:center;gap:.6rem;flex-shrink:0;}
.brand img{height:42px;width:auto;}
.brand-name{
  font-family:var(--f-display);
  font-weight:700;
  font-size:1.05rem;
  color:var(--navy-900);
  line-height:1.1;
}
.brand-name small{
  display:block;
  font-family:var(--f-mono);
  font-weight:500;
  font-size:.62rem;
  letter-spacing:.12em;
  color:var(--ink-soft);
  text-transform:uppercase;
}

.nav{margin-left:auto;display:flex;align-items:center;gap:.5rem;}
.nav ul, .nav li, .dropdown, .dropdown li{list-style:none;}
.nav > ul{
  display:flex;
  align-items:center;
  gap:.15rem;
}
.nav > ul > li{position:relative;}
.nav a{
  display:flex;
  align-items:center;
  gap:.3rem;
  padding:.6rem .6rem;
  font-size:.87rem;
  font-weight:500;
  color:var(--navy-900);
  border-radius:8px;
  white-space:nowrap;
  transition:background .15s ease, color .15s ease;
}
.nav > ul > li > a:hover, .nav a.active{
  background:var(--mist-100);
  color:var(--navy-600);
}
.nav .chev{width:9px;height:9px;flex-shrink:0;}

.has-dropdown .dropdown{
  position:absolute;
  top:100%;left:0;
  margin-top:.4rem;
  min-width:230px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-lg);
  padding:.5rem;
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
  opacity:1;visibility:visible;transform:translateY(0);
}
.dropdown li a{
  padding:.55rem .7rem;
  border-radius:6px;
  font-size:.88rem;
  font-weight:500;
}
.dropdown li a:hover{background:var(--mist-100);color:var(--navy-600);}

.nav-cta{margin-left:.4rem;}
.nav-cta .btn{color:#fff;}
.nav-cta .btn:hover{color:#fff;}

.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.85rem;
  font-weight:600;
  color:var(--navy-900);
  padding:.6rem .7rem;
  border-radius:8px;
  transition:background .15s ease, color .15s ease;
}
.lang-switch:hover{background:var(--mist-100);color:var(--navy-600);}
.nav-cta{display:flex;align-items:center;gap:.3rem;}

.nav-toggle{
  display:none;
  margin-left:auto;
  background:none;border:none;cursor:pointer;
  width:40px;height:40px;
  align-items:center;justify-content:center;
}
.nav-toggle span{
  display:block;width:22px;height:2px;background:var(--navy-900);
  position:relative;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:22px;height:2px;background:var(--navy-900);
  transition:transform .2s ease;
}
.nav-toggle span::before{top:-7px;}
.nav-toggle span::after{top:7px;}

@media (max-width:1380px){
  .nav-toggle{display:flex;}
  .nav{
    position:fixed;
    top:78px;
    right:0;
    bottom:0;
    left:0;
    background:#fff;
    display:flex;
    flex-direction:column;
    padding:1rem 1.5rem 2rem;
    overflow-y:auto;
    transform:translateX(100%);
    transition:transform .25s ease;
    z-index:99;
    height:calc(100vh - 78px);
  }
  .nav.open{transform:translateX(0);}
  .nav > ul{flex-direction:column;align-items:stretch;gap:.15rem;width:100%;}
  .nav > ul > li > a{justify-content:space-between;padding:.85rem .25rem;border-bottom:1px solid var(--line);border-radius:0;font-size:1rem;}
  .has-dropdown .dropdown{
    position:static;opacity:1;visibility:visible;transform:none;
    box-shadow:none;border:none;margin:0 0 0 1rem;padding:0;
    max-height:0;overflow:hidden;transition:max-height .25s ease;
  }
  .has-dropdown.open .dropdown{max-height:600px;}
  .nav-cta{margin:1rem 0 0;flex-direction:column;align-items:stretch;gap:.6rem;}
  .lang-switch{justify-content:center;border:1.5px solid var(--line);}
  .nav-cta .btn{width:100%;justify-content:center;}
}

/* === Page header (sub-pages) === */
.page-hero{
  padding:calc(78px + var(--gap-xl)) 0 var(--gap-lg);
  background:var(--navy-800);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(46,155,214,.35), transparent 55%),
    linear-gradient(160deg,var(--navy-900),var(--navy-800) 60%);
  color:#fff;
  position:relative;
  overflow:hidden;
}
.page-hero::after{
  content:"";
  position:absolute;
  right:-120px;top:-120px;
  width:420px;height:420px;
  border:2px solid rgba(255,255,255,.12);
  border-radius:50%;
}
.page-hero .eyebrow{color:var(--signal-300);}
.page-hero h1{color:#fff;}
.page-hero .lede{color:rgba(255,255,255,.78);}
.page-hero-inner{position:relative;z-index:2;max-width:760px;}

.page-hero.compact{padding-bottom:var(--gap-md);}

/* === Sections === */
.section{padding:var(--gap-xl) 0;}
.section--tight{padding:var(--gap-lg) 0;}
.section--alt{background:var(--mist-50);}
.section--navy{background:var(--navy-800);color:#fff;}
.section--navy h2, .section--navy h3{color:#fff;}
.section--navy p{color:rgba(255,255,255,.75);}

.divider-arc{
  width:100%;
  height:48px;
  display:block;
}

/* === Cards === */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.9rem;
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:transparent;}

.svc-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.25rem;
}
@media (max-width:768px){.svc-grid{grid-template-columns:1fr;}}

.svc-card{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:2rem;
  transition:box-shadow .2s ease, transform .2s ease;
}
.svc-card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px);}
.svc-code{
  font-family:var(--f-mono);
  font-size:.78rem;
  color:var(--signal-500);
  letter-spacing:.06em;
  margin-bottom:1rem;
  display:block;
}
.svc-card h3{margin-bottom:.5rem;}
.svc-card p{font-size:.96rem;}

.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.25rem;
}
@media (max-width:991px){.product-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.product-grid{grid-template-columns:1fr;}}

.product-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:box-shadow .2s ease, transform .2s ease;
  height:100%;
}
.product-card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px);}
.product-card .logowrap{
  height:96px;
  display:flex;align-items:center;justify-content:center;
  padding:1.5rem 2rem;
  background:var(--mist-50);
  border-bottom:1px solid var(--line);
}
.product-card .logowrap img{max-height:38px;width:auto;max-width:100%;}
.product-card .body{padding:1.4rem 1.5rem 1.6rem;display:flex;flex-direction:column;gap:.6rem;flex:1;}
.product-card .body h3{font-size:1.05rem;margin:0;}
.product-card .body p{font-size:.88rem;margin:0;flex:1;}
.product-card .tag{
  font-family:var(--f-mono);
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--signal-500);
}
.product-card .more{
  font-size:.85rem;font-weight:600;color:var(--navy-600);
  display:inline-flex;align-items:center;gap:.35rem;margin-top:.3rem;
}
.product-card .more svg{transition:transform .15s ease;}
.product-card:hover .more svg{transform:translateX(3px);}

/* === Stats === */
.stat-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.5rem;
}
@media (max-width:768px){.stat-row{grid-template-columns:repeat(2,1fr);}}
.stat{
  border-left:2px solid var(--signal-500);
  padding-left:1.1rem;
}
.stat .num{
  font-family:var(--f-display);
  font-size:2.2rem;
  font-weight:700;
  color:var(--navy-900);
  line-height:1;
}
.stat .label{font-size:.86rem;color:var(--ink-soft);margin-top:.3rem;}

/* === Clients strip === */
.clients-strip{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:2.5rem 3.2rem;
}
.clients-strip img{
  height:34px;width:auto;
  max-width:130px;
  object-fit:contain;
  filter:grayscale(1) opacity(.55);
  transition:filter .2s ease;
}
.clients-strip img:hover{filter:grayscale(0) opacity(1);}

.clients-strip--cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.2rem;
  justify-content:initial;
}
@media (max-width:900px){.clients-strip--cards{grid-template-columns:repeat(3,1fr);}}
@media (max-width:600px){.clients-strip--cards{grid-template-columns:repeat(2,1fr);}}
.clients-strip--cards img{
  height:auto;
  max-width:100%;
  width:100%;
  max-height:none;
  background:var(--mist-50);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:1.6rem;
  filter:none;
}
.clients-strip--cards img:hover{box-shadow:var(--shadow-sm);}

/* === Info / contact items === */
.info-list{display:flex;flex-direction:column;gap:1.4rem;}
.info-item{
  display:flex;gap:1rem;align-items:flex-start;
}
.info-item .ic{
  flex-shrink:0;
  width:42px;height:42px;
  border-radius:10px;
  background:var(--mist-100);
  color:var(--navy-700,var(--navy-600));
  display:flex;align-items:center;justify-content:center;
}
.info-item h4{margin:0 0 .15rem;font-size:.95rem;}
.info-item p{margin:0;font-size:.92rem;}

/* === Forms === */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
@media (max-width:640px){.form-grid{grid-template-columns:1fr;}}
.form-grid .full{grid-column:1/-1;}
.field label{
  display:block;font-size:.82rem;font-weight:600;color:var(--navy-900);margin-bottom:.4rem;
}
.field input, .field textarea, .field select{
  width:100%;
  font-family:inherit;
  font-size:.95rem;
  padding:.8rem .95rem;
  border:1.5px solid var(--line);
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none;
  border-color:var(--signal-500);
  box-shadow:0 0 0 3px rgba(46,155,214,.18);
}
.field textarea{resize:vertical;min-height:140px;}
.form-status{font-size:.9rem;}
.form-status.ok{color:var(--ok);}
.form-status.err{color:#c0392b;}

/* === Hero (homepage) === */
.hero{
  padding:calc(78px + 4rem) 0 5rem;
  background:var(--navy-800);
  background-image:
    radial-gradient(circle at 88% 12%, rgba(46,155,214,.32), transparent 50%),
    linear-gradient(165deg,var(--navy-900),var(--navy-800) 65%);
  color:#fff;
  overflow:hidden;
  position:relative;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:3rem;
  align-items:center;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-art{order:-1;max-width:280px;margin:0 auto;}
}
.hero h1{color:#fff;font-size:clamp(2.3rem,5vw,3.9rem);}
.hero .eyebrow{color:var(--signal-300);}
.hero .lede{color:rgba(255,255,255,.78);font-size:1.15rem;}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin:1.8rem 0 2.6rem;}
.hero .btn-ghost{border-color:rgba(255,255,255,.35);color:#fff;}
.hero .btn-ghost:hover{border-color:#fff;background:rgba(255,255,255,.08);}
.hero-stats{
  display:flex;
  gap:2.2rem;
  flex-wrap:wrap;
  padding-top:1.8rem;
  border-top:1px solid rgba(255,255,255,.16);
}
.hero-stats .num{
  display:block;
  font-family:var(--f-display);
  font-weight:700;
  font-size:1.3rem;
  color:#fff;
}
.hero-stats .label{
  display:block;
  font-size:.78rem;
  color:rgba(255,255,255,.6);
  margin-top:.2rem;
}
.hero-art{display:flex;justify-content:center;align-items:center;}
.ring-art{width:100%;max-width:440px;height:auto;}
.ring-art .node-dots circle{animation:pulse 3.4s ease-in-out infinite;}
.ring-art .node-dots circle:nth-child(2){animation-delay:.5s;}
.ring-art .node-dots circle:nth-child(3){animation-delay:1s;}
.ring-art .node-dots circle:nth-child(4){animation-delay:1.5s;}
.ring-art .node-dots circle:nth-child(5){animation-delay:2s;}
.ring-art .node-dots circle:nth-child(6){animation-delay:2.5s;}
@keyframes pulse{
  0%,100%{opacity:.55;}
  50%{opacity:1;}
}
@media (prefers-reduced-motion: reduce){
  .ring-art .node-dots circle{animation:none;}
}

/* === About grid (homepage) === */
.about-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:3rem;
  align-items:start;
}
@media (max-width:900px){.about-grid{grid-template-columns:1fr;}}
.about-points{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;}
@media (max-width:640px){.about-points{grid-template-columns:1fr;}}
.about-points .point h4{
  font-size:.98rem;
  margin-bottom:.4rem;
  position:relative;
  padding-left:1rem;
}
.about-points .point h4::before{
  content:"";
  position:absolute;left:0;top:.2em;
  width:6px;height:6px;
  border-radius:50%;
  background:var(--signal-500);
}
.about-points .point p{font-size:.92rem;}

/* === Product detail pages === */
.product-detail-grid{
  display:grid;
  grid-template-columns:1fr .42fr;
  gap:3rem;
  align-items:start;
}
@media (max-width:900px){
  .product-detail-grid{grid-template-columns:1fr;}
}
.feature-block{
  padding:1.8rem 0;
  border-bottom:1px solid var(--line);
}
.feature-block:first-child{padding-top:0;}
.feature-block:last-child{border-bottom:none;}
.feature-block .svc-code{margin-bottom:.6rem;}
.feature-block h3{font-size:1.2rem;margin-bottom:.5rem;}
.feature-block p{font-size:.98rem;}

.side-card{
  position:sticky;
  top:100px;
  background:var(--mist-50);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.8rem;
}
.product-hero-logo{
  max-height:46px;
  width:auto;
  max-width:100%;
}

.quad-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.2rem;
  margin-top:2.2rem;
}
@media (max-width:640px){.quad-grid{grid-template-columns:1fr;}}
.quad{
  background:var(--mist-50);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:1.4rem 1.5rem;
}
.quad h4{
  font-family:var(--f-mono);
  font-size:.82rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--signal-500);
  margin-bottom:.5rem;
}
.quad p{font-size:.9rem;margin:0;}

.callout{
  margin-top:2.2rem;
  padding-top:1.8rem;
  border-top:1px solid var(--line);
}

.contact-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:3.5rem;
  align-items:start;
}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr;}}

.cert-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:center;
  padding:3rem 0;
  border-bottom:1px solid var(--line);
}
.cert-row:last-child{border-bottom:none;}
.cert-row.reverse{direction:rtl;}
.cert-row.reverse > *{direction:ltr;}
@media (max-width:850px){
  .cert-row, .cert-row.reverse{grid-template-columns:1fr;direction:ltr;}
}
.cert-media img{
  border-radius:var(--radius);
  border:1px solid var(--line);
  width:100%;
}
.cert-copy p{font-size:.98rem;}

.news-article{max-width:760px;margin:0 auto;}
.news-article-img{
  width:100%;
  border-radius:var(--radius);
  border:1px solid var(--line);
  max-height:420px;
  object-fit:cover;
}

.site-footer{
  background:var(--navy-900);
  color:rgba(255,255,255,.72);
  padding:var(--gap-xl) 0 var(--gap-md);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:2.5rem;
  padding-bottom:var(--gap-lg);
  border-bottom:1px solid rgba(255,255,255,.12);
}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.footer-grid{grid-template-columns:1fr;}}
.footer-brand img{height:38px;margin-bottom:1rem;}
.footer-brand p{color:rgba(255,255,255,.55);font-size:.88rem;max-width:280px;}
.footer-col h5{
  font-family:var(--f-mono);
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--signal-300);
  margin-bottom:1rem;
  font-weight:600;
}
.footer-col ul{display:flex;flex-direction:column;gap:.6rem;}
.footer-col a{font-size:.9rem;color:rgba(255,255,255,.72);transition:color .15s ease;}
.footer-col a:hover{color:#fff;}
.footer-bottom{
  padding-top:var(--gap-md);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:1rem;
  font-size:.82rem;
  color:rgba(255,255,255,.5);
}
.footer-bottom a{color:rgba(255,255,255,.65);}
.footer-bottom a:hover{color:#fff;}

/* === Back to top === */
.back-to-top{
  position:fixed;
  right:1.5rem;bottom:1.5rem;
  width:46px;height:46px;
  border-radius:50%;
  background:var(--navy-800);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;
  transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
  z-index:90;
  box-shadow:var(--shadow-md);
}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0);}
.back-to-top:hover{background:var(--navy-600);}

/* === Cookie banner === */
.cookie-banner{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:200;
  background:var(--navy-900);
  color:#fff;
  padding:1.1rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.5rem;
  flex-wrap:wrap;
  box-shadow:0 -8px 24px rgba(0,0,0,.18);
}
.cookie-banner p{color:rgba(255,255,255,.82);font-size:.88rem;margin:0;max-width:640px;}
.cookie-banner a{text-decoration:underline;color:#fff;}
.cookie-actions{display:flex;gap:.6rem;flex-shrink:0;}
.cookie-actions button{
  border-radius:999px;
  padding:.55rem 1.2rem;
  font-size:.85rem;
  font-weight:600;
  border:1.5px solid rgba(255,255,255,.3);
  background:transparent;
  color:#fff;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
}
#cookie-accept{background:var(--signal-500);border-color:var(--signal-500);}
.cookie-actions button:hover{background:rgba(255,255,255,.14);}
#cookie-accept:hover{background:var(--signal-300);border-color:var(--signal-300);}

/* === Utilities === */
.text-center{text-align:center;}
.mt-0{margin-top:0;}
.flow > * + *{margin-top:1rem;}
.tag-pill{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.78rem;
  font-weight:600;
  padding:.3rem .75rem;
  border-radius:999px;
  background:var(--mist-100);
  color:var(--navy-700,var(--navy-600));
}
.hr-soft{border:none;border-top:1px solid var(--line);margin:0;}

[data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;
}
[data-reveal].in{opacity:1;transform:translateY(0);}

@media (prefers-reduced-motion: reduce){
  [data-reveal]{opacity:1;transform:none;transition:none;}
  html{scroll-behavior:auto;}
}

/* === Generic content page (legal/text pages) === */
.prose{max-width:760px;}
.prose h2{margin-top:2.2rem;}
.prose h2:first-child{margin-top:0;}
.prose p{font-size:1rem;}
.prose ul{padding-left:1.3rem;margin-bottom:1em;list-style:disc;}
.prose li{margin-bottom:.5rem;color:var(--ink-soft);}
.meta-box{
  background:var(--mist-50);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.4rem 1.6rem;
  font-size:.92rem;
  margin-bottom:2rem;
}
.meta-box dt{font-weight:600;color:var(--navy-900);font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;}
.meta-box dd{margin:.1rem 0 .9rem;color:var(--ink-soft);}
.meta-box dd:last-child{margin-bottom:0;}

/* === News === */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;}
@media (max-width:900px){.news-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.news-grid{grid-template-columns:1fr;}}
.news-card{
  display:flex;flex-direction:column;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  transition:box-shadow .2s ease, transform .2s ease;
}
.news-card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px);}
.news-card .thumb{height:170px;overflow:hidden;background:var(--mist-100);}
.news-card .thumb img{width:100%;height:100%;object-fit:cover;}
.news-card .body{padding:1.3rem 1.4rem;}
.news-card .date{font-family:var(--f-mono);font-size:.72rem;color:var(--signal-500);text-transform:uppercase;letter-spacing:.05em;}
.news-card h3{font-size:1.02rem;margin:.5rem 0 0;}

/* === Gallery (image-based product pages) === */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}
@media (max-width:768px){.gallery-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:480px){.gallery-grid{grid-template-columns:1fr;}}
.gallery-grid img{
  border-radius:var(--radius-sm);
  border:1px solid var(--line);
  cursor:zoom-in;
  transition:box-shadow .2s ease;
}
.gallery-grid img:hover{box-shadow:var(--shadow-md);}

/* === Lightbox (simple) === */
.lightbox{
  position:fixed;inset:0;z-index:300;
  background:rgba(12,34,67,.92);
  display:none;
  align-items:center;justify-content:center;
  padding:2rem;
}
.lightbox.open{display:flex;}
.lightbox img{max-width:92vw;max-height:88vh;border-radius:8px;}
.lightbox-close{
  position:absolute;top:1.5rem;right:1.5rem;
  width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;border:none;
}

/* === 404 / status pages === */
.status-page{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  background:var(--navy-800);
  background-image:radial-gradient(circle at 80% 15%, rgba(46,155,214,.3), transparent 55%), linear-gradient(160deg,var(--navy-900),var(--navy-800) 70%);
  color:#fff;
  text-align:center;
  padding:2rem;
}
.status-page .code{
  font-family:var(--f-mono);
  font-size:1rem;
  color:var(--signal-300);
  letter-spacing:.1em;
  margin-bottom:1rem;
}
.status-page h1{color:#fff;font-size:clamp(2.4rem,6vw,4rem);}
.status-page p{color:rgba(255,255,255,.72);max-width:420px;margin:0 auto 1.8rem;}

/* === CTA banner === */
.cta-banner{
  background:var(--navy-800);
  background-image:radial-gradient(circle at 15% 20%, rgba(46,155,214,.3), transparent 50%), linear-gradient(135deg,var(--navy-900),var(--navy-700,var(--navy-800)));
  border-radius:24px;
  padding:3.2rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
  flex-wrap:wrap;
  color:#fff;
}
.cta-banner h2{color:#fff;margin-bottom:.4rem;}
.cta-banner p{color:rgba(255,255,255,.75);margin:0;}
.cta-banner .actions{display:flex;gap:.8rem;flex-wrap:wrap;}

/* === Skip link === */
.skip-link{
  position:absolute;left:-999px;top:0;
  background:var(--navy-800);color:#fff;
  padding:.6rem 1rem;z-index:999;
}
.skip-link:focus{left:1rem;top:1rem;}

:focus-visible{outline:2.5px solid var(--signal-500);outline-offset:2px;}
