@charset "UTF-8";
/* ==========================================================================
   C&C SRL High-Tech — home.css
   Homepage-only blocks: hero, stats strip, mission, divisions, services,
   quality, sectors and gallery. Loaded only on is_front_page() (handle:
   ccsrl-home, depends on ccsrl-base).

   Everything shared — tokens, reset, buttons, section head, watermark,
   marquee, CTA band, header, footer, reveal — lives in base.css and is NOT
   repeated here. The news grid lives in news.css, the contact split and the
   form live in contatti.css.

   Rule: no raw hex colour in this file. Translucent values use rgba(), the
   same convention base.css already uses for shadows and hairlines.
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */

.cc-hero{
  position: relative;
  overflow: hidden;
  background: var(--cc-surface);
  color: var(--cc-text);
  border-bottom: 1px solid var(--cc-border);

  /* --cc-navy at 5% — the blueprint grid ruling of the design source. The
     hero is a white surface, so the ruling is navy-tinted, not yellow. */
  --cc-hero-grid: rgba(30, 66, 114, .05);
}

/* --- Blueprint grid overlay --------------------------------------------- */

.cc-hero__overlay{
  position: absolute;
  /* Bled past the edges so the parallax translation never exposes bare navy. */
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--cc-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cc-hero-grid) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* --- Layout -------------------------------------------------------------- */

.cc-hero__inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 80px;
}

/* --- Copy column --------------------------------------------------------- */

.cc-hero__copy{
  min-width: 0;
}

.cc-hero__eyebrow{
  margin: 0 0 18px;
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-hero__title{
  margin: 0 0 20px;
  font-family: var(--cc-font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--cc-navy);
  text-wrap: balance;
}

.cc-hero__rule{
  display: block;
  width: 110px;
  height: 4px;
  margin: 0 0 24px;
  background: var(--cc-yellow);
}

.cc-hero__sub{
  max-width: 560px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--cc-text-muted);
}

.cc-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Media column --------------------------------------------------------
   main.js drives the desktop mousemove parallax through the [data-cc-parallax]
   layers (.cc-hero__media and .cc-hero__overlay), while the ken-burns
   animation owns the transform of .cc-hero__img. Two different elements, so a
   running CSS animation never fights an inline transform.                    */

.cc-hero__media{
  position: relative;
  min-width: 0;
  will-change: transform;
}

.cc-hero__frame{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  /* Placeholder fill + hairline now read against the white hero surface;
     the previous white-on-navy tint and --cc-navy-line border were chosen
     for the old navy panel. */
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
}

.cc-hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: cc-ken-burns 18s var(--cc-ease) infinite alternate;
}

/* --- Corner brackets ------------------------------------------------------ */

.cc-hero__corner--tl,
.cc-hero__corner--br{
  position: absolute;
  z-index: 2;
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.cc-hero__corner--tl{
  top: -14px;
  left: -14px;
  border-top: 3px solid var(--cc-yellow);
  border-left: 3px solid var(--cc-yellow);
}

.cc-hero__corner--br{
  right: -14px;
  bottom: -14px;
  border-right: 3px solid var(--cc-orange);
  border-bottom: 3px solid var(--cc-orange);
}

/* ==========================================================================
   2. STATS STRIP
   Sits on a bare .cc-section--navy (background only, no .cc-section padding),
   so the strip height comes from the item padding — exactly like the design.
   ========================================================================== */

.cc-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--cc-yellow);
}

.cc-stats__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 16px;
  text-align: center;
  /* The design separates the cells with a 1px inset highlight rather than a
     border, and carries it on every cell including the first. */
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .15);
}

.cc-stats__value{
  display: block;
  font-family: var(--cc-font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--cc-surface);
}

.cc-stats__label{
  display: block;
  max-width: 22em;
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--cc-yellow);
}

