/* =====================================================================
   magiacomputers.it — site.css
   Dark/light hybrid, sharp edges (PM brief, 21/10/2026): graphite header,
   hero and footer; light content; the logo's red dot as the one accent;
   electric blue for links on dark. No border-radius anywhere: corners are
   square, or cut at 45° (the "chamfer", --cut) on buttons and cards.
   Colours only from the tokens below.
   ===================================================================== */

@font-face {
  font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/chakra-petch-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/chakra-petch-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/chakra-petch-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/chakra-petch-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* dark surfaces */
  --ink:        #0D1117;   /* header, hero, footer */
  --ink-2:      #161B22;   /* raised dark surface, dark cards */
  --ink-3:      #21262D;   /* hover on dark */
  --line-dark:  #30363D;
  --on-dark:    #E6EDF3;
  --on-dark-2:  #9DA7B3;   /* secondary text on dark: 7.3:1 on --ink */

  /* light surfaces */
  --paper:      #FFFFFF;
  --mist:       #F3F4F6;
  --line:       #D9DDE3;
  --text:       #161B22;
  --text-2:     #4A5361;   /* 7.6:1 on white */

  /* accents */
  --red:        #DC1F2C;   /* logo dot, primary buttons: white on it 4.9:1 */
  --red-hover:  #B9141F;
  --blue:       #3BA6FF;   /* links and details on dark: 7.3:1 on --ink */
  --link:       #0A5FB4;   /* links on light: 6.4:1 on white */

  --head: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --cut: 14px;              /* chamfered corner size */
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 8px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------- buttons */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  min-height: 48px; padding: .7em 1.4em; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 1rem/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { --bg: var(--red-hover); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn--ghost { --bg: transparent; --fg: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--line-dark); clip-path: none; }
.btn--ghost:hover { --bg: var(--ink-3); --fg: #fff; }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--dark:hover { --bg: var(--ink-3); }
.btn--outline { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); clip-path: none; }
.btn--outline:hover { --bg: var(--text); --fg: #fff; }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1rem;
  font: 600 .8rem/1.3 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.on-dark .kicker, .kicker--light { color: var(--blue); }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1; margin-right: auto; }
.brand:hover { color: #fff; }
.brand__name { font: 700 1.5rem/1 var(--head); letter-spacing: .01em; white-space: nowrap; }
.brand__dot { color: var(--red); }
.brand__tag { font: 600 .66rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); margin-top: 6px; white-space: nowrap; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__link, .nav__toggle {
  display: flex; align-items: center; gap: .35em; height: var(--header-h); padding: 0 12px;
  color: var(--on-dark); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font: 600 .95rem/1 var(--head); letter-spacing: .03em;
}
.nav__link:hover, .nav__toggle:hover, .nav__item:hover > .nav__link { color: #fff; }
.nav__link[aria-current], .nav__item.is-active > .nav__link { color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.nav__toggle { width: 28px; padding: 0 4px; margin-left: -10px; }
.nav__toggle .ico { width: 14px; height: 14px; transition: transform .15s; }
.nav__sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 270px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-top: 3px solid var(--red);
  display: none;
}
.nav__sub a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--on-dark); text-decoration: none; font-size: .95rem; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--ink-3); color: #fff; }
.nav__sub a .ico { color: var(--blue); width: 18px; height: 18px; }
.nav__sub .is-overview a { font-weight: 600; color: #fff; border-bottom: 1px solid var(--line-dark); margin-bottom: 6px; padding-bottom: 12px; }
@media (hover: hover) and (min-width: 1101px) {
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: block; }
}
.nav__item.is-open > .nav__sub { display: block; }
.nav__item.is-open > .nav__toggle .ico { transform: rotate(180deg); }

.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 42px; padding: .55em 1.05em; font-size: .92rem; white-space: nowrap; }
@media (max-width: 1320px) { .header-cta .btn__label { display: none; } .header-cta .btn { padding: .55em .8em; } .nav__link { padding: 0 10px; } .site-header__bar { gap: 16px; } }
.menu-btn { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; background: none; border: 1.5px solid var(--line-dark); color: #fff; cursor: pointer; }
.menu-btn .ico { width: 24px; height: 24px; }
.menu-btn .ico--close, .menu-btn[aria-expanded="true"] .ico--open { display: none; }
.menu-btn[aria-expanded="true"] .ico--close { display: block; }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .header-cta .btn__label { display: none; }
  .header-cta .btn { padding: .55em .8em; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); overflow-y: auto;
    padding: 8px var(--gutter) 40px; display: none; border-top: 1px solid var(--line-dark);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; }
  .nav__item { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line-dark); }
  .nav__link { height: auto; min-height: 56px; font-size: 1.1rem; padding: 0; }
  .nav__link[aria-current], .nav__item.is-active > .nav__link { box-shadow: none; color: var(--blue); }
  .nav__toggle { width: 56px; height: 56px; margin: 0; justify-content: center; border-left: 1px solid var(--line-dark); }
  .nav__toggle .ico { width: 18px; height: 18px; }
  .nav__sub { position: static; grid-column: 1 / -1; min-width: 0; border: 0; border-top: 1px solid var(--line-dark); padding: 6px 0 12px; background: transparent; }
  .nav__sub a { padding: 12px 6px; min-height: 48px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.22rem; }
  .brand__tag { font-size: .6rem; letter-spacing: .08em; }
  .header-cta .btn--wa { display: none; }
}

