:root {
  --bg: #f3f5f7;
  --white: #ffffff;
  --text: #10233f;
  --muted: #4b4f58;
  --accent: #0d3f8f;
  --accent-dark: #082b63;
  --line: #d8e0eb;
  --sky: #3ea2ff;
}

body.theme-dark {
  --bg: #0c1220;
  --white: #10192b;
  --text: #dce8ff;
  --muted: #a8bddf;
  --accent: #1f4f9d;
  --accent-dark: #132d57;
  --line: #253a62;
  --sky: #7cc0ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 110px;
}

.container {
  width: min(1480px, 92%);
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #0f4ca8;
}

.nav {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.7rem;
  position: relative;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 0;
  order: 3;
}

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

.brand img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
  order: 2;
}

.menu-toggle {
  display: none;
  border: 1px solid #9bc4ff;
  background: transparent;
  color: #c3dbfc;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-links a {
  color: #eef5ff;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.86;
}

.nav-cta {
  border: 1px solid #9bc4ff;
  border-radius: 99px;
  padding: 0.58rem 1rem;
  color: #ffffff !important;
}

.home-btn {
  border: 1px solid var(--sky);
  border-radius: 99px;
  padding: 0.58rem 1rem;
  color: #d7ecff !important;
}

.theme-toggle {
  border: 1px solid #9bc4ff;
  background: transparent;
  color: #c4f5fb;
  border-radius: 99px;
  padding: 0.35rem;
  cursor: pointer;
  font-weight: 700;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle img {
  width: 22px;
  height: 22px;
  display: block;
  filter: invert(1);
}

.social-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 99px;
  border: 1px solid #9bc4ff;
  text-decoration: none;
  overflow: hidden;
}