/* ==========================================================================
   3. MISSION  (section 01)

   Rebuilt after it read as a wall of text. What was wrong, measured at
   1366x860: the section was 1096px tall so it never fitted a screen; the
   navy card was stretched to 731px around 364px of text; the mission was 37
   words set 28px, bold, UPPERCASE and centred — every one of those choices
   makes a paragraph harder to read, and together they made it unreadable;
   and Sauro Cioni sat in a white box nested inside a grey panel.

   Now: no cards at all. Left column = the one sentence that deserves large
   type, marked by a yellow bar. Right column = body copy, left-aligned, with
   Cioni as a signature. A hairline divides the two. Nothing stretches.
   ========================================================================== */

/*
 * Second revision. The two-column text version fixed readability but read
 * as too plain. This one keeps what fixed the reading — sentence case, left
 * alignment, the long paragraphs gone — and brings the weight back through
 * SURFACES instead of through shouting type:
 *
 *   navy mission   | photo
 *   white about    | navy leadership, with the 45+ figure
 *
 * A checkerboard: each tile differs from both neighbours, so the division
 * is visible without borders, and no tile sits inside another.
 */

.cc-mission{
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 16px;
}

.cc-mission__tile{
  position: relative;
  min-width: 0;
  margin: 0;
}

.cc-mission__label{
  margin: 0 0 20px;
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

/* --- Top left: the mission, on navy ------------------------------------ */

.cc-mission__tile--statement{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 54px;
  background: var(--cc-navy);
  border-top: 4px solid var(--cc-orange);
}

.cc-mission__tile--statement .cc-mission__label{
  color: var(--cc-yellow);
}

.cc-mission__quote{
  margin: 0;
}

/* Big and white, but a sentence rather than a slogan: sentence case,
   semibold not black, left-aligned, and a measure the eye can hold. */
.cc-mission__quote p{
  margin: 0;
  max-width: 20em;
  font-family: var(--cc-font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.35vw, 31px);
  line-height: 1.34;
  color: var(--cc-surface);
  text-wrap: pretty;
}

.cc-mission__bar{
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 30px;
  background: var(--cc-yellow);
}

/* --- Top right: the photograph ---------------------------------------- */

.cc-mission__tile--media{
  min-height: 360px;
  overflow: hidden;
  background: var(--cc-navy);
}

.cc-mission__tile--media .cc-mission__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--cc-ease);
}

.cc-mission__tile--media:hover .cc-mission__img{
  transform: scale(1.04);
}

/* The corner brackets of the hero, reused so the photo belongs to the same
   system rather than being dropped in. */
.cc-mission__tile--media::before,
.cc-mission__tile--media::after{
  content: "";
  position: absolute;
  z-index: 2;
  width: 64px;
  height: 64px;
  pointer-events: none;
}

.cc-mission__tile--media::before{
  top: 18px;
  left: 18px;
  border-top: 4px solid var(--cc-yellow);
  border-left: 4px solid var(--cc-yellow);
}

.cc-mission__tile--media::after{
  right: 18px;
  bottom: 18px;
  border-right: 4px solid var(--cc-orange);
  border-bottom: 4px solid var(--cc-orange);
}

/* --- Bottom left: who we are, on white -------------------------------- */

.cc-mission__tile--about{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 48px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-top: 4px solid var(--cc-navy);
}

.cc-mission__lead{
  margin: 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.74;
  color: var(--cc-text);
}

.cc-mission__more{
  margin: 26px 0 0;
}

/* --- Bottom right: leadership, on navy --------------------------------
   Portrait left, words right. The portrait sits on the brand plate (.cc-plate
   in base.css): white, one 45-degree cut, the yellow band — the header logo's
   own frame, so the person is framed like the brand. The photo came as a
   circle on white; border-radius keeps any replacement round too, and on the
   white plate the corners disappear. The cut lands in the empty corner the
   circle leaves, never on the face.
   Right column: name, role, then the 45 years as one line — the figure big,
   its label beside it — and the sentence that completes it.              */

