:root {
  --red: #d01c34;
  --red-dark: #ad172a;
  --ink: #151515;
  --ink-soft: #272727;
  --paper: #f4f1ec;
  --white: #fff;
  --muted: #626262;
  --line: rgba(21, 21, 21, .16);
  --max: 1220px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 1rem;
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--red);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.site-header.scrolled,
.site-header.solid {
  color: var(--ink);
  background: rgba(244, 241, 236, .97);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(100% - (2 * var(--pad)), var(--max));
  min-height: 88px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font: 500 1.15rem var(--serif);
}

.brand small {
  margin-top: .35rem;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.65vw, 1.7rem);
}

.main-nav > a {
  padding: .45rem 0;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav > a:hover,
.main-nav > a:focus-visible {
  color: var(--red);
}

.nav-cta {
  padding: .72rem 1rem !important;
  color: var(--white) !important;
  background: var(--red);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.lang-switch a,
.lang-switch span {
  text-decoration: none;
}

.lang-switch [aria-current="page"] {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px 10px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(880px, 100svh);
  padding: 8rem 0 4.5rem;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #111;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .52) 52%, rgba(0, 0, 0, .18)),
    linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 44%),
    url("https://www.frigeriocommercialisti.it/wp-content/uploads/2021/09/Studio-frigerio.jpg") center/cover no-repeat;
}

.wrap {
  width: min(100% - (2 * var(--pad)), var(--max));
  margin: auto;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark .eyebrow,
.cta .eyebrow {
  color: #f29aa8;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.04em;
}

h1 {
  max-width: 980px;
  margin: .45rem 0 1.5rem;
  color: var(--white);
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: .95;
}

.hero-lead {
  max-width: 790px;
  margin: 0 0 2.2rem;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: .85rem 1.3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
}

.button-ghost {
  border-color: rgba(255, 255, 255, .68);
  color: var(--white);
  background: rgba(0, 0, 0, .12);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
  background: var(--red);
}

.trust-strip div {
  display: grid;
  min-height: 132px;
  padding: 1.5rem;
  align-content: center;
  border-right: 1px solid rgba(255, 255, 255, .28);
}

.trust-strip div:last-child {
  border: 0;
}

.trust-strip strong {
  font: 400 clamp(1.25rem, 2vw, 1.8rem) var(--serif);
}

.trust-strip span {
  margin-top: .2rem;
  font-size: .76rem;
}

.section {
  padding: clamp(5rem, 8vw, 8.5rem) 0;
}

.section-grid,
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: 1.03;
}

.section-copy {
  align-self: end;
}

.section-copy p {
  margin: 0 0 1.2rem;
}

.lead {
  font-size: 1.22rem;
}

.text-link {
  display: inline-flex;
  gap: .45rem;
  color: var(--red-dark);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.dark {
  color: var(--white);
  background: var(--ink);
}

.dark h2,
.dark h3 {
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-head > p {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.service-card {
  display: flex;
  min-height: 330px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.service-card .number {
  color: #f29aa8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.service-card h3 {
  margin: auto 0 .8rem;
  font-size: 1.9rem;
  line-height: 1.05;
}

.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
}

.service-card a {
  margin-top: 1.2rem;
  color: #f29aa8;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.checklist li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.checklist strong {
  display: block;
  margin-bottom: .2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  min-height: 245px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.feature-grid h3 {
  margin: 0 0 .8rem;
  font-size: 1.7rem;
  line-height: 1.1;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.4rem 2.5rem 1.4rem 0;
  font: 400 1.3rem var(--serif);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 50%;
  right: .25rem;
  color: var(--red);
  content: "+";
  font: 400 1.6rem var(--sans);
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  max-width: 800px;
  margin: 0 0 1.5rem;
}

.notice {
  margin-top: 2rem;
  padding: 1.2rem;
  border-left: 3px solid var(--red);
  background: var(--white);
  font-size: .9rem;
}

.cta {
  padding: clamp(4.5rem, 7vw, 7rem) 0;
  color: var(--white);
  background: var(--red);
}

.cta h2 {
  max-width: 900px;
  color: var(--white);
}

.cta p {
  max-width: 750px;
}

.cta .button-primary {
  color: var(--ink);
  background: var(--white);
}

.site-footer {
  padding: 2.5rem var(--pad);
  background: var(--white);
}

.footer-inner {
  display: grid;
  width: min(100%, var(--max));
  margin: auto;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand > img {
  width: 66px;
  height: 66px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font: 400 1.1rem var(--serif);
}

.footer-brand span,
.footer-links {
  color: var(--muted);
  font-size: .75rem;
}

.order-logo {
  width: 118px;
  height: auto;
  margin-left: .8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem;
}

.mobile-contact-bar {
  display: none;
}

.subhero {
  min-height: 540px;
  padding: 10rem 0 5rem;
  align-items: end;
}

.subhero h1 {
  max-width: 1040px;
  font-size: clamp(3rem, 6.4vw, 6rem);
}

.breadcrumbs {
  margin-bottom: 1.2rem;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: #f29aa8;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .menu-toggle {
    z-index: 2;
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    display: none;
    padding: 7rem var(--pad) 3rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .35rem;
    color: var(--ink);
    background: var(--paper);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: .75rem;
    border: 0 !important;
    text-align: center;
  }

  .lang-switch {
    padding: 1rem 0;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 64px;
    font-size: 16px;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .hero,
  .subhero {
    min-height: 700px;
    padding: 8rem 0 4rem;
    align-items: end;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .feature-grid,
  .section-grid,
  .section-head,
  .two {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
  }

  .service-card {
    min-height: 250px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-wrap: wrap;
  }

  .order-logo {
    width: 112px;
    margin: .8rem 0 0;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .mobile-contact-bar {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 64px;
    background: var(--ink);
    box-shadow: 0 -1px 12px rgba(0, 0, 0, .18);
  }

  .mobile-contact-bar a {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: .5rem .25rem;
    color: var(--white);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-contact-bar a:last-child {
    background: var(--red);
  }
}

@media (max-width: 480px) {
  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: .57rem;
  }
}
