/*
Theme Name: Gentile Andrologia
Theme URI: https://www.andrologo-gentile.com/
Author: Studio Gentile
Description: Tema su misura per lo studio di andrologia e urologia del Dr. Giorgio Gentile.
Version: 1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: gentile
*/

:root {
  --ink: #142238;
  --ink-2: #4b5c73;
  --ink-3: #6f7f94;
  --brand: #0b7fb4;
  --brand-deep: #084f73;
  --brand-light: #39aedf;
  --brand-wash: #e9f5fb;
  --brand-wash-2: #d5ebf6;
  --accent: #009279;
  --accent-deep: #007963;
  --surface: #ffffff;
  --surface-2: #f4f8fb;
  --line: #dde6ee;
  --line-strong: #c3d2e0;
  --radius: 14px;
  --radius-s: 6px;
  --shadow: 0 10px 30px -18px rgba(8, 48, 73, .45);
  --wrap: 1200px;
  --gut: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Figtree", "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) var(--surface-2); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand-wash-2); color: var(--brand-deep); }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 3px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-light); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.25rem + 3.1vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.35rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 1.06rem + .6vw, 1.45rem); font-weight: 600; letter-spacing: -.015em; }
h4 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }

p, ul, ol, table, figure, blockquote { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }
li::marker { color: var(--brand); }

a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: var(--brand-wash-2); transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
a:hover { color: var(--brand); text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 820px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--brand-deep); color: #fff; padding: 12px 18px; }
.skip:focus { left: 0; }

.topbar { background: linear-gradient(97deg, var(--brand-deep), var(--brand) 55%, var(--brand-light)); color: #eaf6fd; font-size: .85rem; }
.topbar__in { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; min-height: 42px; padding-block: 6px; }
.topbar p { margin: 0; letter-spacing: .01em; }
.topbar ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.topbar li { margin: 0; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .6); }
.topbar svg { width: 15px; height: 15px; flex: none; }

.masthead { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand img { width: auto; max-height: 52px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.1; color: var(--brand-deep); letter-spacing: -.03em; }
.brand__kicker { display: block; font-family: var(--sans); font-weight: 400; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.masthead__act { display: flex; align-items: center; gap: 18px; }
.calls { text-align: right; font-size: .82rem; line-height: 1.45; color: var(--ink-3); }
.calls a { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--brand-deep); text-decoration: none; letter-spacing: -.02em; }
.calls a:hover { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: .86rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius-s); border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn--cta { background: var(--accent); color: #fff; }
.btn--cta:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--brand); color: var(--brand-deep); background: transparent; }
.btn--ghost:hover { background: var(--brand-wash); color: var(--brand-deep); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--brand-wash); color: var(--brand-deep); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: #fff; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--brand-deep); position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--brand-deep); transition: transform .28s var(--ease); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mainnav { border-top: 1px solid var(--line); background: #fff; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav > .wrap > ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.mainnav li { margin: 0; position: relative; }
.mainnav a { display: block; padding: 15px 16px; font-family: var(--display); font-weight: 500; font-size: .97rem; color: var(--ink); text-decoration: none; position: relative; }
.mainnav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 9px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .26s var(--ease); }
.mainnav a:hover::after, .mainnav .current-menu-item > a::after, .mainnav .current-menu-ancestor > a::after { transform: scaleX(1); }
.mainnav .current-menu-item > a, .mainnav .current-menu-ancestor > a { color: var(--brand-deep); }
.mainnav .menu-item-has-children > a { padding-right: 32px; }
.mainnav .menu-item-has-children > a::before {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
}
.mainnav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 268px; background: #fff; border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 8px 0; z-index: 5;
}
.mainnav li:hover > .sub-menu, .mainnav li:focus-within > .sub-menu { display: block; animation: gg-drop .22s var(--ease) both; }
@keyframes gg-drop { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.mainnav .sub-menu a { padding: 10px 20px; font-weight: 400; font-size: .94rem; }
.mainnav .sub-menu a::after { display: none; }
.mainnav .sub-menu a:hover { background: var(--brand-wash); color: var(--brand-deep); }

.hero { position: relative; padding: clamp(42px, 5vw, 78px) 0 clamp(46px, 5vw, 86px); background: var(--surface); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--brand-wash-2) 1.5px, transparent 1.6px);
  background-size: 26px 26px; opacity: .75;
  -webkit-mask-image: linear-gradient(170deg, #000 10%, transparent 72%);
  mask-image: linear-gradient(170deg, #000 10%, transparent 72%);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__media { position: relative; }
.hero__media::after { content: ""; position: absolute; left: -14px; top: 34px; bottom: 34px; width: 56%; background: var(--brand-wash); z-index: 0; border-radius: 4px; }
.hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; border-radius: 4px; }
.hero h1 { margin-bottom: .32em; }
.hero__sub { font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem); color: var(--ink-2); max-width: 36em; margin-bottom: 1.5em; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--ink-2); }
.hero__facts li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero__facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.reveal { opacity: 0; transform: translateY(18px); }
.is-ready .reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-ready .hero__txt.reveal { transition-delay: .1s; }

