:root {
  --blue: #0797cf;
  --blue-dark: #0879a9;
  --ink: #0c1720;
  --muted: #586672;
  --line: #dce6eb;
  --pale: #eef8fc;
  --white: #fff;
  --shell: 1180px;
  --shadow: 0 18px 44px rgba(8, 42, 59, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Rubik", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section-pad { padding-block: clamp(72px, 9vw, 128px); }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 100; padding: 10px 16px; color: #fff; background: #000; text-decoration: none; }
.skip-link:focus { top: 18px; }

.site-header { position: relative; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(8,121,169,.12); }
.header-inner { width: min(calc(100% - 48px), var(--shell)); min-height: 118px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { width: 250px; flex: 0 0 auto; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); font-size: .92rem; font-weight: 500; }
.main-nav a { position: relative; text-decoration: none; padding-block: 12px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 2px; background: var(--blue); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.active::after { right: 0; }
.main-nav .language { color: var(--blue-dark); font-weight: 700; }
.menu-toggle, .menu-button { display: none; }

.page-hero { min-height: 390px; display: grid; align-items: center; background: #effaff url("images/sfondo-header.webp") center/cover no-repeat; border-bottom: 1px solid #e3f0f5; }
.page-hero .shell { padding-block: 88px; }
.eyebrow { margin: 0 0 14px; color: var(--blue-dark); font-size: .78rem; line-height: 1.2; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 930px; margin: 0; font-size: clamp(1.5rem, 3.5vw, 3.35rem); line-height: 1.1; letter-spacing: -.055em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(1.125rem, 2.25vw, 2.2rem); line-height: 1.15; letter-spacing: -.045em; }
h3 { margin: 0; font-size: 1.06rem; line-height: 1.35; }

.sectors { position: relative; z-index: 2; margin-top: -32px; }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow); }
.sector-grid article { min-height: 166px; padding: 28px; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; }
.sector-grid article:nth-child(1) { background: var(--pale); color: var(--ink); }
.sector-grid article:nth-child(2) { background: #0879a9; color: #fff; }
.sector-grid article:nth-child(3) { background: #0b3346; color: #fff; }
.sector-grid article:nth-child(4) { background: #071923; color: #fff; }
.sector-grid article:last-child { border-right: 0; }
.sector-grid span, .card-index { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.sector-grid h2 { margin: 0; font-size: clamp(1rem, 1.5vw, 1.28rem); line-height: 1.25; letter-spacing: -.02em; }

.activities-intro { padding-bottom: 42px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(40px, 8vw, 130px); }
.intro-grid > p { max-width: 620px; margin: 0 0 6px; color: var(--muted); font-size: 18px; }

.activity { border-top: 1px solid var(--line); }
.split-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(48px, 8vw, 110px); }
.split-layout.reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.activity-copy h2 { max-width: 720px; }
.section-number { margin: 0 0 20px; color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .18em; }
.lead { margin: 28px 0 34px; color: var(--muted); font-size: 18px; }
.activity-copy h3 { margin-bottom: 20px; }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list.two-columns { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.check-list li { position: relative; padding-left: 24px; color: #273641; font-size: 17px; }
.check-list li::before { content: ""; position: absolute; top: .68em; left: 0; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

.media-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-collage figure, .management-gallery figure { position: relative; min-height: 210px; margin: 0; overflow: hidden; background: #dce9ee; }
.media-collage img, .management-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-collage figure:hover img, .management-gallery figure:hover img { transform: scale(1.025); }
.media-wide { grid-column: 1 / -1; min-height: 320px !important; }
.field-collage .media-tall { grid-row: span 2; min-height: 530px; }
.field-collage figure:not(.media-tall) { min-height: 258px; }
.field-collage .media-tall img { object-position: 55% center; }
.planning-collage .media-wide img { object-fit: contain; background: #f7f9fa; }
.planning-collage figure:not(.media-wide) img { object-fit: contain; background: #fff; }
.activity-tint { background: var(--pale); }

.section-heading.compact { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 80px; align-items: end; }
.section-heading.compact .section-number { grid-column: 1 / -1; }
.section-heading.compact .lead { margin: 0 0 6px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 62px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid article { min-height: 220px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid span { color: var(--blue); font-size: .75rem; font-weight: 700; }
.service-grid h3 { margin: 26px 0 10px; font-size: 1.18rem; }
.service-grid p { margin: 0; color: var(--muted); font-size: 17px; }

.activity-dark { color: #fff; background: #071923; border-top: 0; }
.activity-dark .lead, .activity-dark .check-list li { color: #c8d7df; }
.activity-dark .media-collage figure { background: #15303c; }

.project-management { background: #f7fafb; }
.section-heading.centered { text-align: center; }
.management-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.management-grid article { min-height: 350px; padding: 38px; color: #fff; background: linear-gradient(150deg, #0b3346, #071923); }
.management-grid article:nth-child(2) { background: linear-gradient(150deg, #0879a9, #075678); }
.management-grid h3 { min-height: 70px; margin: 26px 0 24px; font-size: 1.35rem; }
.management-grid ul { margin: 0; padding-left: 18px; color: #d6e6ed; }
.management-grid li { font-size: 17px; }
.management-grid li + li { margin-top: 9px; }
.management-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.management-gallery figure { min-height: 280px; }

.site-footer { padding-top: 72px; color: #d3e0e5; background: #050f14; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr .65fr; gap: 60px; padding-bottom: 58px; }
.footer-brand img { width: 220px; }
.site-footer address { font-style: normal; }
.site-footer strong { color: #fff; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.footer-bottom { padding-block: 22px; color: #91a3ac; border-top: 1px solid #21313a; font-size: .82rem; }

/* Riprende il comportamento fluido del sito originale sui desktop:
   il titolo resta centrato, mentre le sezioni si estendono fino al bordo destro. */
@media (min-width: 1021px) {
  .sectors > .shell,
  .activities-intro > .shell,
  .activity > .shell,
  .permissions > .shell,
  .project-management > .shell {
    width: 80%;
    max-width: none;
    margin-left: 20%;
    margin-right: 0;
  }
}

@media (max-width: 1020px) {
  .header-inner { min-height: 104px; }
  .brand { width: 230px; }
  .menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .menu-button { display: grid; gap: 6px; width: 42px; padding: 8px 4px; cursor: pointer; }
  .menu-button span { display: block; height: 2px; background: var(--blue-dark); }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 24px; background: #fff; box-shadow: 0 18px 30px rgba(8,42,59,.12); }
  .menu-toggle:checked ~ .main-nav { display: grid; gap: 4px; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid article:nth-child(2) { border-right: 0; }
  .sector-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split-layout, .split-layout.reverse { grid-template-columns: 1fr; }
  .split-layout.reverse .activity-copy { grid-row: 1; }
  .section-heading.compact { grid-template-columns: 1fr; }
  .section-heading.compact .lead { margin-top: 28px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .management-grid { grid-template-columns: 1fr; }
  .management-grid article { min-height: 0; }
  .management-grid h3 { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); }
}

@media (max-width: 680px) {
  .shell, .header-inner { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 88px; }
  .brand { width: 190px; }
  .page-hero { min-height: 330px; }
  .page-hero .shell { padding-block: 64px; }
  h1 { font-size: clamp(1.325rem, 7.5vw, 2.2rem); }
  .sectors { margin-top: 0; }
  .sector-grid { width: 100%; grid-template-columns: 1fr; box-shadow: none; }
  .sector-grid article { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sector-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .check-list.two-columns { grid-template-columns: 1fr; }
  .media-collage { grid-template-columns: 1fr; }
  .media-wide { grid-column: auto; min-height: 240px !important; }
  .field-collage .media-tall { grid-row: auto; min-height: 310px; }
  .field-collage figure:not(.media-tall) { min-height: 230px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 0; }
  .management-gallery { grid-template-columns: 1fr; }
  .management-gallery figure { min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer nav { grid-column: auto; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Header e footer coordinati alla pagina TELCO originale. */
@font-face { font-family: "Social Brands"; src: url("images/social-brands.woff2") format("woff2"); font-display: block; }
body { background: #fff url("images/sfondo-header.webp") center top / 100% 298px no-repeat; }
.site-header { background: transparent; border: 0; }
.header-inner { position: relative; width: 81%; max-width: 1400px; min-height: 118px; gap: 28px; align-items: flex-start; }
.brand { width: 255px; margin-top: 14px; }
.header-tools { position: absolute; top: 16px; right: 0; display: flex; align-items: center; gap: 40px; color: #000; font-weight: 600; line-height: 26px; }
.header-tools a { text-decoration: none; }
.social-links { display: flex; gap: 12px; }
.social-links a { font-family: "Social Brands"; font-size: 24px; font-weight: 400; }
.main-nav { flex: 1; margin-top: 53px; gap: 0; color: #000; font-size: 16px; font-weight: 400; text-transform: uppercase; }
.main-nav a { flex: 1; text-align: center; white-space: nowrap; padding: 10px 20px 12px; }
.main-nav a.active { color: #007ac2; }
.main-nav a::after { bottom: 0; height: 3px; background: #007ac2; }
.page-hero { min-height: 180px; background: transparent; border: 0; }
.page-hero .shell { padding-block: 0; }
.page-hero h1 { max-width: none; text-align: center; font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: normal; color: #000; }
.sectors { margin-top: 0; padding-top: 36px; }
.permissions-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.permissions-heading .lead { margin: 28px 0 0; }
.permissions-heading figure { margin: 0; justify-self: center; width: 100%; }
.permissions-heading img { width: 100%; height: auto; }
.works-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.works-collage figure { min-height: 0; aspect-ratio: 4 / 3; }
.works-collage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-footer { padding-top: 24px; background: #000; color: #fff; font-size: 18px; line-height: 1.5; }
.site-footer .shell { width: 81%; max-width: 1400px; }
.footer-grid { grid-template-columns: 30% 44% 26%; gap: 0; min-height: 211px; padding-bottom: 40px; }
.footer-brand img { width: 220px; }
.site-footer address p { margin: 16px 0 0; }
.site-footer a { color: #0098d7; }
.footer-certifications { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.footer-certifications .quality-logo { width: 135px; height: auto; }
.footer-certifications a { display: block; width: 150px; flex-shrink: 0; }
.footer-bottom { min-height: 87px; padding: 34px 0 20px; border-top: 1px solid #ddd; color: #fff; font-size: 18px; text-align: center; }
@media (max-width: 1100px) {
  .header-inner { width: calc(100% - 48px); }
  .brand { width: 220px; }
  .main-nav a { padding-inline: 10px; }
  .footer-grid { grid-template-columns: 25% 45% 30%; }
  .footer-certifications { gap: 10px; }
  .footer-certifications .quality-logo { width: 100px; }
  .footer-certifications a { width: 110px; }
}
@media (max-width: 1020px) {
  .header-inner { align-items: center; min-height: 118px; }
  .brand { margin-top: 0; }
  .header-tools { right: 65px; top: 43px; gap: 20px; }
  .main-nav { margin-top: 0; }
  .main-nav a { text-align: left; }
  .permissions-heading { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1.5fr; gap: 30px; }
  .footer-certifications { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 680px) {
  body { background-size: auto 298px; }
  .header-inner { width: calc(100% - 32px); min-height: 118px; }
  .brand { width: 190px; }
  .header-tools { top: 91px; right: 0; gap: 24px; font-size: 14px; }
  .social-links a { font-size: 20px; }
  .page-hero { min-height: 180px; }
  .page-hero .shell { padding-block: 0; }
  .page-hero h1 { font-size: 28px; line-height: 1.15; }
  .permissions-heading { grid-template-columns: 1fr; }
  .works-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .site-footer .shell { width: calc(100% - 40px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-certifications { grid-column: auto; }
  .footer-bottom { font-size: 16px; padding-block: 24px; }
}