.cc-mission__tile--person{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 42px 44px;
  background: var(--cc-navy-mid);
  border-top: 4px solid var(--cc-yellow);
}

.cc-mission__portrait{
  --plate-cut: 54px;
  --plate-gap: 7px;
  --plate-band: 9px;
  /* 2px lighter top and left: the cut takes weight off the lower right. */
  padding: 12px 16px 16px 12px;
}

.cc-mission__portrait-img{
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.cc-mission__person{
  min-width: 0;
}

.cc-mission__person-name{
  margin: 0;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.2;
  color: var(--cc-surface);
}

.cc-mission__person-role{
  margin: 8px 0 0;
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cc-yellow);
}

.cc-mission__stat{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--cc-navy-line);
}

.cc-mission__stat-value{
  flex: 0 0 auto;
  font-family: var(--cc-font-display);
  font-weight: 800;
  font-size: clamp(44px, 4vw, 56px);
  line-height: .9;
  letter-spacing: -1px;
  color: var(--cc-yellow);
  font-variant-numeric: tabular-nums;
}

.cc-mission__stat-label{
  max-width: 9em;
  font-family: var(--cc-font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cc-surface);
}

.cc-mission__person-text{
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cc-on-navy-soft);
}

/* ==========================================================================
   4. DIVISIONS  (section 02)
   ========================================================================== */

.cc-divisions{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.cc-division{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-top: 4px solid var(--cc-navy);
  transition:
    transform .3s var(--cc-ease),
    box-shadow .3s var(--cc-ease),
    border-top-color .3s var(--cc-ease);
}

.cc-division:hover,
.cc-division:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(14, 34, 64, .12);
  border-top-color: var(--cc-orange);
}

/* The first card is the navy feature card of the design: orange 4px top rule,
   navy fill, light type. The remaining side/bottom hairlines are set to the
   fill colour so they disappear, matching the design's border-top-only card
   without changing the shared .cc-division box model. */
.cc-division--feature{
  padding: 40px 36px;
  background: var(--cc-navy);
  border-color: var(--cc-navy);
  border-top-color: var(--cc-orange);
}

.cc-division__tag{
  margin: 0;
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-division--feature .cc-division__tag{
  color: var(--cc-yellow);
}

.cc-division__title{
  margin: 0;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-division--feature .cc-division__title{
  color: var(--cc-surface);
}

.cc-division__text{
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cc-text-muted);
}

.cc-division--feature .cc-division__text{
  font-size: 16px;
  color: var(--cc-on-navy-soft);
}

.cc-division__link{
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 4px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-division__link::after{
  content: "\2192";
  display: inline-block;
  transition: transform .25s var(--cc-ease);
}

.cc-division__link:hover,
.cc-division__link:focus-visible{
  color: var(--cc-orange);
}

.cc-division--feature .cc-division__link{
  color: var(--cc-surface);
}

.cc-division--feature .cc-division__link:hover,
.cc-division--feature .cc-division__link:focus-visible{
  color: var(--cc-yellow);
}

.cc-division:hover .cc-division__link::after,
.cc-division__link:hover::after,
.cc-division__link:focus-visible::after{
  transform: translateX(5px);
}

/* ==========================================================================
   5. SERVICES  (section 03)
   Hairline grid: the 1px gaps expose the border-coloured background.
   ========================================================================== */

.cc-services{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cc-border);
  border: 1px solid var(--cc-border);
}

.cc-service{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px;
  background: var(--cc-surface);
  transition: background-color .25s var(--cc-ease);
}

.cc-service:hover{
  background: var(--cc-bg);
}

.cc-service__num{
  margin: 0;
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cc-orange);
}

.cc-service__title{
  margin: 0;
  font-family: var(--cc-font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-service__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cc-text-muted);
}