.social-emoji img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual {
  min-height: calc(100svh - 110px);
  background:
    radial-gradient(circle at 78% 30%, rgba(124, 192, 255, 0.22) 0%, rgba(124, 192, 255, 0.07) 34%, transparent 58%),
    linear-gradient(135deg, #f7fbff 0%, #eaf2fb 48%, #dbe9f6 100%);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-overlay {
  text-align: left;
  color: var(--accent);
}

.hero-kicker {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #6f9fd8;
}

.hero-title {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(3.2rem, 8.2vw, 7.2rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--accent-dark);
}

.hero-subtitle {
  max-width: 620px;
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  color: #346da9;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(13, 63, 143, 0.28);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 800;
}

.hero-action.primary {
  background: var(--accent-dark);
  color: #ffffff;
  border-color: var(--accent-dark);
}

.hero-media {
  position: relative;
  margin: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(13, 63, 143, 0.12);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(8, 43, 99, 0.18);
}

.hero-photo {
  width: 100%;
  height: clamp(340px, 39vw, 560px);
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.hero-media figcaption {
  margin: 0.75rem 0.25rem 0.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section {
  padding: 6rem 0;
}

.legal-page {
  background: #f5f7fb;
}

.legal-wrap {
  padding: 4.2rem 0 5rem;
}

.legal-title {
  margin: 0 0 2.4rem;
  text-align: center;
  font-family: "Newsreader", serif;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  color: #1d2430;
}

.legal-content {
  max-width: 1180px;
  margin: 0 auto;
  color: #2e3542;
}

.legal-content h2 {
  margin: 2rem 0 0.9rem;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  color: #1f2633;
}

.legal-content h3 {
  margin: 1.6rem 0 0.75rem;
  font-size: 1.12rem;
  color: #1f2633;
}

.legal-content p,
.legal-content li {
  margin: 0 0 0.95rem;
  line-height: 1.62;
  font-size: 1.02rem;
}

.legal-content ul {
  margin: 0.1rem 0 1.2rem;
  padding-left: 1.25rem;
}

.legal-content a {
  color: #1e5fb8;
}

body.theme-dark.legal-page {
  background: #0f1522;
}

body.theme-dark .legal-title,
body.theme-dark .legal-content h2,
body.theme-dark .legal-content h3 {
  color: #e7efff;
}

body.theme-dark .legal-content {
  color: #cfdcff;
}

.pill-link {
  display: inline-block;
  text-decoration: none;
  color: #757575;
  border: 1px solid #afafb4;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  font-weight: 700;
}

.big-title {
  margin: 2rem auto 1.6rem;
  max-width: 1050px;
  font-family: "Newsreader", serif;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.08;
  text-align: center;
  color: var(--text);
}

.lead {
  max-width: 1150px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.5;
}

.center {
  text-align: center;
}

.section-action {
  margin-top: 1.8rem;
}

.section-alt {
  background: #eef3f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.title-center {
  margin: 0 0 2.6rem;
  text-align: center;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--text);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sector-item {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  padding: 1.4rem;
  text-align: left;
}

.sector-mark {
  color: #6f9fd8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sector-item h3 {
  margin: 0;
  max-width: 210px;
  font-family: "Newsreader", serif;
  font-size: 1.95rem;
  line-height: 1.1;
  color: var(--text);
}

.finissaggi .split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.finissaggi-text h2 {
  margin: 0 0 1.2rem;
  color: #1256b1;
  font-size: clamp(1.9rem, 3.2vw, 3.3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.checks {
  list-style: disc;
  padding-left: 1.8rem;
  margin: 0;
}

.checks li {
  margin-bottom: 1.1rem;
  color: #1f3658;
  font-size: 1.02rem;
  line-height: 1.45;
}

.service-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(8, 43, 99, 0.14);
}

.service-photo-link {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.photo-link {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #ffffff;
  background: rgba(8, 43, 99, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 800;
}

.photo-link:hover {
  background: rgba(13, 63, 143, 0.94);
}

.structure-intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 4.2rem 0 3.4rem;
}

.structure-intro-inner {
  max-width: 1120px;
  text-align: center;
}

.structure-intro h1 {
  margin: 0 auto 1.1rem;
  max-width: 900px;
  font-family: "Newsreader", serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.06;
  color: var(--text);
}

.structure-intro p:last-child {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.structure-showcase {
  display: grid;
  grid-template-columns: 0.7fr 1.35fr;
  gap: 1.2rem;
  align-items: end;
}

.showcase-copy {
  align-self: center;
  padding-right: 1rem;
}

.showcase-copy h2 {
  margin: 0 0 1rem;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.08;
  color: var(--text);
}

.showcase-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.showcase-main-image,
.showcase-detail-image {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(8, 43, 99, 0.13);
}

.showcase-main-image {
  height: 520px;
}

.showcase-detail-image {
  grid-column: 2;
  height: 260px;
  margin-top: 1.2rem;
}

.structure-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.4rem;
}

.structure-text-grid h2 {
  margin: 0 0 0.7rem;
  font-family: "Newsreader", serif;
  font-size: 2rem;
  color: var(--text);
}

.structure-text-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cert-box {
  background:
    linear-gradient(155deg, rgba(8, 43, 99, 0.96), rgba(13, 63, 143, 0.94)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 8px, transparent 8px, transparent 18px);
  color: #ecedf6;
  padding: 2rem;
  border-radius: 0.4rem;
  min-height: 580px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  margin: 0 0 0.7rem;
  color: #ccd2f1;
}

.text-link {
  color: #b8c4ff;
}

.section-contact {
  background: var(--bg);
  padding-bottom: 0;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.55fr;
  gap: 0;
  align-items: stretch;
}

.contact-grid h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin: 0 0 1.4rem;
}

.contact-grid > div:first-child {
  padding: 3rem 2.6rem 3rem 0;
}

.contact-grid p {
  margin: 0.28rem 0;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.45;
}

.spacer {
  margin-top: 1.4rem !important;
}

.map-wrap iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  display: block;
}

.footer {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: #eaecff;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-privacy-link {
  color: #eaf3ff;
  text-decoration: none;
  border: 1px solid rgba(155, 196, 255, 0.75);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
}

.footer-privacy-link:hover {
  opacity: 0.88;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(8, 43, 99, 0.15);
  padding: 0.9rem 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  z-index: 1200;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions button {
  border: 1px solid #9bc4ff;
  background: #f3f9ff;
  color: #0d3f8f;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 700;
}

body.theme-dark .hero-visual {
  background:
    radial-gradient(circle at 50% 30%, rgba(62, 162, 255, 0.18) 0%, rgba(62, 162, 255, 0.04) 38%, transparent 62%),
    linear-gradient(180deg, #0b1424 0%, #12233f 100%);
}

body.theme-dark .hero-title {
  color: #e8f0ff;
}

body.theme-dark .hero-subtitle {
  color: #9ec8ff;
}

body.theme-dark .hero-action {
  color: #e8f0ff;
  border-color: #4b78b8;
}

body.theme-dark .hero-action.primary {
  background: #e8f0ff;
  color: #0d2244;
  border-color: #e8f0ff;
}

body.theme-dark .hero-media {
  background: rgba(17, 31, 55, 0.86);
  border-color: rgba(124, 192, 255, 0.24);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

body.theme-dark .topbar {
  border-bottom-color: #29528d;
}

body.theme-dark .section-alt {
  background: #0f1d33;
}

body.theme-dark .checks li {
  color: #c8daf9;
}

body.theme-dark .pill-link {
  color: #cde2ff;
  border-color: #4b78b8;
}

body.theme-dark .contact-grid a {
  color: #8cc4ff;
}

body.theme-dark .footer {
  color: #d9e7ff;
}

body.theme-dark .cookie-actions button {
  background: #12335f;
  color: #e5f1ff;
}

@media (max-width: 1150px) {
  .nav {
    min-height: 82px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    right: 4%;
    background: var(--accent);
    border: 1px solid #3f8fe8;
    border-radius: 0.7rem;
    padding: 0.7rem;
    width: min(340px, 92vw);
    flex-direction: column;
    align-items: stretch;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(2, 20, 49, 0.35);
  }

  .nav-tools {
    margin-left: auto;
  }

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

  .nav-links a {
    display: block;
    padding: 0.65rem 0.5rem;
  }

  .sector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .structure-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-copy {
    padding-right: 0;
    text-align: center;
  }

  .showcase-main-image,
  .showcase-detail-image {
    height: 340px;
  }

  .showcase-detail-image {
    grid-column: auto;
    margin-top: 0;
  }

  .contact-grid > div:first-child {
    padding: 0 0 1.5rem;
  }

  .map-wrap iframe {
    min-height: 460px;
  }
}

@media (max-width: 860px) {
  .brand {
    max-width: 180px;
  }

  .brand img {
    height: 52px;
  }

  .nav-tools {
    gap: 0.45rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-visual {
    min-height: auto;
    padding: 3.2rem 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .hero-overlay {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-media {
    max-width: 760px;
    margin: 0 auto;
  }

  .hero-photo {
    height: 320px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
  }

  .big-title {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-top: 1.2rem;
  }

  .title-center {
    margin-bottom: 1.8rem;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-box {
    min-height: auto;
  }

  .service-photo img {
    min-height: 320px;
  }

  .structure-text-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap iframe {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 93%;
  }

  .nav {
    min-height: 70px;
  }

  .brand img {
    height: 46px;
  }

  .nav-links {
    top: 70px;
    right: 3.5%;
    width: 93%;
    padding: 0.65rem;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-title {
    line-height: 1.05;
  }

  .pill-link {
    padding: 0.78rem 1rem;
    font-size: 0.9rem;
  }

  .big-title {
    margin: 1rem auto 1rem;
  }

  .lead {
    font-size: 0.99rem;
  }

  .finissaggi .split {
    gap: 1.25rem;
  }

  .checks {
    padding-left: 1.25rem;
  }

  .checks li {
    margin-bottom: 0.85rem;
    line-height: 1.4;
  }

  .cert-box {
    padding: 1.25rem;
    border-radius: 0.65rem;
  }

  .contact-grid h2 {
    margin-bottom: 0.9rem;
  }

  .contact-grid > div:first-child {
    padding: 0 0 1rem;
  }

  .map-wrap iframe {
    min-height: 300px;
    border-radius: 0.6rem;
  }

  .footer {
    padding: 1.3rem 0 1.6rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: 94%;
  }

  .nav {
    min-height: 74px;
  }

  .nav-links {
    top: 74px;
    right: 3%;
    width: 94%;
  }

  .theme-toggle,
  .menu-toggle {
    padding: 0.45rem 0.7rem;
    font-size: 0.86rem;
  }

  .theme-toggle,
  .social-emoji {
    width: 40px;
    height: 40px;
    padding: 0.3rem;
  }

  .theme-toggle img {
    width: 18px;
    height: 18px;
  }

  .hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero-subtitle {
    font-size: 0.96rem;
  }

  .lead,
  .checks li,
  .contact-grid p {
    font-size: 0.98rem;
  }

  .section {
    padding: 3.1rem 0;
  }

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

  .showcase-main-image,
  .showcase-detail-image {
    height: 230px;
  }

  .map-wrap iframe {
    min-height: 320px;
  }
}

@media (max-width: 430px) {
  .container {
    width: 92%;
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    top: 66px;
    width: 92%;
  }

  .theme-toggle,
  .social-emoji {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    padding: 0.35rem 0.58rem;
    letter-spacing: 0.04em;
  }

  .hero-visual {
    padding: 2.4rem 0;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-action {
    width: 100%;
  }

  .hero-media {
    padding: 0.45rem;
    border-radius: 14px;
  }

  .hero-photo {
    height: 220px;
    border-radius: 10px;
  }

  .big-title {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .title-center {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .contact-grid h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .map-wrap iframe {
    min-height: 260px;
  }

  .cookie-banner {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.7rem 0.8rem;
  }

  .cookie-banner p {
    font-size: 0.88rem;
  }
}

/* Premium visual pass */
:root {
  --bg: #f6f8fb;
  --white: #ffffff;
  --text: #0c1a31;
  --muted: #536173;
  --accent: #173f82;
  --accent-dark: #071b3d;
  --line: #dbe4ef;
  --sky: #70aaf0;
  --cream: #fbf7ef;
  --gold: #c8a45d;
  --shadow-soft: 0 24px 70px rgba(7, 27, 61, 0.12);
  --shadow-deep: 0 34px 90px rgba(7, 27, 61, 0.2);
}

body.theme-dark {
  --bg: #08111f;
  --white: #101a2d;
  --text: #eaf1ff;
  --muted: #aebfda;
  --accent: #254f98;
  --accent-dark: #091832;
  --line: #263a5c;
  --sky: #91c6ff;
  --cream: #121c2d;
  --gold: #d8b86f;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(112, 170, 240, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #ffffff 100%);
  letter-spacing: -0.01em;
}

body.theme-dark {
  background:
    radial-gradient(circle at 12% 8%, rgba(112, 170, 240, 0.12), transparent 28rem),
    linear-gradient(180deg, #08111f 0%, #0b1424 45%, #09111f 100%);
}

.container {
  width: min(1360px, 90%);
}

.topbar {
  background:
    linear-gradient(90deg, rgba(7, 27, 61, 0.96), rgba(23, 63, 130, 0.94)),
    linear-gradient(135deg, rgba(200, 164, 93, 0.16), transparent 38%);
  border-bottom: 1px solid rgba(145, 198, 255, 0.22);
  box-shadow: 0 18px 50px rgba(7, 27, 61, 0.12);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 96px;
}

.brand img {
  height: 82px;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.nav-links {
  gap: 0.45rem;
}

.nav-links a,
.home-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.68rem 0.88rem;
  color: rgba(244, 248, 255, 0.9) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.075em;
}

.nav-links a:hover,
.home-btn:hover {
  opacity: 1;
  border-color: rgba(145, 198, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.home-btn {
  border-color: rgba(145, 198, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle,
.social-emoji {
  border-color: rgba(145, 198, 255, 0.54);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-visual {
  position: relative;
  min-height: calc(100svh - 96px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 24%, rgba(112, 170, 240, 0.26), transparent 26rem),
    linear-gradient(120deg, #f9fbff 0%, #eef5fc 48%, #dceafb 100%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 0 auto auto;
  width: min(46vw, 640px);
  height: min(46vw, 640px);
  border: 1px solid rgba(200, 164, 93, 0.32);
  border-radius: 999px;
  transform: translate(22%, -28%);
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 8% 7% auto;
  width: 10rem;
  height: 10rem;
  background: repeating-linear-gradient(135deg, rgba(23, 63, 130, 0.08) 0 1px, transparent 1px 10px);
  border-radius: 999px;
  opacity: 0.65;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
}

.hero-kicker,
.eyebrow {
  color: var(--gold);
  font-weight: 800;
}

.hero-title {
  color: var(--accent-dark);
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-subtitle {
  color: #315f97;
}

.hero-action,
.pill-link,
.footer-privacy-link {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.hero-action:hover,
.pill-link:hover,
.footer-privacy-link:hover {
  transform: translateY(-2px);
}

.hero-action.primary,
.pill-link {
  box-shadow: 0 14px 32px rgba(7, 27, 61, 0.12);
}

.hero-media,
.service-photo-link,
.showcase-main-image,
.showcase-detail-image,
.map-wrap iframe {
  border-radius: 22px;
}

.hero-media {
  padding: 0.85rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.56)),
    linear-gradient(135deg, rgba(200, 164, 93, 0.22), transparent);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-deep);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  z-index: 1;
  border-radius: 14px;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 27, 61, 0.2));
  pointer-events: none;
}

.hero-photo {
  position: relative;
  filter: saturate(0.92) contrast(1.03);
}

.hero-media figcaption {
  position: relative;
  z-index: 2;
  color: #42546b;
}

.section {
  padding: clamp(4.5rem, 7vw, 7.5rem) 0;
}

#azienda {
  position: relative;
}

#azienda::before {
  content: "";
  display: block;
  width: 1px;
  height: 72px;
  margin: -2.2rem auto 2.6rem;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.big-title,
.title-center,
.structure-intro h1,
.contact-grid h2,
.legal-title {
  text-wrap: balance;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 980px;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.72;
}

.section-alt {
  background:
    radial-gradient(circle at 20% 0%, rgba(112, 170, 240, 0.13), transparent 24rem),
    linear-gradient(180deg, #f2f7fc 0%, #eaf1f8 100%);
}

.sector-grid {
  gap: 1rem;
  background: transparent;
  border: 0;
}

.sector-item,
.structure-text-grid article,
.legal-content,
.contact-grid > div:first-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(216, 224, 235, 0.9);
  box-shadow: 0 18px 52px rgba(7, 27, 61, 0.07);
}

.sector-item {
  min-height: 230px;
  border-radius: 18px;
  padding: 1.6rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.sector-item:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 164, 93, 0.42);
  box-shadow: var(--shadow-soft);
}

.sector-mark {
  color: var(--gold);
}

.finissaggi .split {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.finissaggi-text {
  padding: clamp(1rem, 3vw, 2.2rem) 0;
}

.finissaggi-text h2 {
  color: var(--accent-dark);
  font-family: "Newsreader", serif;
  text-transform: none;
  letter-spacing: -0.035em;
}

.checks {
  list-style: none;
  padding-left: 0;
}

.checks li {
  position: relative;
  margin-bottom: 0.8rem;
  padding: 1rem 1rem 1rem 3rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: 16px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(200, 164, 93, 0.14);
}

.service-photo-link {
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.service-photo img {
  min-height: 540px;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  filter: saturate(0.94) contrast(1.03);
}

.service-photo-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 27, 61, 0.44));
  pointer-events: none;
}

.photo-link {
  z-index: 2;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.photo-link:hover {
  background: #ffffff;
}

.structure-intro {
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 170, 240, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.structure-showcase {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: center;
}

.showcase-copy {
  padding: clamp(1.8rem, 3vw, 3rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(7, 27, 61, 0.08);
}

.showcase-copy .eyebrow {
  color: var(--gold);
}

.showcase-main-image,
.showcase-detail-image {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
  filter: saturate(0.94) contrast(1.03);
}

.showcase-detail-image {
  width: min(68%, 620px);
  justify-self: end;
  margin-top: -4.2rem;
  border: 8px solid var(--white);
}

.structure-text-grid {
  gap: 1.2rem;
}

.structure-text-grid article {
  border-radius: 20px;
  padding: clamp(1.3rem, 2.5vw, 2rem);
}

.section-contact {
  background:
    radial-gradient(circle at 0% 0%, rgba(112, 170, 240, 0.13), transparent 26rem),
    var(--bg);
  padding-bottom: 5rem;
}

.contact-grid {
  gap: 1.2rem;
  align-items: stretch;
}

.contact-grid > div:first-child {
  padding: clamp(2rem, 4vw, 3.4rem);
  border-radius: 22px;
}

.map-wrap {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
  min-height: 590px;
}

.map-wrap p {
  margin: 0;
  padding: 1rem 1.2rem;
  background: var(--white);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.legal-wrap {
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 170, 240, 0.11), transparent 26rem),
    linear-gradient(180deg, #f8fbff, #f1f5fa);
}

.legal-content {
  padding: clamp(1.5rem, 4vw, 4rem);
  border-radius: 24px;
}

.footer {
  background:
    linear-gradient(90deg, rgba(7, 27, 61, 0.98), rgba(23, 63, 130, 0.96)),
    linear-gradient(135deg, rgba(200, 164, 93, 0.16), transparent);
}

.cookie-banner {
  left: 50%;
  right: auto;
  width: min(960px, calc(100% - 2rem));
  transform: translateX(-50%);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(7, 27, 61, 0.2);
}

body.theme-dark .hero-visual,
body.theme-dark .structure-intro,
body.theme-dark .section-alt,
body.theme-dark .section-contact,
body.theme-dark .legal-wrap {
  background:
    radial-gradient(circle at 78% 20%, rgba(112, 170, 240, 0.14), transparent 28rem),
    linear-gradient(180deg, #0b1424 0%, #08111f 100%);
}

body.theme-dark .sector-item,
body.theme-dark .structure-text-grid article,
body.theme-dark .legal-content,
body.theme-dark .contact-grid > div:first-child,
body.theme-dark .showcase-copy,
body.theme-dark .checks li {
  background: linear-gradient(180deg, rgba(16, 26, 45, 0.96), rgba(13, 23, 40, 0.88));
  border-color: rgba(145, 198, 255, 0.16);
}

body.theme-dark .hero-title,
body.theme-dark .finissaggi-text h2 {
  color: #eef5ff;
}

body.theme-dark .hero-media {
  background:
    linear-gradient(135deg, rgba(20, 33, 56, 0.94), rgba(13, 24, 43, 0.78)),
    linear-gradient(135deg, rgba(216, 184, 111, 0.16), transparent);
}

body.theme-dark .hero-subtitle {
  color: #b8d4ff;
}

body.theme-dark .map-wrap p {
  background: var(--white);
}

@media (max-width: 1150px) {
  .nav {
    min-height: 82px;
  }

  .brand img {
    height: 64px;
  }

  .nav-links {
    background: rgba(15, 47, 97, 0.98);
    backdrop-filter: blur(16px);
  }

  .hero-layout,
  .finissaggi .split,
  .structure-showcase {
    grid-template-columns: 1fr;
  }

  .hero-overlay,
  .showcase-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .showcase-detail-image {
    width: 100%;
    margin-top: 0;
    border-width: 1px;
  }
}

@media (max-width: 860px) {
  .container {
    width: 92%;
  }

  .hero-visual {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-media {
    padding: 0.55rem;
    border-radius: 16px;
  }

  .hero-photo {
    height: 330px;
  }

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

  .sector-item {
    min-height: 170px;
  }

  .service-photo img,
  .showcase-main-image,
  .showcase-detail-image {
    min-height: 0;
    height: 330px;
  }

  .contact-grid {
    gap: 0.8rem;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(2.9rem, 16vw, 4rem);
  }

  .hero-action {
    width: 100%;
  }

  .checks li {
    padding: 0.9rem 0.9rem 0.9rem 2.7rem;
  }

  .service-photo img,
  .showcase-main-image,
  .showcase-detail-image,
  .hero-photo {
    height: 250px;
  }

  .legal-content,
  .contact-grid > div:first-child,
  .showcase-copy,
  .structure-text-grid article {
    border-radius: 16px;
  }
}

/* Ultra-premium refinement */
:root {
  --ink: #07142a;
  --paper: #fbfaf7;
  --porcelain: #f6f8fb;
  --hairline: rgba(7, 20, 42, 0.1);
  --gold-soft: rgba(200, 164, 93, 0.22);
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(7, 20, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 20, 42, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 85% 10%, rgba(112, 170, 240, 0.13), transparent 30rem),
    linear-gradient(180deg, #fbfcff 0%, #f7f9fc 44%, #ffffff 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

body.theme-dark {
  --ink: #edf4ff;
  --paper: #101a2d;
  --porcelain: #0b1424;
  --hairline: rgba(145, 198, 255, 0.14);
  --gold-soft: rgba(216, 184, 111, 0.16);
}

.topbar {
  isolation: isolate;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 184, 111, 0.75), transparent);
  opacity: 0.65;
}

.nav {
  gap: 1rem;
}

.brand {
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border: 1px solid rgba(216, 184, 111, 0.22);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.brand:hover::after {
  opacity: 1;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.42rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero-visual {
  padding: clamp(4rem, 6vw, 6.5rem) 0;
  background:
    linear-gradient(110deg, rgba(251, 250, 247, 0.94) 0%, rgba(247, 250, 253, 0.92) 42%, rgba(222, 236, 250, 0.92) 100%),
    radial-gradient(circle at 78% 28%, rgba(112, 170, 240, 0.26), transparent 28rem);
}

.hero-visual::before {
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  border-color: rgba(200, 164, 93, 0.28);
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.22);
}

.hero-layout {
  gap: clamp(2.5rem, 6vw, 7rem);
}

.hero-overlay {
  position: relative;
  padding-left: clamp(0rem, 2vw, 1.8rem);
}

.hero-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 2px;
  height: 78%;
  background: linear-gradient(180deg, var(--gold), rgba(112, 170, 240, 0.1));
}

.hero-title {
  font-size: clamp(3.6rem, 8.4vw, 7.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  font-weight: 500;
}

.hero-action {
  min-height: 50px;
  padding: 0.78rem 1.28rem;
  letter-spacing: 0.02em;
}

.hero-action.primary {
  background:
    linear-gradient(135deg, #071b3d, #173f82);
  box-shadow: 0 18px 42px rgba(7, 27, 61, 0.2);
}

.hero-action:not(.primary) {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
}

.hero-media {
  padding: 1rem;
  border-radius: 28px;
  transform: rotate(0.45deg);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: 34px;
  background:
    linear-gradient(135deg, transparent 0 38%, var(--gold-soft) 38% 39%, transparent 39%),
    radial-gradient(circle at 80% 20%, rgba(112, 170, 240, 0.22), transparent 18rem);
}

.hero-photo {
  border-radius: 18px;
}

.hero-media figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-media figcaption::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.big-title {
  max-width: 1120px;
  font-size: clamp(2.7rem, 6.3vw, 6.2rem);
}

.title-center {
  margin-bottom: clamp(2.2rem, 4vw, 4rem);
}

.section-alt,
.structure-intro,
.legal-wrap {
  position: relative;
  overflow: hidden;
}

.section-alt::before,
.structure-intro::before,
.legal-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 20, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 20, 42, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
}

.section-alt > *,
.structure-intro > *,
.legal-wrap > * {
  position: relative;
  z-index: 1;
}

.sector-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.sector-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.88));
}

.sector-item::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(200, 164, 93, 0.22);
  border-radius: 999px;
}

.sector-item h3 {
  font-size: clamp(1.85rem, 2.4vw, 2.35rem);
  letter-spacing: -0.035em;
}

.finissaggi {
  position: relative;
}

.finissaggi::before {
  content: "";
  position: absolute;
  inset: 3rem auto auto 50%;
  width: 1px;
  height: calc(100% - 6rem);
  background: linear-gradient(180deg, transparent, rgba(200, 164, 93, 0.28), transparent);
}

.checks li {
  box-shadow: 0 10px 30px rgba(7, 27, 61, 0.045);
}

.checks li strong {
  color: var(--accent-dark);
}

.service-photo-link {
  transform: translateY(-0.4rem);
}

.service-photo-link::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  pointer-events: none;
}

.structure-intro {
  padding-top: clamp(5rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 6vw, 5.5rem);
}

.structure-intro h1 {
  max-width: 980px;
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.structure-showcase {
  position: relative;
}

.structure-showcase::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 38%;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(200, 164, 93, 0.09);
  filter: blur(2px);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.showcase-copy {
  position: relative;
}

.showcase-copy::after {
  content: "";
  position: absolute;
  left: clamp(1.8rem, 3vw, 3rem);
  right: clamp(1.8rem, 3vw, 3rem);
  bottom: 1.3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.showcase-main-image {
  height: 560px;
}

.showcase-detail-image {
  height: 280px;
}

.structure-text-grid article {
  position: relative;
  overflow: hidden;
}

.structure-text-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.contact-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.contact-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-grid h2 {
  letter-spacing: -0.055em;
}

.map-wrap {
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.legal-title {
  position: relative;
}

.legal-title::after {
  content: "";
  display: block;
  width: 82px;
  height: 1px;
  margin: 1.2rem auto 0;
  background: var(--gold);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

.cookie-table th,
.cookie-table td {
  padding: 0.85rem;
  border: 1px solid var(--line);
  text-align: left;
}

.cookie-table th {
  background: rgba(23, 63, 130, 0.08);
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(200, 164, 93, 0.16);
  color: var(--accent-dark);
  font-weight: 800;
}

body.theme-dark .hero-visual {
  background:
    linear-gradient(110deg, rgba(8, 17, 31, 0.98) 0%, rgba(11, 20, 36, 0.96) 48%, rgba(14, 31, 58, 0.94) 100%),
    radial-gradient(circle at 78% 28%, rgba(112, 170, 240, 0.16), transparent 28rem);
}

body.theme-dark .hero-overlay::before,
body.theme-dark .legal-title::after,
body.theme-dark #azienda::before {
  opacity: 0.78;
}

body.theme-dark .hero-action:not(.primary) {
  background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .hero-action.primary {
  background: linear-gradient(135deg, #eaf1ff, #bcd7ff);
}

body.theme-dark .checks li strong,
body.theme-dark .pill {
  color: #eef5ff;
}

body.theme-dark .section-alt::before,
body.theme-dark .structure-intro::before,
body.theme-dark .legal-wrap::before {
  background:
    linear-gradient(rgba(145, 198, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 198, 255, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
}

@media (max-width: 1150px) {
  .hero-overlay {
    padding-left: 0;
  }

  .hero-overlay::before,
  .finissaggi::before {
    display: none;
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .hero-media {
    transform: none;
  }

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

  .showcase-main-image {
    height: 340px;
  }

  .showcase-detail-image {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .topbar::after,
  .hero-visual::before,
  .hero-visual::after,
  .hero-media::after {
    display: none;
  }

  .brand img {
    height: 56px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero-title,
  .big-title,
  .structure-intro h1 {
    letter-spacing: -0.04em;
  }

  .sector-item {
    min-height: 190px;
  }
}

/* Editorial photographic sectors */
.sectors {
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.sectors .title-center {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.sector-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.35vw, 1.35rem);
}

.sector-item {
  isolation: isolate;
  min-height: clamp(340px, 31vw, 520px);
  padding: clamp(1.15rem, 1.8vw, 1.8rem);
  justify-content: space-between;
  background: #07142a;
  border: 1px solid rgba(145, 198, 255, 0.18);
  box-shadow: 0 28px 80px rgba(7, 20, 42, 0.22);
}

.sector-item:nth-child(1),
.sector-item:nth-child(2),
.sector-item:nth-child(3) {
  grid-column: span 4;
}

.sector-item:nth-child(4),
.sector-item:nth-child(5) {
  grid-column: span 6;
}

.sector-item:nth-child(1) {
  min-height: clamp(390px, 34vw, 560px);
}

.sector-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08);
  transform: scale(1.04);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.sector-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 20, 42, 0.46) 0%, rgba(7, 20, 42, 0.28) 36%, rgba(7, 20, 42, 0.88) 100%),
    radial-gradient(circle at 80% 20%, rgba(200, 164, 93, 0.18), transparent 16rem);
  pointer-events: none;
}

.sector-item::after {
  z-index: -1;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 120px;
  height: 120px;
  border-color: rgba(216, 184, 111, 0.28);
  opacity: 0.9;
}

.sector-item:hover {
  transform: translateY(-10px);
  border-color: rgba(216, 184, 111, 0.58);
  box-shadow: 0 38px 100px rgba(7, 20, 42, 0.32);
}

.sector-item:hover .sector-image {
  transform: scale(1.11);
  filter: saturate(0.96) contrast(1.12);
}

.sector-mark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.6rem;
  color: #f1d38a;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

.sector-mark::after {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(241, 211, 138, 0.72);
}

.sector-item h2,
.sector-item h3 {
  margin: 0;
  max-width: 95%;
  color: #f3f7ff;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 2.6vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.sector-item:nth-child(1) h2,
.sector-item:nth-child(1) h3 {
  font-size: clamp(2.25rem, 3.15vw, 3.7rem);
}

body.theme-dark .sector-item {
  background: #07142a;
  border-color: rgba(145, 198, 255, 0.2);
}

body.theme-dark .sector-item::before {
  background:
    linear-gradient(180deg, rgba(7, 20, 42, 0.42) 0%, rgba(7, 20, 42, 0.24) 34%, rgba(7, 20, 42, 0.9) 100%),
    radial-gradient(circle at 80% 20%, rgba(216, 184, 111, 0.18), transparent 16rem);
}

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

  .sector-item:nth-child(1),
  .sector-item:nth-child(2),
  .sector-item:nth-child(3),
  .sector-item:nth-child(4),
  .sector-item:nth-child(5) {
    grid-column: auto;
  }

  .sector-item,
  .sector-item:nth-child(1) {
    min-height: 360px;
  }

  .sector-item:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .sector-item,
  .sector-item:nth-child(1) {
    min-height: 320px;
  }

  .sector-item:nth-child(5) {
    grid-column: auto;
  }

  .sector-item h2,
  .sector-item h3 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* Premium horizontal photo rail for sectors */
.sectors .container {
  width: min(1680px, 92%);
}

.sector-grid {
  display: flex;
  gap: clamp(1rem, 1.6vw, 1.6rem);
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.6rem max(4vw, 1rem) 2rem;
  margin-inline: calc(max(4vw, 1rem) * -1);
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(4vw, 1rem);
  -webkit-overflow-scrolling: touch;
}

.sector-grid::-webkit-scrollbar {
  height: 8px;
}

.sector-grid::-webkit-scrollbar-track {
  background: rgba(145, 198, 255, 0.1);
  border-radius: 999px;
}

.sector-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(200, 164, 93, 0.55), rgba(145, 198, 255, 0.45));
  border-radius: 999px;
}

.sector-item,
.sector-item:nth-child(1),
.sector-item:nth-child(2),
.sector-item:nth-child(3),
.sector-item:nth-child(4),
.sector-item:nth-child(5) {
  position: relative;
  flex: 0 0 clamp(340px, 34vw, 540px);
  grid-column: auto;
  min-height: clamp(460px, 48vw, 680px);
  scroll-snap-align: start;
  padding: clamp(1.4rem, 2vw, 2.2rem);
  overflow: hidden;
}

.sector-item:nth-child(1),
.sector-item:nth-child(4) {
  flex-basis: clamp(390px, 42vw, 660px);
}

.sector-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  display: block;
  object-fit: cover;
  z-index: -3;
}

.sector-item:nth-child(1) .sector-image {
  object-position: 50% 50%;
}

.sector-item:nth-child(2) .sector-image {
  object-position: 44% 50%;
}

.sector-item:nth-child(3) .sector-image {
  object-position: 48% 50%;
}

.sector-item:nth-child(4) .sector-image {
  object-position: 50% 50%;
}

.sector-item:nth-child(5) .sector-image {
  object-position: 50% 42%;
}

.sector-item::before {
  background:
    linear-gradient(180deg, rgba(7, 20, 42, 0.18) 0%, rgba(7, 20, 42, 0.36) 45%, rgba(7, 20, 42, 0.92) 100%),
    radial-gradient(circle at 82% 18%, rgba(216, 184, 111, 0.22), transparent 18rem);
}

.sector-mark {
  position: relative;
  z-index: 2;
  padding: 0.55rem 0.7rem;
  background: rgba(7, 20, 42, 0.32);
  border: 1px solid rgba(241, 211, 138, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.sector-item h2,
.sector-item h3 {
  position: relative;
  z-index: 2;
  max-width: 86%;
  margin-top: auto;
}

.sector-item:hover {
  transform: translateY(-8px) scale(1.01);
}

@media (max-width: 700px) {
  .sectors .container {
    width: min(100%, 100%);
  }

  .sectors .title-center {
    width: 92%;
  }

  .sector-grid {
    padding-inline: 4%;
    margin-inline: 0;
  }

  .sector-item,
  .sector-item:nth-child(1),
  .sector-item:nth-child(4) {
    flex-basis: min(86vw, 420px);
    min-height: 430px;
  }
}

/* Slightly larger typography across the site */
body {
  font-size: 18px;
}

.nav-links a,
.home-btn {
  font-size: 0.9rem;
}

.menu-toggle,
.hero-action,
.pill-link,
.footer-privacy-link,
.photo-link,
.cookie-actions button {
  font-size: 1rem;
}

.hero-kicker,
.eyebrow,
.sector-mark {
  font-size: 0.86rem;
}

.hero-title {
  font-size: clamp(4rem, 8.9vw, 8.4rem);
}

.hero-subtitle {
  font-size: clamp(1.14rem, 1.85vw, 1.55rem);
}

.big-title {
  font-size: clamp(3rem, 6.8vw, 6.8rem);
}

.title-center,
.structure-intro h1,
.contact-grid h2,
.legal-title {
  font-size: clamp(2.7rem, 5.9vw, 5.7rem);
}

.lead,
.structure-intro p:last-child,
.showcase-copy p:last-child,
.structure-text-grid p,
.legal-content p,
.legal-content li,
.contact-grid p,
.checks li {
  font-size: clamp(1.12rem, 1.35vw, 1.3rem);
}

.sector-item h2,
.sector-item h3 {
  font-size: clamp(2.35rem, 3vw, 3.6rem);
}

.sector-item:nth-child(1) h2,
.sector-item:nth-child(1) h3 {
  font-size: clamp(2.65rem, 3.45vw, 4.2rem);
}

.finissaggi-text h2,
.showcase-copy h2,
.structure-text-grid h2,
.legal-content h2 {
  font-size: clamp(2.15rem, 3.6vw, 3.7rem);
}

.legal-content h3 {
  font-size: 1.35rem;
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 12vw, 4.8rem);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .title-center,
  .structure-intro h1,
  .contact-grid h2,
  .legal-title {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  .lead,
  .structure-intro p:last-child,
  .showcase-copy p:last-child,
  .structure-text-grid p,
  .legal-content p,
  .legal-content li,
  .contact-grid p,
  .checks li {
    font-size: 1.05rem;
  }
}

/* Final hero polish: premium, readable, balanced */
.hero-visual {
  min-height: calc(100svh - 96px);
  padding: clamp(3.5rem, 5vw, 5.4rem) 0;
}

.hero-layout {
  grid-template-columns: minmax(420px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(3.5rem, 6vw, 7rem);
}

.hero-overlay {
  max-width: 720px;
  padding-left: clamp(1rem, 2vw, 1.6rem);
}

.hero-title {
  max-width: 680px;
  font-size: clamp(4.4rem, 6.7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  max-width: 640px;
  margin-top: 1.6rem;
  font-size: clamp(1.28rem, 1.55vw, 1.55rem);
  line-height: 1.62;
}

.hero-actions {
  margin-top: 2.2rem;
}

.hero-media {
  padding: 0.75rem;
  border-radius: 26px;
  transform: none;
  box-shadow: 0 30px 90px rgba(7, 20, 42, 0.24);
}

.hero-media::after {
  inset: -0.7rem;
  border-radius: 32px;
}

.hero-media::before {
  inset: 0.75rem;
  border-radius: 17px;
}

.hero-photo {
  height: clamp(420px, 43vw, 650px);
  border-radius: 18px;
}

.hero-media figcaption {
  margin-top: 0.95rem;
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 1150px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    max-width: 900px;
    margin-inline: auto;
    padding-left: 0;
  }

  .hero-title,
  .hero-subtitle {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .hero-title {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .hero-photo {
    height: 300px;
  }
}

/* Final luxury pass */
::selection {
  background: rgba(216, 184, 111, 0.34);
  color: #ffffff;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(112, 170, 240, 0.12), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(216, 184, 111, 0.08), transparent 24rem),
    linear-gradient(180deg, #08111f 0%, #0b1424 42%, #08101d 100%);
}

.topbar {
  background:
    linear-gradient(90deg, rgba(6, 20, 46, 0.96), rgba(30, 67, 130, 0.94)),
    radial-gradient(circle at 76% 20%, rgba(216, 184, 111, 0.18), transparent 22rem);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
}

.nav {
  min-height: 92px;
}

.brand img {
  height: 74px;
  border-radius: 14px;
}

.nav-links a,
.home-btn {
  font-size: 0.86rem;
  letter-spacing: 0.085em;
}

.theme-toggle,
.social-emoji {
  width: 46px;
  height: 46px;
}

.hero-visual {
  background:
    linear-gradient(110deg, rgba(8, 17, 31, 0.98) 0%, rgba(11, 20, 36, 0.94) 48%, rgba(14, 31, 58, 0.92) 100%),
    radial-gradient(circle at 74% 28%, rgba(112, 170, 240, 0.2), transparent 30rem);
  border-bottom-color: rgba(145, 198, 255, 0.16);
}

.hero-layout {
  width: min(1500px, 90%);
  grid-template-columns: minmax(420px, 0.74fr) minmax(560px, 1.26fr);
}

.hero-overlay {
  padding-block: 1.2rem;
}

.hero-title {
  font-size: clamp(4.15rem, 6.25vw, 6.65rem);
  color: #f4f8ff;
}

.hero-subtitle {
  color: #c7d9f6;
}

.hero-action {
  border-color: rgba(145, 198, 255, 0.34);
  color: #eef5ff;
}

.hero-action.primary {
  background: linear-gradient(135deg, #edf4ff, #c9dcff);
  color: #0b1830;
  border-color: rgba(255, 255, 255, 0.66);
}

.hero-media {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 84% 18%, rgba(216, 184, 111, 0.16), transparent 18rem);
  border: 1px solid rgba(145, 198, 255, 0.2);
}

.hero-photo,
.service-photo img,
.showcase-main-image,
.showcase-detail-image,
.sector-image {
  filter: saturate(0.9) contrast(1.08) brightness(0.94);
}

.hero-media figcaption {
  color: rgba(224, 234, 251, 0.78);
}

#azienda {
  width: min(1220px, 88%);
  margin-block: clamp(5rem, 7vw, 8rem);
  padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 5vw, 5rem);
  border: 1px solid rgba(145, 198, 255, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 50% 0%, rgba(112, 170, 240, 0.08), transparent 22rem);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.18);
}

#azienda::before {
  margin-top: -1rem;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(9, 18, 33, 0.98) 0%, rgba(10, 20, 37, 0.96) 100%),
    radial-gradient(circle at 74% 12%, rgba(112, 170, 240, 0.12), transparent 28rem);
}

.sectors {
  border-top: 1px solid rgba(145, 198, 255, 0.14);
  border-bottom: 1px solid rgba(145, 198, 255, 0.14);
}

.sectors .title-center {
  color: #f3f7ff;
  margin-bottom: clamp(2.6rem, 5vw, 5rem);
}

.sector-grid {
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.sector-grid::-webkit-scrollbar {
  display: none;
}

.sector-item,
.sector-item:nth-child(1),
.sector-item:nth-child(4) {
  flex-basis: clamp(440px, 38vw, 640px);
  min-height: clamp(490px, 44vw, 660px);
  border-radius: 34px;
  border-color: rgba(145, 198, 255, 0.2);
}

.sector-item::before {
  background:
    linear-gradient(180deg, rgba(6, 15, 29, 0.08) 0%, rgba(6, 15, 29, 0.36) 46%, rgba(6, 15, 29, 0.93) 100%),
    radial-gradient(circle at 78% 16%, rgba(216, 184, 111, 0.26), transparent 18rem);
}

.sector-item h2,
.sector-item h3,
.sector-item:nth-child(1) h2,
.sector-item:nth-child(1) h3 {
  max-width: 92%;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 2.15vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.sector-mark {
  font-size: 0.88rem;
}

.finissaggi {
  width: min(1360px, 90%);
  padding: clamp(3rem, 5vw, 5rem);
  border: 1px solid rgba(145, 198, 255, 0.13);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 90% 10%, rgba(216, 184, 111, 0.1), transparent 20rem);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.17);
}

.checks li {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border-color: rgba(145, 198, 255, 0.15);
}

.service-photo-link {
  border-radius: 30px;
}

.structure-intro,
.section-contact,
.legal-wrap {
  background:
    linear-gradient(180deg, rgba(9, 18, 33, 0.98), rgba(8, 16, 29, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(112, 170, 240, 0.12), transparent 28rem);
}

.structure-text-grid article,
.contact-grid > div:first-child,
.legal-content,
.showcase-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border-color: rgba(145, 198, 255, 0.14);
}

@keyframes premiumRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-overlay,
.hero-media,
#azienda,
.sectors .title-center,
.sector-grid,
.finissaggi,
.structure-intro-inner,
.structure-text-grid,
.contact-grid,
.legal-content {
  animation: premiumRise 0.7s ease both;
}

.hero-media {
  animation-delay: 0.08s;
}

.sector-grid,
.finissaggi {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-overlay,
  .hero-media,
  #azienda,
  .sectors .title-center,
  .sector-grid,
  .finissaggi,
  .structure-intro-inner,
  .structure-text-grid,
  .contact-grid,
  .legal-content {
    animation: none;
  }
}

@media (max-width: 1150px) {
  .hero-layout {
    width: min(920px, 90%);
  }

  .hero-title {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .nav {
    min-height: 74px;
  }

  .brand img {
    height: 56px;
  }

  #azienda,
  .finissaggi {
    width: min(92%, 92%);
    border-radius: 24px;
  }

  .sector-grid {
    mask-image: none;
  }

  .sector-item,
  .sector-item:nth-child(1),
  .sector-item:nth-child(4) {
    flex-basis: min(86vw, 440px);
    min-height: 440px;
  }
}

/* Company positioning block */
.identity-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1360px, 90%);
  margin-block: clamp(4rem, 7vw, 7rem);
  padding: clamp(2.4rem, 5vw, 5.4rem);
  border: 1px solid rgba(145, 198, 255, 0.16);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 88% 14%, rgba(216, 184, 111, 0.14), transparent 22rem),
    radial-gradient(circle at 12% 92%, rgba(112, 170, 240, 0.13), transparent 26rem),
    #0a1324;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: premiumRise 0.7s ease both;
}

.identity-panel::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  z-index: -1;
  border: 1px solid rgba(216, 184, 111, 0.12);
  border-radius: 28px;
  pointer-events: none;
}

.identity-panel::after {
  content: "ALTA GAMMA";
  position: absolute;
  right: clamp(1.4rem, 4vw, 4rem);
  bottom: clamp(1.2rem, 3vw, 3rem);
  z-index: -1;
  font-family: "Newsreader", serif;
  font-size: clamp(3.8rem, 10vw, 9.5rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(238, 245, 255, 0.035);
  white-space: nowrap;
}

.identity-copy {
  max-width: 940px;
}

.identity-kicker {
  margin: 0 0 0.9rem;
  color: #d8b86f;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.identity-copy h2 {
  max-width: 860px;
  margin: 0;
  color: #f4f8ff;
  font-family: "Newsreader", serif;
  font-size: clamp(3rem, 5.8vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.identity-copy p {
  max-width: 900px;
  margin: clamp(1.25rem, 2vw, 2rem) 0 0;
  color: #c8d8ef;
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  line-height: 1.65;
}

.identity-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.35rem);
  margin-top: clamp(2rem, 4vw, 4rem);
}

.identity-metrics article {
  position: relative;
  min-height: 210px;
  padding: clamp(1.35rem, 2.5vw, 2.2rem);
  border: 1px solid rgba(145, 198, 255, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(10, 19, 36, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.identity-metrics article::after {
  content: "";
  position: absolute;
  right: -2.8rem;
  bottom: -2.8rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(216, 184, 111, 0.18);
  border-radius: 50%;
}

.identity-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #d8b86f;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.identity-metrics span::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: rgba(216, 184, 111, 0.48);
}

.identity-metrics strong {
  display: block;
  margin-top: clamp(2.2rem, 4vw, 3.8rem);
  color: #f5f8ff;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
}

.identity-metrics p {
  margin: 0.8rem 0 0;
  color: #b9c8df;
  font-size: clamp(0.98rem, 1.12vw, 1.12rem);
  line-height: 1.55;
}

.identity-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.6rem, 3vw, 3rem);
}

.identity-flow span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.78rem 1.08rem;
  border: 1px solid rgba(145, 198, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #eaf2ff;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.86rem;
  width: 0.86rem;
  height: 1px;
  background: rgba(216, 184, 111, 0.42);
}

.identity-panel-compact {
  margin-top: clamp(2.6rem, 5vw, 5rem);
}

.identity-panel-compact .identity-copy {
  max-width: 1050px;
}

.identity-panel-compact .identity-copy h2 {
  max-width: 1000px;
}

@media (prefers-reduced-motion: reduce) {
  .identity-panel {
    animation: none;
  }
}

@media (max-width: 900px) {
  .identity-panel {
    width: min(92%, 92%);
    border-radius: 28px;
  }

  .identity-panel::before {
    inset: 0.8rem;
    border-radius: 22px;
  }

  .identity-metrics {
    grid-template-columns: 1fr;
  }

  .identity-metrics article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .identity-panel {
    padding: 2rem 1.25rem;
  }

  .identity-copy h2 {
    font-size: clamp(2.5rem, 14vw, 4.2rem);
  }

  .identity-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .identity-flow span {
    justify-content: center;
  }

  .identity-flow span:not(:last-child)::after {
    display: none;
  }
}

/* Scroll reveal interactions */
body.scroll-reveal-ready .scroll-reveal {
  animation: none !important;
  opacity: 1;
  transform: translate3d(0, 34px, 0) scale(0.985);
  filter: blur(7px);
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

body.scroll-reveal-ready .scroll-reveal[data-reveal="left"] {
  transform: translate3d(-34px, 24px, 0) scale(0.985);
}

body.scroll-reveal-ready .scroll-reveal[data-reveal="right"] {
  transform: translate3d(34px, 24px, 0) scale(0.985);
}

body.scroll-reveal-ready .scroll-reveal[data-reveal="card"] {
  transform: translate3d(0, 42px, 0) scale(0.97);
}

body.scroll-reveal-ready .scroll-reveal.is-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.scroll-reveal-ready .scroll-reveal,
  body.scroll-reveal-ready .scroll-reveal[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Dark contrast repair for the services block */
.finissaggi {
  color: #eaf2ff;
}

.finissaggi .finissaggi-text h2 {
  color: #f4f8ff;
  text-shadow: 0 18px 55px rgba(145, 198, 255, 0.16);
}

.finissaggi .checks li {
  color: #d7e4f8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(13, 24, 43, 0.82);
  border-color: rgba(145, 198, 255, 0.24);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.finissaggi .checks li strong {
  color: #eef5ff;
}

.finissaggi .checks li::before {
  background: #d8b86f;
  box-shadow: 0 0 0 7px rgba(216, 184, 111, 0.16);
}

.finissaggi .photo-link {
  color: #0b1830;
  background: linear-gradient(135deg, #f5f8ff, #dce9ff);
  border-color: rgba(255, 255, 255, 0.74);
}

body:not(.theme-dark) .finissaggi .finissaggi-text h2,
body:not(.theme-dark) .finissaggi .checks li strong {
  color: #0c1a31;
}

body:not(.theme-dark) .finissaggi .checks li {
  color: #24344e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.74)),
    #ffffff;
  border-color: rgba(125, 151, 189, 0.28);
}

body.theme-dark .finissaggi .finissaggi-text h2,
body.theme-dark .finissaggi .checks li strong {
  color: #f4f8ff;
}

body.theme-dark .finissaggi .checks li {
  color: #dce8ff;
}

/* Dark contrast repair for the company intro card */
#azienda {
  color: #d8e6fb;
}

#azienda .big-title {
  color: #f4f8ff !important;
  opacity: 1 !important;
  text-shadow:
    0 18px 60px rgba(145, 198, 255, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

#azienda .lead {
  color: #c8d8ef !important;
  opacity: 1 !important;
}

#azienda .pill-link {
  color: #eef5ff !important;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(145, 198, 255, 0.42);
}

#azienda .pill-link:hover {
  color: #0b1830 !important;
  background: linear-gradient(135deg, #f5f8ff, #dce9ff);
  border-color: rgba(255, 255, 255, 0.76);
}

/* Keep the hero company name on a single premium line */
.hero-title {
  white-space: nowrap;
  font-size: clamp(3.8rem, 5vw, 5.65rem) !important;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

@media (min-width: 1200px) {
  .hero-layout {
    grid-template-columns: minmax(560px, 0.82fr) minmax(620px, 1.18fr);
  }
}

@media (max-width: 760px) {
  .hero-title {
    white-space: normal;
    font-size: clamp(3.1rem, 17vw, 4.8rem) !important;
  }
}

/* Dark-only finish for contacts and privacy/cookies */
body.theme-dark .section-contact,
body.theme-dark.legal-page,
body.theme-dark .legal-wrap {
  background:
    radial-gradient(circle at 78% 18%, rgba(112, 170, 240, 0.14), transparent 28rem),
    radial-gradient(circle at 12% 82%, rgba(216, 184, 111, 0.08), transparent 24rem),
    linear-gradient(180deg, #08111f 0%, #0b1424 48%, #08111f 100%) !important;
  color: #edf4ff;
}

body.theme-dark .contact-grid > div:first-child,
body.theme-dark .legal-content,
body.theme-dark .map-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022)),
    rgba(12, 22, 40, 0.92) !important;
  border: 1px solid rgba(145, 198, 255, 0.16);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

body.theme-dark .contact-grid h2,
body.theme-dark .legal-title,
body.theme-dark .legal-content h2,
body.theme-dark .legal-content h3 {
  color: #f4f8ff !important;
}

body.theme-dark .contact-grid p,
body.theme-dark .legal-content p,
body.theme-dark .legal-content li,
body.theme-dark .legal-content td,
body.theme-dark .legal-content th {
  color: #d4e2f6 !important;
}

body.theme-dark .contact-grid strong,
body.theme-dark .legal-content strong {
  color: #f4f8ff;
}

body.theme-dark .contact-grid a,
body.theme-dark .legal-content a,
body.theme-dark .text-link {
  color: #91c6ff !important;
}

body.theme-dark .map-wrap p {
  background: rgba(9, 18, 33, 0.94) !important;
  border-top: 1px solid rgba(145, 198, 255, 0.14);
}

body.theme-dark .cookie-table {
  background: rgba(9, 18, 33, 0.78);
  border: 1px solid rgba(145, 198, 255, 0.16);
}

body.theme-dark .cookie-table th,
body.theme-dark .cookie-table td {
  border-color: rgba(145, 198, 255, 0.16);
}

body.theme-dark .cookie-table th {
  background: rgba(145, 198, 255, 0.1);
}

body.theme-dark .cookie-banner {
  background:
    linear-gradient(180deg, rgba(18, 31, 54, 0.98), rgba(10, 20, 37, 0.98)) !important;
  color: #edf4ff;
  border: 1px solid rgba(145, 198, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body.theme-dark .cookie-banner a {
  color: #91c6ff;
}

body.theme-dark .cookie-actions button {
  background: linear-gradient(135deg, #edf4ff, #c9dcff) !important;
  color: #0b1830 !important;
  border-color: rgba(255, 255, 255, 0.68);
}

/* Hard removal of the old light/dark switch */
#theme-toggle,
.theme-toggle,
button[aria-label="Cambia tema"],
button[title="Cambia tema"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Mobile production fix: keep the premium desktop look, but remove phone overflow */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  *,
  *::before,
  *::after {
    max-width: 100%;
  }

  .container {
    width: min(100% - 2rem, 100%) !important;
    max-width: 100% !important;
  }

  .topbar {
    width: 100%;
    overflow-x: clip;
  }

  .nav {
    min-height: 78px !important;
    gap: 0.65rem;
  }

  .brand img {
    height: 58px !important;
    border-radius: 12px;
  }

  .nav-tools {
    margin-left: auto !important;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .social-emoji {
    width: 48px !important;
    height: 48px !important;
    padding: 0.32rem;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.92rem !important;
    font-size: 0.9rem !important;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-links {
    top: 78px !important;
    right: 1rem !important;
    left: 1rem !important;
    width: auto !important;
    max-width: none !important;
  }

  .hero-visual {
    min-height: auto !important;
    padding: clamp(3rem, 11vw, 4.8rem) 0 clamp(4.2rem, 13vw, 5.6rem) !important;
  }

  .hero-visual::before {
    width: 82vw;
    height: 82vw;
    right: -44vw;
    top: 12vh;
  }

  .hero-layout {
    width: min(100% - 2rem, 100%) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2.2rem !important;
  }

  .hero-overlay {
    width: 100%;
    min-width: 0;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
    text-align: center;
  }

  .hero-overlay::before {
    left: 50%;
    top: -1.6rem;
    width: 58px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .hero-kicker {
    max-width: 100%;
    font-size: clamp(0.74rem, 3.1vw, 0.9rem) !important;
    letter-spacing: 0.14em;
    text-align: center;
  }

  .hero-title {
    white-space: normal !important;
    max-width: 100% !important;
    margin-inline: auto;
    font-size: clamp(3.35rem, 16.4vw, 4.85rem) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.065em;
    text-align: center;
  }

  .hero-subtitle {
    width: min(100%, 28rem);
    max-width: 100% !important;
    margin: 1.35rem auto 0 !important;
    font-size: clamp(1.12rem, 4.8vw, 1.32rem) !important;
    line-height: 1.48 !important;
    text-align: center !important;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem !important;
    width: min(100%, 28rem);
    max-width: 100%;
    margin: 1.8rem auto 0 !important;
  }

  .hero-action {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0.95rem 1rem !important;
    font-size: 1rem !important;
  }

  .hero-media {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0.5rem !important;
    border-radius: 22px !important;
  }

  .hero-media::after {
    inset: -0.35rem;
    border-radius: 26px;
  }

  .hero-media::before {
    inset: 0.5rem;
    border-radius: 16px;
  }

  .hero-photo {
    width: 100%;
    height: clamp(245px, 68vw, 360px) !important;
    border-radius: 16px !important;
    object-fit: cover;
  }

  .hero-media figcaption {
    font-size: 0.9rem !important;
    text-align: center;
  }

  .finissaggi .split {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.35rem !important;
  }

  .service-photo,
  .service-photo-link {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-self: stretch !important;
    transform: none !important;
  }

  .service-photo img {
    width: 100% !important;
    min-height: 260px !important;
    height: clamp(260px, 62vw, 360px) !important;
    object-fit: cover;
  }

  .legal-content {
    overflow: hidden;
  }

  .cookie-table,
  .cookie-table thead,
  .cookie-table tbody,
  .cookie-table tr,
  .cookie-table th,
  .cookie-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cookie-table {
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
  }

  .cookie-table thead {
    position: absolute;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cookie-table tr {
    padding: 1rem;
    border: 1px solid rgba(145, 198, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
  }

  .cookie-table td {
    border: 0 !important;
    padding: 0.55rem 0 !important;
  }

  .cookie-table td + td {
    border-top: 1px solid rgba(145, 198, 255, 0.12) !important;
  }

  .cookie-table td::before {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .cookie-table td:nth-child(1)::before {
    content: "Nome";
  }

  .cookie-table td:nth-child(2)::before {
    content: "Tipo";
  }

  .cookie-table td:nth-child(3)::before {
    content: "Scopo";
  }

  .cookie-table td:nth-child(4)::before {
    content: "Durata";
  }

  #azienda,
  .finissaggi,
  .structure-intro-inner,
  .structure-text-grid,
  .contact-grid,
  .legal-content {
    width: min(100% - 2rem, 100%) !important;
    max-width: 100% !important;
  }
}

@media (max-width: 430px) {
  .container,
  .hero-layout,
  #azienda,
  .finissaggi,
  .structure-intro-inner,
  .structure-text-grid,
  .contact-grid,
  .legal-content {
    width: min(100% - 1.5rem, 100%) !important;
  }

  .nav {
    min-height: 74px !important;
  }

  .brand img {
    height: 54px !important;
  }

  .social-emoji {
    width: 44px !important;
    height: 44px !important;
  }

  .menu-toggle {
    min-height: 42px;
    padding-inline: 0.78rem !important;
  }

  .nav-links {
    top: 74px !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
  }

  .hero-title {
    font-size: clamp(3rem, 16.2vw, 4.25rem) !important;
  }

  .hero-subtitle {
    font-size: clamp(1.04rem, 4.7vw, 1.2rem) !important;
  }
}

/* Persistent cookie notice and preference access */
.cookie-settings-button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1190;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.65rem 1rem 0.65rem 0.72rem;
  border: 1px solid rgba(145, 198, 255, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(22, 42, 75, 0.96), rgba(9, 20, 38, 0.98));
  color: #f3f7ff;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: 800 0.86rem/1 "Manrope", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    opacity 0.22s ease;
}

.cookie-settings-button:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 184, 111, 0.72);
}

.cookie-settings-button > span {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 34%, #10213d 0 2px, transparent 2.5px),
    radial-gradient(circle at 68% 30%, #10213d 0 2px, transparent 2.5px),
    radial-gradient(circle at 40% 68%, #10213d 0 2px, transparent 2.5px),
    radial-gradient(circle at 71% 67%, #10213d 0 2px, transparent 2.5px),
    linear-gradient(135deg, #f2d58c, #c99e49);
  box-shadow:
    inset -3px -4px 8px rgba(95, 61, 12, 0.2),
    0 4px 14px rgba(216, 184, 111, 0.22);
}

.cookie-settings-button > span::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d1c34;
  box-shadow: -5px 6px 0 -2px #0d1c34;
}

.cookie-panel-open .cookie-settings-button {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.cookie-banner {
  left: 50% !important;
  right: auto !important;
  bottom: 1.25rem;
  width: min(1080px, calc(100% - 2.5rem));
  max-width: calc(100% - 2.5rem);
  transform: translate(-50%, 24px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid rgba(145, 198, 255, 0.24);
  border-top-color: rgba(216, 184, 111, 0.54);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 10%, rgba(112, 170, 240, 0.15), transparent 20rem),
    linear-gradient(145deg, rgba(18, 33, 58, 0.985), rgba(7, 16, 30, 0.99)) !important;
  color: #edf4ff;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(24px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.cookie-banner.show {
  display: grid;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-copy {
  max-width: 700px;
}

.cookie-eyebrow {
  margin: 0 0 0.45rem !important;
  color: #d8b86f !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.cookie-copy h2 {
  margin: 0 0 0.55rem;
  color: #f5f8ff;
  font-family: "Newsreader", serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1;
}

.cookie-copy > p:last-child {
  margin: 0;
  color: #cbd9ed !important;
  font-size: 0.96rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 330px;
}

.cookie-policy-link,
.cookie-choice {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font: 800 0.86rem/1 "Manrope", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-policy-link {
  color: #b9d7ff !important;
  border: 1px solid transparent;
}

.cookie-policy-link:hover {
  color: #ffffff !important;
}

body.theme-dark .cookie-choice.secondary {
  background: rgba(255, 255, 255, 0.035) !important;
  color: #edf4ff !important;
  border: 1px solid rgba(145, 198, 255, 0.42);
}

body.theme-dark .cookie-choice.primary {
  background: linear-gradient(135deg, #f5f8ff, #cbdcff) !important;
  color: #0a1930 !important;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(80, 138, 222, 0.2);
}

.cookie-choice:hover,
.cookie-policy-link:hover {
  transform: translateY(-1px);
}

@media (max-width: 780px) {
  .cookie-settings-button {
    right: 0.85rem;
    bottom: 0.85rem;
    min-height: 45px;
    padding: 0.55rem 0.85rem 0.55rem 0.62rem;
  }

  .cookie-settings-button > span {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .cookie-banner {
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    max-width: calc(100% - 1.5rem);
    max-height: calc(100svh - 1.5rem);
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 1.15rem;
    padding: 1.15rem;
    border-radius: 20px;
    overflow-y: auto;
  }

  .cookie-copy h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .cookie-copy > p:last-child {
    font-size: 0.9rem;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    width: 100%;
  }

  .cookie-policy-link {
    grid-column: 1 / -1;
    min-height: 40px;
    padding-block: 0.45rem;
  }

  .cookie-choice {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .cookie-settings-button {
    font-size: 0.8rem;
  }

  .cookie-banner {
    bottom: 0.5rem;
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    padding: 1rem;
  }
}
