:root {
  --paper: #f4f0e7;
  --navy: #12283e;
  --body: #364e62;
  --accent: #9b390d;
  --accent-light: #ffc297;
  --brand-blue: #17476d;
  --ice: #dce9f0;
  --mist: #e8eff2;
  --line: #b7cad6;
  --width: 1190px;
}

.site-header { background: #f8f5ee; border-color: #cfd9df; }
.header-inner { min-height: 74px; }
.brand span { border-color: #345875; }
nav a { padding-block: 10px; }
.nav-contact { padding-inline: 14px; border-color: #8da6b8; border-radius: 6px; }
.button { border-radius: 6px; background: var(--brand-blue); }
.button:hover { background: #123854; }
a:focus-visible, button:focus-visible { outline-color: #9b390d; }
.skip { color: var(--navy); }
main:focus { outline: 0; }

.hero { background: linear-gradient(112deg, #f4f0e7 13%, #e6ebea 59%, #d4e3ed 100%); border-bottom: 1px solid #bfced9; }
.hero-inner { min-height: clamp(409px, 38vw, 480px); padding-block: 49px 56px; }
.hero-copy { width: min(645px, 56%); }
.hero h1 { font-size: clamp(3rem, 6.35vw, 6.15rem); line-height: .97; letter-spacing: -.065em; }
.hero p { max-width: 420px; margin-top: 21px; }
.hero .button { margin-top: 20px; }
.hero-art {
  inset: 0 0 0 54%;
  filter: none;
  mask-image: none;
  overflow: hidden;
  border-radius: 105px 0 0 0;
  background:
    radial-gradient(ellipse at 70% 42%, #2b5f88 0, transparent 66%),
    linear-gradient(140deg, #142e47, #123b5b 56%, #19496a);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .66;
  background-image:
    linear-gradient(#9bc5dd22 1px, transparent 1px),
    linear-gradient(90deg, #9bc5dd22 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 54% 55%, black 26%, transparent 77%);
}
.module-map { position: absolute; width: min(83%, 560px); height: 75%; left: 5%; top: 12%; }
.map-route { position: absolute; border: 1px solid #92bad582; }
.map-route-in { top: 29%; left: 14%; width: 30%; height: 22%; border-bottom: 0; border-left: 0; border-radius: 0 15px 0 0; }
.map-route-mid { top: 50%; left: 43%; width: 43%; height: 24%; border-top: 0; border-right: 0; border-radius: 0 0 0 15px; }
.map-route-out { top: 12%; left: 57%; width: 24%; height: 29%; border-bottom: 0; border-left: 0; border-radius: 0 15px 0 0; opacity: .62; }
.map-tile {
  position: absolute;
  display: grid;
  align-content: center;
  gap: clamp(5px, 1.15vw, 12px);
  padding: clamp(7px, 1.6vw, 19px);
  border: 1px solid #b1d0e4a8;
  border-radius: clamp(7px, 1.2vw, 14px);
  background: linear-gradient(145deg, #83abc964, #194566e8);
  box-shadow: 0 14px 28px #0a1d3366, inset 0 1px #d5ecfa4d;
}
.map-tile i { height: clamp(3px, .53vw, 7px); border-radius: 99px; background: #b9d7e7; opacity: .8; }
.map-tile i:nth-child(2) { width: 73%; opacity: .6; }
.map-tile i:nth-child(3) { width: 88%; }
.map-tile i:nth-child(4) { width: 50%; opacity: .53; }
.map-tile-in { left: 8%; top: 14%; width: 26%; height: 30%; transform: rotate(-8deg); }
.map-tile-core { left: 32%; top: 21%; width: 40%; height: 49%; transform: rotate(-8deg); background: linear-gradient(140deg, #d9ebf5, #9bc1da); border-color: #e3f1f7; }
.map-tile-core i { background: #285678; }
.map-tile-core i:nth-child(2) { background: #ab4f24; opacity: .9; }
.map-tile-out { left: 69%; top: 59%; width: 24%; height: 25%; transform: rotate(-8deg); }
.map-flare { position: absolute; top: 10%; left: 56%; width: clamp(5px, .9vw, 12px); aspect-ratio: 1; border-radius: 50%; background: #ffc297; box-shadow: 0 0 0 4px #ffc29729; }

.projects { padding-block: 44px 58px; }
.section-title { justify-content: start; gap: 14px; text-align: left; }
.section-title::before { flex: 0 0 26px; width: 26px; height: 3px; background: #ad5124; }
.section-title::after { display: none; }
.cards { gap: 17px; }
.project { border: 1px solid #adc4d3; border-radius: 13px; min-height: 235px; }
.project-tsn { background: #dbe9f2; }
.project-bet { background: #f0e5d7; border-color: #d4bca6; }
.project-content > p { color: #203d55; }
.project-link span { border-radius: 5px; color: var(--brand-blue); }
.project-bet .project-link span { color: var(--accent); }
.project-link { min-height: 44px; }
.tsn-art {
  background: repeating-radial-gradient(circle at 87% 53%, #a0bcd1 0 13px, #6f95b3 19px 32px, #a9c3d7 38px 49px, #a0bcd1 55px);
  mask-image: linear-gradient(90deg, transparent 6%, #0008 63%, #000 100%);
}
.project-bet .bet-art { filter: saturate(.55); opacity: .79; }

.custom { color: var(--navy); background: #cddfe9; border-block: 1px solid #b6cbd9; }
.custom-intro p, .applications p { color: #29485e; }
.applications > div { border-color: #8ca8bb; }
.applications svg, .text-link, .text-link span { color: #17476d; }
.history { background: #e7eef1; border-color: #c0d2dc; }
.history-inner { justify-content: start; min-height: 171px; }
.history-inner h2 { font-style: normal; }
.history-inner img { width: clamp(59px, 8vw, 90px); }
.contact { background: #f0e9dd; }
footer { background: #e2eaf0; border-color: #b9cddc; }
.footer-inner { color: #29465d; }

.product-hero-inner { padding-block: clamp(42px, 6vw, 72px); }
.product-page-tsn { --product-tint: #d8e8f2; --product-accent: #245b80; }
.product-page-tsn .product-hero .tsn-art {
  background: repeating-radial-gradient(circle at 85% 53%, #a1c0d8 0 17px, #658dad 24px 40px, #b4cddd 48px 64px, #a1c0d8 72px);
  mask-image: linear-gradient(90deg, transparent 10%, #0004 55%, #000 93%);
}
.product-page-tsn .product-features article { background: #e9f0f4; border-color: #b4cbd9; border-top-color: #437c9e; }
.gare-aside { background: #d0e1ec; padding-block: clamp(29px, 4.3vw, 49px); color: var(--navy); border-block: 1px solid #aec8d9; }
.gare-aside .product-aside-inner { grid-template-columns: minmax(170px, .65fr) minmax(0, 1.6fr); }
.gare-aside p { color: #284457; }
.gare-badge { background: #ffc297; color: #592f1b; }
.gare-aside .gare-target { border-color: #638ca7; background: repeating-radial-gradient(circle, #d4e6ef 0 8%, #527a96 8.5% 9.4%, #d4e6ef 10% 16.2%); }
.gare-aside .gare-target::after { background: #ab4c21; box-shadow: 0 0 0 3px #ab4c2130; }
.gare-target-front { box-shadow: 5px 7px 15px #365e7130; }
.gare-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 9px; color: #17476d; font-weight: 700; text-underline-offset: .2em; }

.product-page-bet { --product-tint: #ede3d6; --product-accent: #9b390d; }
.product-page-bet .product-hero .bet-art { filter: saturate(.58); opacity: .72; }
.bet-principles article { background: #e8eef1; border-color: #b9cdd9; }
.bet-principles article:nth-child(3) { background: #d4e3ec; }
.bet-principles .bet-icon, .bet-principles article:nth-child(3) .bet-icon { background: #f4e9dd; }
.bet-functions { background: #c4d8e5; border-color: #a9c1d1; }
.bet-functions .product-features article { border: 1px solid #a8c0cf; border-top-color: #567c97; background: #e3edf2; border-radius: 9px; padding: clamp(17px, 2.3vw, 27px); }
.bet-functions .bet-icon { color: #245b80; }
.bet-signature { color: var(--navy); background: linear-gradient(105deg, #e9d8c4, #eddfcf 50%, #d9e4eb 100%); border-block: 1px solid #c5b29e; }
.bet-closing-mark { color: var(--brand-blue); }
.bet-closing-phrase { border-left-color: #966344; }
.bet-closing-phrase strong { color: #9b390d; }
.product-page-bet .contact { background: #dce9f0; }
.product-page-bet .contact .button { background: #9b390d; }
.product-page-bet .contact .button:hover { background: #773009; }

.story-masthead { display: flex; align-items: center; gap: clamp(17px, 4vw, 45px); margin-block: 16px 27px; }
.story-masthead img { flex-shrink: 0; width: clamp(60px, 8vw, 104px); height: auto; }
.story-masthead h1 { margin: 0; }
.work-table thead th { background: #164264; }
.work-table tbody tr:nth-child(even) { background: #e4edf2; }
.work-table tbody tr { border-color: #c0d0da; }
.work-logos img { border-color: #bfced8; }

@media (max-width: 820px) {
  .header-inner { min-height: 67px; }
  .hero-copy { width: 58%; }
  .hero-art { inset-inline-start: 57%; }
  .module-map { width: 85%; height: 62%; top: 21%; }
}

@media (max-width: 675px) {
  .hero-inner { padding-block: 43px 163px; min-height: 0; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2.44rem, 9.7vw, 3.8rem); }
  .hero-art { inset: auto 0 0 0; height: 135px; border-radius: 48px 0 0 0; }
  .module-map { width: min(74%, 375px); height: 91%; left: 18%; top: 6%; }
  .project { min-height: 213px; }
  .gare-aside .product-aside-inner { grid-template-columns: 1fr; }
  .product-page-bet .product-hero .bet-art { opacity: .28; }
  .story-masthead h1 { font-size: clamp(2rem, 7.7vw, 3.4rem); }
}

/* Presentazione personale e portfolio distinti */
.story-page .personal-profile { max-width: 790px; margin-inline: auto; }
.story-page .personal-profile p + p { margin-top: 1.15em; }
.story-page .past-work { margin-top: clamp(3rem, 6vw, 5.5rem); }