/* ------------------------------------------------------------- dark sections */
.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: var(--blue); }
.on-dark a:not(.btn):hover { color: #fff; }
.grid-bg {
  background-image:
    linear-gradient(rgba(59,166,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,166,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ------------------------------------------------------------- home hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,17,23,.96) 0%, rgba(13,17,23,.88) 45%, rgba(13,17,23,.35) 100%);
}
.hero__inner { padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 860px; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.04; text-transform: uppercase; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark); max-width: 600px; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2.5rem; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.trust li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 16px 0 0; font-size: .95rem; color: var(--on-dark-2); line-height: 1.4; }
.trust li strong { display: block; color: #fff; font: 600 1rem/1.3 var(--head); letter-spacing: .02em; }
.trust .ico { color: var(--blue); width: 26px; height: 26px; margin-top: 2px; }
@media (max-width: 900px) {
  .hero::before { background: rgba(13,17,23,.9); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
}
@media (max-width: 480px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--mist { background: var(--mist); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head h2 { margin: 0; max-width: 760px; }
.section__head p { margin: 0; color: var(--text-2); max-width: 560px; }
.on-dark .section__head p { color: var(--on-dark-2); }
.section__more { display: inline-flex; align-items: center; gap: .5em; font: 600 .95rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.section__more .ico { width: 18px; height: 18px; transition: transform .15s; }
.section__more:hover .ico { transform: translateX(4px); }
.lead-text { font-size: 1.12rem; color: var(--text-2); max-width: 820px; }
.lead-text p:last-child { margin: 0; }

/* audience cards (home) */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aud {
  position: relative; display: flex; flex-direction: column; background: var(--paper); color: var(--text);
  text-decoration: none; border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut) * 2) 0, 100% calc(var(--cut) * 2), 100% 100%, 0 100%);
  transition: border-color .15s;
}
.aud:hover { color: var(--text); border-color: var(--text); }
.aud__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.aud__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.aud:hover .aud__img img { transform: scale(1.04); }
.aud__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 3px solid var(--red); }
.aud__body h3 { margin: 0; }
.aud__body p { margin: 0; color: var(--text-2); font-size: .98rem; }
.aud__more { margin-top: auto; padding-top: 10px; display: inline-flex; gap: .5em; align-items: center; font: 600 .9rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.aud__more .ico { width: 16px; height: 16px; }
@media (max-width: 900px) { .audience { grid-template-columns: minmax(0, 1fr); } .aud { flex-direction: row; } .aud__img { aspect-ratio: auto; width: 38%; } .aud__body { border-top: 0; border-left: 3px solid var(--red); } }
@media (max-width: 520px) { .aud { flex-direction: column; } .aud__img { width: 100%; aspect-ratio: 16 / 9; } .aud__body { border-left: 0; border-top: 3px solid var(--red); } }

/* service tiles: icon + title + text, square */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 30px; background: var(--paper);
  color: var(--text); text-decoration: none; min-height: 100%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .15s;
}
.tile::after { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: var(--red); transition: width .25s; }
.tile:hover { color: var(--text); background: var(--mist); }
.tile:hover::after { width: 100%; }
.tile__ico { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--blue); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.tile__ico .ico { width: 26px; height: 26px; }
.tile h3 { font-size: 1.15rem; margin: 6px 0 0; }
.tile p { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.tile__more { margin-top: auto; padding-top: 6px; display: inline-flex; gap: .45em; align-items: center; color: var(--red); font: 600 .85rem/1 var(--head); text-transform: uppercase; letter-spacing: .07em; }
.tile__more .ico { width: 16px; height: 16px; transition: transform .15s; }
.tile:hover .tile__more .ico { transform: translateX(4px); }
.on-dark .tiles, .on-dark .tile { border-color: var(--line-dark); }
.on-dark .tile { background: var(--ink-2); color: var(--on-dark); }
.on-dark .tile:hover { background: var(--ink-3); color: var(--on-dark); }
.on-dark .tile h3 { color: #fff; }
.on-dark .tile p { color: var(--on-dark-2); }
.on-dark .tile__ico { background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-dark); }
@media (max-width: 1000px) { .tiles, .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles, .tiles--3 { grid-template-columns: minmax(0, 1fr); } .tile { padding: 22px 20px 24px; } }

/* two-up split: text + tiles */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split__text h2 { margin-bottom: .6em; }
.split__text .btn { margin-top: 10px; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .split .tiles { grid-template-columns: minmax(0, 1fr); } }

/* product feature cards (dark band) */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--on-dark);
  background: var(--ink-2); border: 1px solid var(--line-dark);
  clip-path: polygon(0 0, calc(100% - var(--cut) * 2) 0, 100% calc(var(--cut) * 2), 100% 100%, 0 100%);
}
.feature:hover { color: var(--on-dark); border-color: var(--blue); }
.feature__img { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s; }
.feature:hover .feature__img img { opacity: 1; transform: scale(1.04); }
.feature__img--icon { display: grid; place-items: center; color: var(--blue); }
.feature__img--icon .ico { width: 64px; height: 64px; stroke-width: 1.2; }
.feature__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feature__body h3 { margin: 0; font-size: 1.15rem; color: #fff; }
.feature__body p { margin: 0; font-size: .93rem; color: var(--on-dark-2); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* zone chips */
.zones { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zones a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--text); text-decoration: none;
  font: 600 .95rem/1.2 var(--head); letter-spacing: .02em;
}
.zones a .ico { color: var(--red); width: 18px; height: 18px; }
.zones a:hover, .zones a[aria-current] { border-color: var(--text); background: var(--text); color: #fff; }
.on-dark .zones a { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .zones a:hover { background: var(--ink-3); border-color: var(--blue); color: #fff; }
.zone-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .zone-band { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* post cards */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s; }
.post-card:hover { color: var(--text); border-color: var(--text); }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); position: relative; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__img--empty { display: grid; place-items: center; color: var(--blue); }
.post-card__img--empty .ico { width: 54px; height: 54px; stroke-width: 1.2; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { font: 600 .78rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); display: flex; gap: 12px; }
.post-card__body h3 { font-size: 1.15rem; margin: 0; line-height: 1.25; }
.post-card:hover h3 { color: var(--red); }
.post-card__excerpt { margin: 0; font-size: .95rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 40px solid var(--red); transform: rotate(45deg); opacity: .14; pointer-events: none; }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: var(--on-dark-2); }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr); } .cta-band .btn-row { justify-content: flex-start; } }

