:root {
  --red: #a82824;
  --red-dark: #8f201d;
  --charcoal: #303030;
  --ink: #1f1f1f;
  --muted: #6f6f6f;
  --line: #dddddd;
  --soft: #f5f5f5;
  --white: #ffffff;
  --green: #355f4a;
  --black: #000000;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(950px, calc(100% - 32px));
}

.section-pad {
  padding: 82px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  background-color: var(--white);
  background-image: url("assets/roof-line.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(1200px, 100vw) auto;
  transition: box-shadow 180ms ease;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.header-inner {
  width: min(1170px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 0;
}

.brand img {
  width: 160px;
  height: auto;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding-right: 45px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  transform: translateY(-12px);
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 180ms ease, transform 180ms ease;
  transform-origin: center;
}

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

.menu-toggle {
  position: relative;
  z-index: 3;
  order: 3;
  display: none;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  color: var(--black);
  background:var(--white);
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--red);
}

.menu-toggle svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: square;
  pointer-events: none;
}

.dark-button,
.primary-button,
.outline-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  cursor: pointer;
}

.dark-button {
  border: 1px solid var(--white);
  color: var(--white);
  background: var(--charcoal);
}

.dark-button:hover,
.dark-button:focus-visible {
  background: #565656;
}

.primary-button {
  border: 1px solid var(--red);
  color: var(--white);
  background: var(--red);
}

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

.outline-button {
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: rgba(48, 48, 48, 0.32);
}

.outline-button:hover,
.outline-button:focus-visible {
  background: rgba(48, 48, 48, 0.56);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
background-image:
linear-gradient(
    90deg,
    rgba(28, 28, 28, 0.82),
    rgba(28, 28, 28, 0.38) 52%,
    rgba(28, 28, 28, 0.22)
),
url("assets/chivasso-centro.jpg");  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1170px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1170px;
  padding: 72px 0 94px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 28px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--white);
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: 43px;
  line-height: 48px;
  font-weight: 500;
  overflow-wrap: break-word;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agency-intro {
  text-align: center;
  background: var(--white);
}

.agency-intro h2,
.section-title h2,
.copy-panel h2,
.contact-copy h2 {
  margin: 0;
  font-size: 30px;
  line-height: 38px;
  font-weight: 700;
  overflow-wrap: break-word;
}

.lead {
  margin: 18px auto 0;
  font-size: 22px;
  line-height: 34px;
  font-weight: 300;
}

.service-blocks {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 300px;
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 0;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  transform-origin: center;
  cursor: pointer;
}

.service-card:hover,
.service-card:focus-visible {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  transform: scale(1.035);
}

.service-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.block-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.block-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
}

.card-list {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
}

.card-list li {
  margin-bottom: 4px;
}

.read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
}