.section { padding: clamp(46px, 5.2vw, 88px) 0; }
.section--alt { background: var(--surface-2); }
.section--tint { background: var(--brand-wash); }
.section__head { max-width: 760px; margin: 0 auto clamp(28px, 3vw, 48px); text-align: center; }
.section__head p { color: var(--ink-2); font-size: 1.06rem; margin: 0; }
.section__head--left { margin-inline: 0; text-align: left; }

.prose { max-width: 72ch; }
.section > .wrap > .prose { margin-inline: auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul li, .prose ol li { margin-bottom: .5em; }
.lede { font-size: 1.15rem; color: var(--ink-2); }

.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); list-style: none; padding: 0; margin: 0; }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; margin: 0; transition: border-color .24s var(--ease), transform .24s var(--ease); }
.tile:hover { border-color: var(--brand-light); transform: translateY(-2px); }
.tile h3 { margin-bottom: .35em; font-size: 1.14rem; }
.tile p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.tile a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile a { text-decoration: none; color: var(--brand-deep); }
.tile__icon { width: 34px; height: 34px; color: var(--brand); margin-bottom: 14px; }
.section--alt .tile { background: #fff; }

.linklist { display: grid; gap: 10px 26px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.linklist li { margin: 0; }
.linklist a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); font-weight: 600; font-family: var(--display); font-size: .96rem; transition: border-color .2s var(--ease), color .2s var(--ease); }
.linklist a:hover { border-color: var(--brand); color: var(--brand-deep); }
.linklist svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

.sedi { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); list-style: none; padding: 0; margin: 0; }
.sede { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; display: flex; flex-direction: column; }
.sede h3 { font-size: 1.08rem; margin-bottom: .45em; }
.sede address { font-style: normal; color: var(--ink-2); font-size: .97rem; margin-bottom: 14px; }
.sede__tel { margin-top: auto; display: grid; gap: 6px; font-size: .95rem; }
.sede__tel dt { color: var(--ink-3); font-size: .84rem; }
.sede__tel a { font-family: var(--display); font-weight: 700; color: var(--brand-deep); text-decoration: none; }
.sede__tel a:hover { color: var(--brand); }