/* ------------------------------------------------------------- page header */
.page-head { position: relative; overflow: hidden; isolation: isolate; }
.page-head__inner { padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 5vw, 60px); max-width: 860px; }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: .35em; }
.page-head__sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--on-dark-2); margin: 0; max-width: 720px; }
.page-head--img .page-head__inner { max-width: 640px; }
.page-head__media { position: absolute; inset: 0 0 0 auto; width: 46%; z-index: -2; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(13,17,23,.25) 40%, rgba(13,17,23,0) 100%); }
@media (max-width: 860px) {
  .page-head__media { position: relative; width: 100%; height: 200px; clip-path: none; z-index: 0; }
  .page-head--img { display: flex; flex-direction: column-reverse; }
  .page-head__media::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(13,17,23,0) 60%); }
}
.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 600 .78rem/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-dark); }
.crumbs a { color: var(--on-dark-2) !important; text-decoration: none; }
.crumbs a:hover { color: #fff !important; }

/* ------------------------------------------------------------- page body */
.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.layout--narrow { grid-template-columns: minmax(0, 780px); justify-content: center; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: 780px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 1.8em 0 .55em; padding-top: .2em; }
.prose h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--red); margin-bottom: .55em; }
.prose h3, .prose .hx-3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose h4, .prose .hx-4, .prose h5, .prose h6 { font-size: 1.08rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { color: var(--red); }
.prose img { margin: 1.5em 0; border: 1px solid var(--line); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .ta-center { text-align: center; }
.prose .ta-right { text-align: right; }
.prose code { font-size: .92em; background: var(--mist); padding: .1em .35em; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--ink); color: #fff; font: 600 .85rem/1.3 var(--head); letter-spacing: .06em; text-transform: uppercase; }

/* Amazon affiliate links (were ad iframes on Joomla) */
.amz { display: grid; gap: 8px; margin: 1.4em 0; }
.amz__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px;
  background: var(--mist); border: 1px solid var(--line); border-left: 3px solid #FF9900;
  color: var(--text) !important; text-decoration: none; font-size: .95rem; line-height: 1.4;
}
.amz__item:hover { border-color: var(--text); border-left-color: #FF9900; background: var(--paper); }
.amz__cta { flex: none; font: 600 .8rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--text); white-space: nowrap; display: inline-flex; gap: .4em; align-items: center; }
.amz__cta::after { content: "↗"; font-size: 1.1em; }
.amz__note { font-size: .82rem; color: var(--text-2); margin: -.2em 0 1.4em; }
@media (max-width: 520px) { .amz__item { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* side panel (service pages) */
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.panel { border: 1px solid var(--line); background: var(--paper); }
.panel__title { margin: 0; padding: 14px 20px; background: var(--ink); color: #fff; font: 600 .85rem/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.panel__list { list-style: none; margin: 0; padding: 6px 0; }
.panel__list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px; color: var(--text); text-decoration: none; font-size: .96rem; }
.panel__list a .ico { width: 16px; height: 16px; color: var(--text-2); flex: none; }
.panel__list a:hover { background: var(--mist); color: var(--text); }
.panel__list a:hover .ico { color: var(--red); }
.panel__list a[aria-current] { font-weight: 600; box-shadow: inset 3px 0 0 var(--red); background: var(--mist); }
.contact-box { background: var(--ink); color: var(--on-dark); padding: 24px; clip-path: polygon(0 0, calc(100% - var(--cut) * 2) 0, 100% calc(var(--cut) * 2), 100% 100%, 0 100%); }
.contact-box h2, .contact-box .contact-box__title { font: 700 1.3rem/1.2 var(--head); color: #fff; margin: 0 0 .4em; }
.contact-box p { color: var(--on-dark-2); font-size: .95rem; }
.contact-box .btn { width: 100%; margin-top: 10px; }
.contact-box .btn--ghost { --fg: #fff; }
@media (max-width: 980px) { .aside { position: static; } }

/* related cards under a page */


/* ------------------------------------------------------------- dove */
.dove-zones { margin-top: 2em; }
.map-link { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); background: var(--mist); margin: 2em 0 0; }
.map-link .ico { width: 34px; height: 34px; color: var(--red); }
.map-link p { margin: 0; }
.map-link strong { display: block; font-family: var(--head); font-size: 1.05rem; }

/* ------------------------------------------------------------- blog */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; list-style: none; padding: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); text-decoration: none; color: var(--text); font: 600 1rem/1 var(--head); }
.pager a:hover { border-color: var(--text); }
.pager [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-head__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 600 .85rem/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); margin-top: 18px; }
.post-head__meta span { display: inline-flex; gap: 6px; align-items: center; }
.post-head__meta .ico { width: 16px; height: 16px; color: var(--blue); }
.post-cover { margin: 0 0 2em; border: 1px solid var(--line); }
.post-cover img { width: 100%; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3em; }
.post-nav a { background: var(--paper); padding: 18px 20px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.post-nav a:hover { background: var(--mist); color: var(--text); }
.post-nav small { font: 600 .75rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.post-nav .is-next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav .is-next { grid-column: 1; text-align: left; } }

/* ------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.channels { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.channels a, .channels div { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--ink-2); color: var(--on-dark) !important; text-decoration: none; }
.channels a:hover { background: var(--ink-3); }
.channels .ico { width: 28px; height: 28px; color: var(--blue); }
.channels small { display: block; font: 600 .74rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.channels strong { display: block; font: 600 1.15rem/1.3 var(--head); color: #fff; word-break: break-word; }
.channels-wrap { background: var(--ink); color: var(--on-dark); padding: 28px; clip-path: polygon(0 0, calc(100% - var(--cut) * 2) 0, 100% calc(var(--cut) * 2), 100% 100%, 0 100%); }
.channels-wrap h2 { font-size: 1.4rem; color: #fff; }
.channels-wrap p { color: var(--on-dark-2); font-size: .95rem; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font: 600 .9rem/1.3 var(--head); letter-spacing: .04em; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 0; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161B22' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: inset 0 -3px 0 var(--red); }
.field__hint { font-size: .85rem; color: var(--text-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.captcha { display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: end; padding: 16px; background: var(--mist); border: 1px solid var(--line); }
.captcha .field { margin: 0; }
.alert { padding: 16px 18px; border-left: 4px solid var(--red); background: #FDECEE; color: #5C0A10; }
.alert ul { margin: .3em 0 0; padding-left: 1.2em; }
.alert--ok { border-color: #1A7F37; background: #E8F5EC; color: #0F4D21; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- site map page */
.smap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.smap h2 { font-size: 1.15rem; }
.smap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.smap ul ul { padding-left: 16px; margin-top: 6px; border-left: 2px solid var(--line); }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: .95rem; border-top: 3px solid var(--red); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.footer__title { font: 600 .8rem/1.3 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__contacts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .ico { width: 18px; height: 18px; color: var(--blue); margin-top: 3px; }
.footer__brand p { margin: 14px 0 0; max-width: 340px; }
.footer__review { display: inline-flex; flex-wrap: nowrap; gap: 6px 10px; align-items: center; margin-top: 18px; padding: 10px 14px; border: 1.5px solid var(--line-dark); color: var(--on-dark) !important; text-decoration: none !important; font: 600 .82rem/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.footer__review:hover { border-color: #00B67A; }
.footer__review img { height: 21px; width: auto; flex: none; }
.footer__review span { min-width: 0; }

.footer__bottom { border-top: 1px solid var(--line-dark); padding-block: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .85rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; } }

/* floating call/WhatsApp on phones */
.quick { display: none; }
@media (max-width: 700px) {
  .quick { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border-top: 1px solid var(--line-dark); }
  .quick a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; color: #fff; text-decoration: none; font: 600 .95rem/1 var(--head); letter-spacing: .05em; text-transform: uppercase; }
  .quick a + a { border-left: 1px solid var(--line-dark); }
  .quick a:first-child { background: var(--red); }
  .quick .ico { width: 20px; height: 20px; }
  body { padding-bottom: 56px; }
}

/* privacy dialog (playbook tools/privacy-dialog): bottom sheet on a phone, panel from 760px */
body.scroll-locked { position: fixed; left: 0; right: var(--sbw, 0); width: auto; overflow: hidden; }
body.scroll-locked .is-lock-pinned { position: fixed; top: 0; left: 0; right: var(--sbw, 0); }
.sheet { padding: 0; border: 0; background: transparent; color: var(--text); width: 100%; max-width: 100%; max-height: 88svh; margin: auto 0 0; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(13, 17, 23, .72); }
.sheet__box { display: flex; flex-direction: column; max-height: 88svh; background: var(--paper); border-top: 4px solid var(--red); }
.sheet[open] .sheet__box { animation: sheet-in .2s ease-out backwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.sheet__title { font-size: 1.25rem; margin: 0; }
.sheet__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--mist); border: 1px solid var(--line); color: inherit; cursor: pointer; }
.sheet__close .ico { width: 20px; height: 20px; }
.sheet__body { padding: 1.2rem 1.3rem; overflow-y: auto; overscroll-behavior: contain; font-size: .96rem; max-width: none; }
.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.3rem max(.9rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .sheet { width: min(46rem, calc(100% - 3rem)); max-height: 82vh; margin: auto; }
  .sheet__box { max-height: 82vh; }
}

/* 404 */
.notfound { text-align: left; padding-block: clamp(64px, 10vw, 120px); }
.notfound__code { font: 700 clamp(4rem, 14vw, 9rem)/1 var(--head); color: var(--red); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .quick, .aside, .cta-band { display: none !important; }
  body { padding: 0; }
}

/* lists of our own components inside a .prose body: no article list styling */
.prose .zones { padding: 0; margin: 0; }
.prose .zones li { margin: 0; }
.prose .zones li::marker { content: none; }
.map-link { text-decoration: none; color: var(--text); }
.map-link:hover { color: var(--text); border-color: var(--text); }
.map-link:hover strong { color: var(--red-hover); }
.post-cover img { margin: 0; border: 0; }
#modulo { margin-top: 2.2rem; }
#modulo > h2 { margin-bottom: .8em; }
.channels-wrap a:not(.btn) { color: var(--blue); }
.channels-wrap a:not(.btn):hover { color: #fff; }
.reviews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.reviews .footer__review { margin-top: 0; }
.footer__review img[src*="google"] { height: 20px; }
/* Small red text on the grey (--mist) surfaces: --red is 4.46:1 there, under AA; --red-hover is 6.0:1. */
.section--mist .kicker, .tile:hover .tile__more { color: var(--red-hover); }