.read-more img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.read-more:hover img,
.read-more:focus-visible img {
  transform: translateX(3px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.portal-panel {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.about-cover {
  display: block;
  width: 100%;
}

.about-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.about-copy {
  text-align: left;
}

.about-copy h2 {
  margin: 0 0 22px;
  font-size: 30px;
  line-height: 38px;
  font-weight: 700;
}

.about-copy p:not(.eyebrow) {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 20px;
  line-height: 34px;
  font-weight: 300;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.copy-panel p:not(.eyebrow),
.section-title p:not(.eyebrow),
.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 28px;
}

.services-detail {
  color: var(--white);
  background: var(--red);
}

.services-detail .eyebrow,
.services-detail .section-title p,
.services-detail h2 {
  color: var(--white);
}

.section-title {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.service-column h3 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 21px;
  line-height: 29px;
  font-weight: 700;
}

.services-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-list li {
  position: relative;
  margin: 0 0 15px;
  padding: 0 0 0 30px;
  font-size: 15px;
  line-height: 25px;
  font-weight: 300;
}

.services-list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -4px;
  width: 28px;
  height: 28px;
  background: url("assets/bullet-w.png") center / contain no-repeat;
}

.service-note {
  margin: 26px 0 0;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}

.catalog {
  background: var(--soft);
}

.portal-panel {
  min-height: 430px;
  background: var(--white);
}

.portal-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 230px;
  display: block;
  max-width: calc(100% - 48px);
  padding: 16px 18px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.portal-logo img {
  width: 100%;
  height: auto;
}

.portal-photo {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

details {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease;
}

summary:hover,
summary:focus-visible,
details[open] summary {
  color: var(--red);
}

details > p {
  display: block;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 25px;
  opacity: 0;
  visibility: hidden;
  transition: max-height 260ms ease, padding 260ms ease, opacity 180ms ease, visibility 0s linear 260ms;
}

details[open] > p {
  max-height: 360px;
  padding-bottom: 22px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

details > p a {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.contact {
  background: var(--soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.contact-card {
  margin-top: 28px;
  padding: 28px 44px;
  border-radius: 4px;
  color: var(--white);
  background: var(--charcoal);
}

.contact-card p {
  color: var(--white);
  font-size:20px;
}

.contact-card a {
  color: var(--white);
  transition: color 180ms ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--red);
}

.contact-form {
  padding: 30px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label,
.contact-form legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  margin: 8px 0 16px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  height: 44px;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form fieldset {
  margin: 0 0 16px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-form fieldset label,
.privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 400;
}

.privacy {
  align-items: flex-start;
  margin-bottom: 18px;
}

.privacy input {
  margin-top: 5px;
  flex: 0 0 auto;
}

.privacy span {
  min-width: 0;
}

.privacy a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.form-feedback {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.form-feedback.is-success {
  color: var(--green);
}

.form-feedback.is-error {
  color: var(--red);
}

.where {
  background: var(--white);
}

.map-wrap {
  overflow: hidden;
  height: 450px;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.legal-page {
  background: var(--white);
}

.legal-content {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.legal-content h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 34px;
  line-height: 42px;
  font-weight: 700;
}

.legal-content h2,
.legal-content h3 {
  margin: 34px 0 14px;
  color: var(--ink);
  font-weight: 700;
}

.legal-content h2 {
  font-size: 24px;
  line-height: 32px;
}

.legal-content h3 {
  font-size: 18px;
  line-height: 26px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 28px;
}

.legal-content p {
  margin: 0 0 16px;
}
.legal-content .eyebrow {
color: var(--red);
}


.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content a {
  color: var(--red);
  font-weight: 700;
}

.site-footer {
  color: var(--white);
}

.footer-main {
  padding: 82px 0 58px;
  background: var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

.footer-grid p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 25px;
}

.footer-grid a {
  color: var(--white);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.footer-logos img:first-child {
  width: 86px;
  padding: 10px;
  border-radius: 4px;
  background: var(--white);
}

.footer-logos img:last-child {
  width: 150px;
  padding: 12px;
  border-radius: 4px;
  background: var(--white);
}

.footer-bottom {
  padding: 24px 0;
  background: var(--charcoal);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

.footer-bottom a {
  color: var(--white);
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: min(420px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 4px;
  color: var(--white);
  background: rgba(48, 48, 48, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

.cookie-banner .dark-button {
  min-height: 38px;
  padding: 9px 16px;
}

.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 98px;
  z-index: 40;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.scroll-top:hover {
  background: var(--red);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .hero-content {
    padding: 72px 20px 94px;
  }

}
@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 98px;
  }

  .section-pad {
    padding: 62px 0;
  }

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

  .brand img {
    width: 132px;
  }
  .hero-media {
  background-image:
  linear-gradient(
      90deg,
      rgba(28, 28, 28, 0.92),
      rgba(28, 28, 28, 0.50) 62%,
      rgba(28, 28, 28, 0.40)
  ),
  url("assets/chivasso-centro.jpg");
  }
  .hero,
  .hero-content {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .hero p:not(.eyebrow) {
    font-size: 18px;
    line-height: 28px;
  }

  .split,
  .split.reverse,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .portal-photo {
    height: 380px;
  }

  .services-list,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 16px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    transform: none;
  }

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

  .main-nav a {
    min-height: 46px;
    border-bottom: 0px solid var(--line);
    justify-content:right;
  }
  .main-nav a:hover {
    color:var(--red);
  }
}

@media (max-width: 640px) {
  .container,
  .container.narrow,
  .header-inner,
  .hero-content {
    width: min(100% - 24px, 1170px);
  }

  .section-pad {
    padding: 28px 15px;
  }

  .hero,
  .hero-content {
    min-height: 470px;
  }
    .portal-photo {
    height: 430px;
    }
    .portal-logo {
      width:100%;
    }
  .hero-content {
    padding: 56px 20px 68px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 32px;
    max-width: 340px;
  }

  .agency-intro h2,
  .section-title h2,
  .copy-panel h2,
  .contact-copy h2 {
    font-size: 22px;
    line-height: 29px;
  }

  .lead {
    font-size: 18px;
    line-height: 29px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 22px;
  }

  .legal-content {
    padding: 28px 0px;
  }

  .legal-content h1 {
    font-size: 26px;
    line-height: 34px;
  }

  .contact-form fieldset {
    display: grid;
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 20px 34px;
  }

  .contact-card p {
    font-size:18px;
  }

  .map-wrap {
    height: 340px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .scroll-top {
    right: 18px;
    bottom: 118px;
  }
  
  .footer-main {
  padding:40px 15px;
  }
  .footer-bottom {
  padding:15px;
}

}