/* Protocols and platforms (Fanuc, Siemens, ESA…): the one thing in the cell
   meant to be spotted at a glance, so they are the only solid colour in it —
   navy tags with the yellow bar and the brand's 45-degree cut. Pushed to the
   foot of the cell, under a hairline. */
.cc-service__keys{
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--cc-border);
}

.cc-service__keys-label{
  margin: 0 0 10px;
  font-family: var(--cc-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-service__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-service__tag{
  padding: 6px 14px 6px 11px;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cc-surface);
  background: var(--cc-navy);
  border-left: 3px solid var(--cc-yellow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

@media (forced-colors: active){
  .cc-service__tag{ border: 1px solid CanvasText; }
}

/* ==========================================================================
   6. QUALITY  (section 04)
   ========================================================================== */

.cc-quality{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.cc-quality__card{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-top: 4px solid var(--cc-navy);
}

.cc-quality--page .cc-quality__card{
  padding: 36px 32px;
}

.cc-quality__code{
  margin: 0;
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-quality__title{
  margin: 0;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-quality__text{
  margin: 0;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--cc-text-muted);
}

.cc-quality__link{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--cc-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-quality__link:hover,
.cc-quality__link:focus-visible{
  color: var(--cc-orange);
}

.cc-quality__actions{
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ==========================================================================
   7. SECTORS  (section 05)
   ========================================================================== */

.cc-sectors{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cc-sector-card{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  color: var(--cc-navy);
  transition:
    transform .3s var(--cc-ease),
    box-shadow .3s var(--cc-ease),
    border-color .3s var(--cc-ease);
}

.cc-sector-card:hover,
.cc-sector-card:focus-visible{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(14, 34, 64, .12);
  border-color: var(--cc-navy);
  color: var(--cc-navy);
}

.cc-sector-card__media{
  display: block;
  height: 190px;
  flex: 0 0 auto;
  background-color: var(--cc-border);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform .6s var(--cc-ease);
}

.cc-sector-card:hover .cc-sector-card__media,
.cc-sector-card:focus-visible .cc-sector-card__media{
  transform: scale(1.05);
}

.cc-sector-card__body{
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
}

.cc-sector-card__num{
  display: block;
  font-family: var(--cc-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-sector-card__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-sector-card__name{
  font-family: var(--cc-font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-sector-card__arrow{
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: var(--cc-orange);
  transition: transform .25s var(--cc-ease);
}

.cc-sector-card__text{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cc-text-muted);
}

.cc-sector-card:hover .cc-sector-card__arrow,
.cc-sector-card:focus-visible .cc-sector-card__arrow{
  transform: translateX(4px);
}

/* Shared centred action row under a homepage grid (sectors and news). */
.cc-sectors__actions{
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* ==========================================================================
   8. GALLERY  (section 06)
   ========================================================================== */

.cc-gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}

.cc-gallery__item{
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  background: var(--cc-border);
}

.cc-gallery__item--wide{
  grid-row: span 2;
  grid-column: span 2;
}

.cc-gallery__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--cc-ease);
}

.cc-gallery__item:hover .cc-gallery__img{
  transform: scale(1.05);
}

/* ==========================================================================
   7. RESPONSIVE — max-width 1100px  (tablet landscape / small laptop)
   ========================================================================== */

@media (max-width: 1100px){

  /* --- Hero --------------------------------------------------------------- */

  .cc-hero__inner{
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    padding-top: 68px;
    padding-bottom: 64px;
  }

  .cc-hero__sub{
    margin-bottom: 28px;
    font-size: 17px;
  }

  .cc-hero__frame{
    min-height: 260px;
  }

  .cc-hero__corner--tl,
  .cc-hero__corner--br{
    width: 44px;
    height: 44px;
  }

  /* Stats keep the design's 30px 16px cell padding down to 640px. */

  /* --- Mission ------------------------------------------------------------ */

  .cc-mission__tile--statement{ padding: 46px 40px; }

  .cc-mission__tile--about,
  .cc-mission__tile--person{ padding: 38px 36px; }

  .cc-mission__tile--person{ gap: 26px; }

  .cc-mission__portrait{ --plate-cut: 46px; padding: 10px 14px 14px 10px; }
  .cc-mission__portrait-img{ width: 124px; height: 124px; }

  /* --- Divisions ---------------------------------------------------------- */

  .cc-divisions{
    gap: 18px;
  }

  .cc-division{
    padding: 28px 24px;
  }

  .cc-division--feature{
    padding: 32px 28px;
  }

  /* --- Services: 4 → 2 ---------------------------------------------------- */

  .cc-services{
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- Sectors: 4 → 3 ----------------------------------------------------- */

  .cc-sectors{
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .cc-sector-card__media{
    height: 170px;
  }

  /* --- Gallery ------------------------------------------------------------ */

  .cc-gallery{
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
}

/* ==========================================================================
   8. RESPONSIVE — max-width 900px  (tablet portrait, mobile nav active)
   ========================================================================== */

@media (max-width: 900px){

  /* --- Hero stacks: copy first, framed image below ------------------------ */

  .cc-hero__inner{
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .cc-hero__sub{
    max-width: none;
  }

  .cc-hero__media{
    /* The parallax is desktop-only, so drop the compositing hint here. */
    will-change: auto;
  }

  .cc-hero__frame{
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  /* --- Mission: one tile per row, in source order ------------------------- */

  .cc-mission{
    grid-template-columns: 1fr;
  }

  .cc-mission__tile--media{ min-height: 280px; }

  /* --- Stats: 3 → 1 ------------------------------------------------------- */

  .cc-stats{
    grid-template-columns: 1fr;
  }

  .cc-stats__item{
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .15);
  }

  .cc-stats__item:first-child{
    box-shadow: none;
  }

  .cc-quality{
    grid-template-columns: 1fr;
  }

  /* --- Divisions: single column ------------------------------------------- */

  .cc-divisions{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cc-division,
  .cc-division--feature{
    padding: 28px 24px;
  }

  .cc-division--feature .cc-division__text{
    font-size: 15px;
  }

  /* Card lift on a touch device is noise — keep only the colour change. */
  .cc-division:hover,
  .cc-division:focus-within,
  .cc-sector-card:hover,
  .cc-sector-card:focus-visible{
    transform: none;
  }

  /* --- Sectors: 3 → 2 ----------------------------------------------------- */

  .cc-sectors{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cc-sector-card__media{
    height: 160px;
  }

  .cc-sector-card__name{
    font-size: 18px;
  }

  .cc-sectors__actions{
    margin-top: 32px;
  }

  /* --- Gallery: plain 2-col, spans dropped -------------------------------- */

  .cc-gallery{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
    gap: 12px;
  }

  .cc-gallery__item--wide{
    grid-row: auto;
    grid-column: auto;
  }
}

/* ==========================================================================
   9. RESPONSIVE — max-width 640px  (phone)
   ========================================================================== */

@media (max-width: 640px){

  /* --- Hero --------------------------------------------------------------- */

  .cc-hero__inner{
    gap: 34px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .cc-hero__eyebrow{
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 2px;
  }

  .cc-hero__title{
    margin-bottom: 16px;
  }

  .cc-hero__rule{
    width: 74px;
    margin-bottom: 18px;
  }

  .cc-hero__sub{
    margin-bottom: 26px;
    font-size: 15px;
  }

  .cc-hero__actions{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cc-hero__overlay{
    background-size: 40px 40px;
  }

  .cc-hero__corner--tl,
  .cc-hero__corner--br{
    width: 32px;
    height: 32px;
    border-width: 2px;
  }

  .cc-hero__corner--tl{
    top: -8px;
    left: -8px;
  }

  .cc-hero__corner--br{
    right: -8px;
    bottom: -8px;
  }

  /* --- Stats: stays 2 up, tighter ----------------------------------------- */

  .cc-stats__item{
    gap: 6px;
    padding: 24px 12px;
  }

  .cc-stats__label{
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  /* --- Mission ------------------------------------------------------------ */

  .cc-mission__tile--statement{ padding: 36px 26px; }

  .cc-mission__tile--about,
  .cc-mission__tile--person{ padding: 30px 24px; }

  .cc-mission__tile--media{ min-height: 220px; }

  .cc-mission__lead{ font-size: 16px; }

  /* Phones: one centred column, as on the Azienda hero — the plate leads on
     the centre axis, then name, role, the 45 years and the sentence. */
  .cc-mission__tile--person{
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  .cc-mission__portrait{
    --plate-cut: 42px;
    --plate-gap: 6px;
    --plate-band: 8px;
    padding: 10px 14px 14px 10px;
  }

  .cc-mission__portrait-img{ width: 120px; height: 120px; }

  .cc-mission__person-name{ font-size: 23px; }

  /* Letter-spacing trails the last glyph: an equal indent re-centres it. */
  .cc-mission__person-role{ text-indent: 1.6px; }

  .cc-mission__stat{
    justify-content: center;
    text-align: left;
  }

  /* --- Divisions ----------------------------------------------------------- */

  .cc-division,
  .cc-division--feature{
    padding: 24px 20px;
  }

  .cc-division__text,
  .cc-division--feature .cc-division__text{
    font-size: 14px;
  }

  /* --- Services: 2 → 1 ----------------------------------------------------- */

  .cc-services{
    grid-template-columns: 1fr;
  }

  .cc-service{
    padding: 24px 20px;
  }

  .cc-service__title{
    font-size: 20px;
  }

  /* --- Sectors: 2 → 1 ------------------------------------------------------ */

  .cc-sectors{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cc-sector-card__media{
    height: 180px;
  }

  .cc-sectors__actions{
    margin-top: 26px;
  }

  /* --- Gallery: single column --------------------------------------------- */

  .cc-gallery{
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
    gap: 10px;
  }
}

/* ==========================================================================
   10. PRINT
   ========================================================================== */

@media print{

  /* The hero is a white surface with navy type on screen, so it needs no
     print recolouring — only its decorative layers are dropped. */
  .cc-hero__overlay,
  .cc-hero__corner--tl,
  .cc-hero__corner--br{
    display: none !important;
  }

  /* The stats strip is white-on-navy with a yellow label; both vanish or turn
     unreadable once background printing is off. */
  .cc-stats{
    border-top-color: var(--cc-navy);
  }

  .cc-stats__value{
    color: var(--cc-ink);
  }

  .cc-stats__label{
    color: var(--cc-text-muted);
  }

  .cc-hero__img{
    animation: none !important;
  }

  /* The navy feature card relies on background printing being enabled; flatten
     it so its light type never lands white-on-white on paper. */
  .cc-division--feature{
    background: var(--cc-surface);
    border-color: var(--cc-border);
    border-top-color: var(--cc-navy);
  }

  .cc-division--feature .cc-division__tag{
    color: var(--cc-navy);
  }

  .cc-division--feature .cc-division__title,
  .cc-division--feature .cc-division__link{
    color: var(--cc-ink);
  }

  .cc-division--feature .cc-division__text{
    color: var(--cc-text-muted);
  }

  /* Navy tiles would print as solid ink: flatten them to outlined boxes. */
  .cc-mission__tile--statement,
  .cc-mission__tile--person{
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
  }

  .cc-mission__quote p,
  .cc-mission__person-name,
  .cc-mission__person-text,
  .cc-mission__stat-label{
    color: var(--cc-ink);
  }

  .cc-mission__portrait::before,
  .cc-mission__portrait::after{ display: none; }

  .cc-mission__tile--media{ display: none; }

  .cc-division,
  .cc-service,
  .cc-sector-card{
    box-shadow: none !important;
    transform: none !important;
    break-inside: avoid;
  }
}