.resume { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: start; margin-top: clamp(26px, 3vw, 44px); }
.resume__col { display: grid; gap: 18px; }
.resume .panel { padding: 26px; }
.resume .panel h3 { font-size: 1.12rem; margin-bottom: .7em; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.plain li { margin: 0; font-size: .97rem; color: var(--ink-2); }
.plain--links { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.plain--links a { color: var(--brand-deep); text-decoration: none; border-bottom: 1px solid var(--brand-wash-2); }
.plain--links a:hover { border-color: var(--brand); }
.prose--mid { max-width: 74ch; margin-inline: auto; }
.prose--mid .lede { font-size: 1.1rem; }
.panel--wide { margin-top: 18px; padding: 26px; }
.plain--cols { columns: 2 330px; column-gap: 34px; display: block; }
.plain--cols li { break-inside: avoid; margin-bottom: 14px; }
.plain--long { gap: 14px; }
.plain--long li { font-size: .9rem; line-height: 1.55; padding-left: 15px; position: relative; }
.plain--long li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); }
.sede__map { margin: 12px 0 0; font-size: .9rem; }
.sede__tel dd { margin: 0 0 6px; }

.priced { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.priced table { font-size: 1rem; }
.priced caption { text-align: left; padding: 16px 22px; font-size: .9rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.priced th, .priced td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.priced thead th { background: var(--brand-wash); font-family: var(--display); font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-deep); }
.priced tbody tr:last-child th, .priced tbody tr:last-child td { border-bottom: 0; }
.priced td:last-child { text-align: right; font-family: var(--display); font-weight: 700; color: var(--brand-deep); white-space: nowrap; }
.priced tbody th { font-weight: 400; }

dfn { font-style: normal; font-weight: 600; }
abbr[title] { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; }

.toc { margin: 24px 0 32px; padding: 20px 24px 22px; background: var(--brand-wash); border-radius: var(--radius); }
.toc__t { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-deep); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.15em; display: grid; gap: 7px; }
.toc li { margin: 0; font-size: .95rem; }
.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brand-wash-2); }
.toc a:hover { color: var(--brand-deep); border-color: var(--brand); }
.prose h2[id] { scroll-margin-top: 92px; }
@media (min-width: 820px) { .toc ol { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

.facts { margin: 24px 0 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 2px 22px; display: grid; grid-template-columns: minmax(142px, 16ch) 1fr; column-gap: 22px; }
.facts dt { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-deep); padding: 15px 0 15px; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .97rem; line-height: 1.5; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.facts a { color: var(--brand-deep); }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; padding: 18px 18px 4px; column-gap: 0; } .facts dt { padding: 0 0 3px; border-bottom: 0; } .facts dd { padding: 0 0 15px; } }

.qa { display: grid; gap: 12px; margin: 22px 0 30px; }
.qa__i { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 19px 22px; }
.qa__i h3 { font-size: 1.01rem; margin: 0 0 .5em; }
.qa__i p { color: var(--ink-2); font-size: .97rem; }
.qa__i > :last-child { margin-bottom: 0; }

.tnav { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin: 24px 0 30px; }
.tnav table, .tnav tbody, .tnav tr, .tnav th, .tnav td { display: block; width: auto; }
.tnav caption { display: block; text-align: left; padding: 16px 22px; font-size: .9rem; color: var(--ink-2); border-bottom: 1px solid var(--line); background: var(--brand-wash); }
.tnav thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnav tr { padding: 17px 22px; border-bottom: 1px solid var(--line); }
.tnav tbody tr:last-child { border-bottom: 0; }
.tnav tbody th { text-align: left; padding: 0; border: 0; margin: 0 0 9px; font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.tnav tbody th a { color: var(--brand-deep); }
.tnav td { position: relative; padding: 0 0 0 112px; border: 0; margin-top: 7px; color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.tnav td::before { content: attr(data-l); position: absolute; left: 0; top: .33em; width: 100px; font-family: var(--display); font-weight: 600; font-size: .72rem; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-deep); }
.tnav .u-now { color: #a8321f; font-weight: 600; }
@media (max-width: 560px) { .tnav td { padding-left: 0; } .tnav td::before { position: static; display: block; width: auto; margin-bottom: 2px; } }

.prose ol { padding-left: 1.3em; }
.prose ol > li { margin-bottom: .55em; }
.prose ol > li::marker { color: var(--brand); font-weight: 700; }

.quotes { columns: 3 292px; column-gap: 18px; list-style: none; padding: 0; margin: 0; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 18px; break-inside: avoid; display: inline-block; width: 100%; }
.quote blockquote { margin: 0 0 14px; font-size: .99rem; color: var(--ink); }
.quote blockquote p { margin-bottom: .7em; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { font-size: .83rem; color: var(--ink-3); }
.stars { height: 15px; margin: 0 0 12px; width: calc(var(--n, 5) * 17px); background-repeat: repeat-x; background-size: 17px 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 15'%3E%3Cpath fill='%23e09a2e' d='m8.5 1 2.1 4.3 4.7.7-3.4 3.3.8 4.7-4.2-2.2-4.2 2.2.8-4.7L1.7 6l4.7-.7Z'/%3E%3C/svg%3E"); }
.more { margin-top: 22px; }
.more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; color: var(--brand-deep); padding: 13px 22px; border: 2px solid var(--brand); border-radius: var(--radius-s); list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { background: var(--brand-wash); }
.more[open] > summary { margin-bottom: 22px; }

.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.gallery li { margin: 0; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery img { width: 100%; aspect-ratio: 53 / 37; object-fit: cover; }
.gallery--docs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.gallery--docs img { aspect-ratio: 53 / 37; object-fit: cover; background: #fff; }
.gallery--docs .is-portrait img { aspect-ratio: 37 / 53; }
.gallery figcaption { padding: 13px 16px; font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); }

.band { background: linear-gradient(103deg, var(--brand-deep), var(--brand) 72%); color: #fff; padding: clamp(40px, 4.4vw, 68px) 0; }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.band h2 { color: #fff; margin-bottom: .3em; }
.band p { color: #cfe8f5; margin: 0; max-width: 54ch; }
.band__acts { display: flex; flex-wrap: wrap; gap: 14px; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { cursor: pointer; padding: 17px 52px 17px 22px; font-family: var(--display); font-weight: 600; font-size: 1.03rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .faq__body { padding: 0 22px 18px; color: var(--ink-2); }
.faq .faq__body > :last-child { margin-bottom: 0; }

.crumbs { font-size: .85rem; color: var(--ink-3); padding: 14px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

.pagehead { padding: clamp(26px, 3vw, 44px) 0 clamp(26px, 3vw, 40px); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: .25em; }
.pagehead p { color: var(--ink-2); max-width: 62ch; margin: 0; font-size: 1.08rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 60px); align-items: start; padding: clamp(36px, 4vw, 64px) 0; }
.aside { position: sticky; top: 120px; display: grid; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.panel--tint { background: var(--brand-wash); border-color: var(--brand-wash-2); }
.panel h2, .panel h3 { font-size: 1.05rem; margin-bottom: .6em; }
.panel p, .panel li { font-size: .94rem; color: var(--ink-2); }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.panel ul a { color: var(--brand-deep); text-decoration: none; }
.panel ul a:hover { text-decoration: underline; }
.panel > :last-child { margin-bottom: 0; }

.notice { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 22px; font-size: .9rem; color: var(--ink-3); }
.notice p { margin-bottom: .6em; }
.notice > :last-child { margin-bottom: 0; }

.fonti { margin: 44px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.fonti h2 { margin: 0 0 8px; font-size: 1.05rem; }
.fonti p { margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); }
.fonti ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.fonti li { margin: 0; font-size: .89rem; line-height: 1.5; padding-left: 15px; position: relative; }
.fonti li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-light); }
.fonti a { color: var(--brand-deep); text-decoration: none; border-bottom: 1px solid var(--brand-wash-2); }
.fonti a:hover { border-color: var(--brand); }
.fonti__meta { color: var(--ink-3); }
.fonti__more { margin: 14px 0 0 !important; font-size: .85rem; }
.fonti__own { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--brand-wash); color: var(--brand-deep); font-size: .76rem; white-space: nowrap; }
.medinfo { margin: 26px 0 0; padding: 18px 22px; border-left: 3px solid var(--brand-light); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.medinfo p { margin: 0; font-size: .87rem; line-height: 1.55; color: var(--ink-2); }
.medinfo__rev { margin-top: 10px !important; font-size: .82rem !important; color: var(--ink-3) !important; }
.medinfo a { color: var(--brand-deep); }
.panel__rev { font-size: .83rem; color: var(--ink-3); }
.mapframe { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.sedeview { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.sedeview__photo { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.sedeview__photo img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.sedeview__photo figcaption { flex: 1; padding: 13px 16px; font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.sedeview .mapframe { display: flex; flex-direction: column; height: 100%; }
.sedeview .mapframe__ph { flex: 1; min-height: 0; }
.sedeview .mapframe iframe { flex: 1; height: auto; min-height: 420px; }
.mapframe iframe { display: block; width: 100%; height: 420px; border: 0; }
.mapframe__ph { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px 26px; }
.mapframe__ph p { margin: 0; max-width: 480px; font-size: .9rem; color: var(--ink-2); }
.mapframe__ph p:last-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.mapframe__alt { color: var(--brand-deep); font-size: .88rem; }


.sitefoot { background: #0f1c2e; color: #b9c7d6; padding: clamp(46px, 5vw, 72px) 0 0; font-size: .95rem; }
.sitefoot h2, .sitefoot h3 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1em; font-weight: 600; }
.sitefoot a { color: #d6e3ef; text-decoration: none; }
.sitefoot a:hover { color: #fff; text-decoration: underline; }
.sitefoot__cols { display: grid; gap: 34px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sitefoot li { margin: 0; }
.sitefoot__brand p { color: #93a5b8; max-width: 38ch; }
.sitefoot__brand .brand__name { color: #fff; }
.sitefoot__brand .brand__kicker { color: #7f93a8; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #27384d; border-radius: var(--radius-s); font-size: .86rem; }
.social a:hover { border-color: var(--brand-light); text-decoration: none; }
.social svg { width: 15px; height: 15px; }
.sitefoot__end { margin-top: 44px; border-top: 1px solid #1e2d40; padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: .85rem; color: #8396aa; }
.sitefoot__end p { margin: 0; }

.aligncenter { margin-inline: auto; text-align: center; }
p.aligncenter { margin-top: 28px; }
.prose figure, .figure-wide { margin: 1.8em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.figure-wide figcaption, .prose figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-3); }
.btn__long { display: inline; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; }

@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .sitefoot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { max-width: 380px; }
  .hero__media::after { display: none; }
  .calls { display: none; }
  .burger { display: inline-flex; }
  .masthead__act .btn--cta { padding: 12px 18px; font-size: .78rem; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: 76vh; overflow-y: auto; }
  .mainnav.is-open { display: block; }
  .mainnav > .wrap > ul { display: block; }
  .mainnav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .mainnav a::after { display: none; }
  .mainnav .menu-item-has-children > a::before { display: none; }
  .mainnav .sub-menu { display: block; position: static; animation: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 8px 16px; min-width: 0; }
  .mainnav .sub-menu a { border: 0; padding: 9px 4px; }
}

@media (max-width: 900px) {
  .resume { grid-template-columns: 1fr; }
  .gallery--docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sedeview { grid-template-columns: 1fr; }
  .sedeview__photo { max-width: 300px; }
  .sedeview .mapframe iframe { min-height: 360px; }
}

@media (max-width: 680px) {
  :root { --gut: 16px; }
  .quotes { columns: 1; }
  .btn__long { display: none; }
  .hero__media { max-width: 260px; }
  .masthead__act { gap: 10px; }
  body { font-size: 16.5px; }
  .topbar__in { justify-content: flex-start; }
  .topbar__note { display: none; }
  .band__in { display: block; }
  .band__acts { margin-top: 22px; }
  .sitefoot__cols { grid-template-columns: 1fr; }
  .priced th, .priced td { padding: 12px 14px; }
  .mapframe iframe { height: 320px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery--docs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
