:root {
  --primary: #003a4e;
  --primary-dark: #062936;
  --primary-deep: #021b25;
  --ice: #cce5ff;
  --white: #ffffff;
  --text: #17242a;
  --muted: #647074;
  --border: rgba(0, 58, 78, 0.14);
  --border-light: rgba(255, 255, 255, 0.18);
  --font-heading: "all-round-gothic", Arial, sans-serif;
  --font-body: "mundial", Arial, sans-serif;
  --font-serif: "all-round-gothic", Arial, sans-serif;
  --container: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--white);
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.label,
.mini-label {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 800;
}

.label {
  color: var(--ice);
}

.label.dark,
.mini-label {
  color: rgba(0, 58, 78, 0.48);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--primary);
}

.section-copy {
  font-size: 18px;
  line-height: 1.85;
  color: var(--muted);
}

.centered {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 74px;
}

.centered .label {
  margin-bottom: 24px;
}

/* NAVBAR */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  height: 104px;
  background: rgba(0, 58, 78, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.nav-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.70);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--ice);
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.nav-contact:hover {
  background: var(--white);
  color: var(--primary);
}

/* HERO CON IMMAGINI CHE SCORRONO */

.hero {
  position: relative;
  min-height: 94vh;
  padding-top: 104px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
}

.hero-slider,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite;
  transform: scale(1.04);
}

.slide-1 {
  background-image: url("img/hero/hero-1.jpg");
  animation-delay: 0s;
}

.slide-2 {
  background-image: url("img/hero/hero-2.jpg");
  animation-delay: 6s;
}

.slide-3 {
  background-image: url("img/hero/hero-3.jpg");
  animation-delay: 12s;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 58, 78, 0.92) 0%, rgba(0, 58, 78, 0.70) 44%, rgba(0, 58, 78, 0.38) 100%),
    linear-gradient(0deg, rgba(0, 58, 78, 0.35), rgba(0, 58, 78, 0.10));
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  8% {
    opacity: 1;
  }

  34% {
    opacity: 1;
    transform: scale(1);
  }

  42% {
    opacity: 0;
    transform: scale(1);
  }

  100% {
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  padding: 118px 0 112px;
}

.hero .label {
  margin-bottom: 34px;
}

.hero h1 {
  max-width: 1020px;
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1.07;
  font-weight: 400;
  letter-spacing: -0.052em;
  margin-bottom: 38px;
}

.hero p {
  max-width: 760px;
  padding-left: 30px;
  border-left: 2px solid var(--ice);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 40px;
  background: var(--ice);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  transition: 0.28s ease;
}

.btn:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* VISION */

.vision {
  padding: 130px 0;
  background: var(--white);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
}

.vision-block {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.vision-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 82px;
  height: 2px;
  background: var(--primary);
}

.vision-block .mini-label {
  margin-bottom: 28px;
}

.vision-block h3 {
  font-family: var(--font-serif);
  font-size: clamp(31px, 3.3vw, 48px);
  line-height: 1.14;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.vision-block p {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.86;
  color: var(--muted);
}

/* AZIENDE SENZA CARD */

.companies {
  padding: 135px 0;
  background: var(--white);
  overflow: hidden;
  border-top: 1px solid rgba(0, 58, 78, 0.10);
}

.companies-head {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 86px;
  align-items: end;
  margin-bottom: 92px;
}

.companies-head .label {
  margin-bottom: 24px;
}

.companies-head p {
  padding-bottom: 10px;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 52px;
  row-gap: 92px;
}

.company-item {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  border-bottom: 1px solid rgba(0, 58, 78, 0.14);
  padding-bottom: 30px;
  transition: 0.3s ease;
}

.company-item:hover {
  transform: translateY(-5px);
}

.company-logo-box {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 34px;
}

.company-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
  cursor: default;
}
.company-logo-box img {
  max-height: 100px;
  max-width: 88%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  transition: 0.35s ease;
  margin: 0 auto;
}

.company-item:hover .company-logo-box img {
  filter: grayscale(0);
  transform: scale(1.045);
}

.company-logo-box .logo-mistral {
  max-height: 165px;
  max-width: 110%;
  transform: scale(1.34);
  transform-origin: center center;
}

.company-item:hover .company-logo-box .logo-mistral {
  transform: scale(1.40);
}

.company-text {
  flex: 1;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

.company-short {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
  text-align: center;
}

.company-hidden {
  opacity: 0;
  transform: translateY(12px);
  font-size: 14px;
  line-height: 1.7;
  color: #33484f;
  transition: 0.32s ease;
  text-align: center;
}

.company-item:hover .company-hidden {
  opacity: 1;
  transform: translateY(0);
}

/* EMOTIONAL */

.emotional {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
}

.emotional-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 58, 78, 0.94), rgba(0, 58, 78, 0.62)),
    radial-gradient(circle at 78% 32%, rgba(204, 229, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #003a4e, #061c26);
}

/*
  QUANDO HAI LA FOTO EMOZIONALE / VILLA CAVALLETTI:

  .emotional-bg {
    background:
      linear-gradient(90deg, rgba(0,58,78,.92), rgba(0,58,78,.56)),
      url("img/villa-cavalletti.jpg");
    background-size: cover;
    background-position: center;
  }
*/

.emotional-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.34fr 0.74fr;
  gap: 94px;
  align-items: center;
  padding: 124px 0;
}

.emotional .label {
  margin-bottom: 28px;
}

.emotional h2 {
  font-family: var(--font-serif);
  font-size: clamp(43px, 6vw, 84px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.emotional-list {
  list-style: none;
  padding-left: 42px;
  border-left: 2px solid var(--ice);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.emotional-list li {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
}

.emotional-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
}

.emotional-list li:first-child {
  color: var(--ice);
}

.emotional-list li:first-child::before {
  background: var(--ice);
  border-color: var(--ice);
}

/* FOOTER */

.site-footer {
  background: var(--primary-deep);
  color: var(--white);
  padding: 78px 0 34px;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.75fr 1.05fr 1.45fr 0.85fr;
  gap: 0;
}

.footer-col {
  min-width: 0;
  padding: 10px 42px;
}

.footer-col:first-child {
  padding-left: 0;
}

.footer-col:last-child {
  padding-right: 0;
}

.footer-col + .footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-logo-col {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  width: 112px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-title {
  display: block;
  color: var(--ice);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 24px;
  white-space: nowrap;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-list a,
.footer-list span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
  transition: 0.25s ease;
}

.footer-list a {
  white-space: nowrap;
}

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

.footer-list strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    row-gap: 42px;
  }

  .footer-col {
    padding: 0 34px;
  }

  .footer-col:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(3) {
    padding-left: 0;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(4) {
    padding-right: 0;
  }
}

/* TABLET */
@media (max-width: 900px) {
  .container {
    width: min(100% - 34px, var(--container));
  }

  .site-nav {
    height: 88px;
  }

  .nav-inner {
    justify-content: center;
    position: relative;
  }

  .nav-logo {
    position: absolute;
    left: 0;
  }

  .nav-logo img {
    height: 62px;
  }

  .nav-links {
    display: none;
  }

  .nav-contact {
    position: absolute;
    right: 0;
    min-height: 38px;
    padding: 0 16px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: 86vh;
    padding-top: 88px;
  }

  .hero-content {
    max-width: 760px;
    padding: 100px 0 90px;
  }

  .hero h1 {
    font-size: clamp(46px, 9vw, 72px);
    line-height: 1.08;
  }

  .hero p {
    max-width: 620px;
    font-size: 19px;
  }

  .vision-grid,
  .companies-head,
  .emotional-content {
    grid-template-columns: 1fr;
  }

  .companies-head {
    gap: 28px;
    margin-bottom: 70px;
  }

  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 38px;
    row-gap: 72px;
  }

  .company-text {
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
  }

  .company-short,
  .company-hidden {
    text-align: center;
  }

  .emotional-content {
    gap: 54px;
  }

  .emotional-list {
    padding-left: 30px;
  }
}

/* MOBILE */
@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-nav {
    height: 82px;
  }

  .nav-inner {
    justify-content: space-between;
  }

  .nav-logo {
    position: static;
  }

  .nav-logo img {
    height: 58px;
  }

  .nav-contact {
    position: static;
    min-height: 36px;
    padding: 0 14px;
    font-size: 9px;
    letter-spacing: 0.11em;
  }

  .hero {
    min-height: 82vh;
    padding-top: 82px;
    align-items: center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 58, 78, 0.94) 0%, rgba(0, 58, 78, 0.78) 55%, rgba(0, 58, 78, 0.56) 100%),
      linear-gradient(0deg, rgba(0, 58, 78, 0.36), rgba(0, 58, 78, 0.10));
  }

  .hero-content {
    padding: 86px 0 76px;
  }

  .hero .label {
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(39px, 11.5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
  }

  .hero p {
    max-width: 100%;
    padding-left: 18px;
    font-size: 17px;
    line-height: 1.68;
    margin-bottom: 34px;
  }

  .btn {
    min-height: 52px;
    padding: 0 28px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .vision,
  .companies {
    padding: 78px 0;
  }

  .centered {
    text-align: left;
    margin-bottom: 46px;
  }

  .section-title {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.08;
  }

  .section-copy {
    font-size: 16px;
    line-height: 1.75;
  }

  .vision-grid {
    gap: 48px;
  }

  .vision-block {
    min-height: auto;
  }

  .vision-block h3 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .vision-block p {
    font-size: 16px;
    line-height: 1.78;
  }

  .companies-head {
    margin-bottom: 58px;
  }

  .companies-grid {
    grid-template-columns: 1fr;
    row-gap: 58px;
  }

  .company-item {
    min-height: auto;
    padding-bottom: 34px;
  }

  .company-logo-box {
    height: auto;
    min-height: 130px;
    margin-bottom: 24px;
    justify-content: center;
  }

  .company-logo-box img {
    max-height: 92px;
    max-width: 82%;
  }

  .company-logo-box .logo-mistral {
    max-height: 145px;
    max-width: 100%;
    transform: scale(1.25);
  }

  .company-item:hover .company-logo-box .logo-mistral {
    transform: scale(1.30);
  }

  .company-text {
    max-width: 310px;
    margin: 0 auto;
    text-align: center;
  }

  .company-short {
    font-size: 15px;
    line-height: 1.62;
    text-align: center;
  }

  .company-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    font-size: 14px;
    line-height: 1.68;
    text-align: center;
    transition: 0.35s ease;
  }

  .company-item.is-visible .company-hidden {
    opacity: 1;
    max-height: 180px;
    transform: translateY(0);
  }

  .company-item.is-visible {
    border-bottom-color: rgba(0, 58, 78, 0.34);
  }

  .company-item.is-visible .company-logo-box img {
    filter: grayscale(0);
    transform: scale(1.045);
  }

  .company-item.is-visible .company-logo-box .logo-mistral {
    transform: scale(1.30);
  }

  .emotional {
    min-height: auto;
  }

  .emotional-content {
    padding: 84px 0;
    gap: 42px;
  }

  .emotional h2 {
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.08;
  }

  .emotional-list {
    padding-left: 24px;
    gap: 22px;
  }

  .emotional-list li {
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.13em;
  }

  .site-footer {
    padding: 58px 0 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    row-gap: 0;
    text-align: center;
  }

  .footer-col,
  .footer-col:first-child,
  .footer-col:last-child,
  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    padding: 24px 0;
    border-left: none;
  }

  .footer-col + .footer-col {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .footer-logo-col {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 26px;
  }

  .footer-logo {
    width: 108px;
    margin: 0 auto;
  }

  .footer-title {
    margin-bottom: 16px;
    text-align: center;
  }

  .footer-list {
    align-items: center;
    gap: 10px;
  }

  .footer-list a,
  .footer-list span {
    text-align: center;
    white-space: normal;
  }

  .footer-list strong {
    text-align: center;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 22px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    line-height: 1.6;
  }
}

/* MOBILE PICCOLI */
@media (max-width: 420px) {


  .nav-contact {
    padding: 0 11px;
    font-size: 8.5px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .company-logo-box img {
    max-width: 88%;
  }

  .company-logo-box .logo-mistral {
    transform: scale(1.18);
  }

  .company-item:hover .company-logo-box .logo-mistral {
    transform: scale(1.22);
  }

  .company-item.is-visible .company-logo-box .logo-mistral {
    transform: scale(1.22);
  }
}


/* =========================================================
   AZIENDE - CARD QUADRATE 4 + 4
   Overlay blu + logo, hover con immagine pulita, freccia blu
   Testo descrittivo visibile solo in hover
========================================================= */

.companies-grid-new {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 72px 22px !important;
}

.company-card-new {
  display: block;
  text-decoration: none;
  color: var(--primary-deep);
}

.company-card-new__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--primary-deep);
}

.company-card-new__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.55s ease;
}

.company-card-new__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 57, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 2;
}

.company-card-new__logo {
  width: min(75%, 210px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.company-card-new__logo.logo-mistral {
  width: min(84%, 240px);
}

/* Freccia: cerchio blu, elegante, con margine da destra/basso */
.company-card-new__hover {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Nascondo il testo dentro l'immagine: il testo compare sotto il titolo */
.company-card-new__hover p {
  display: none !important;
}

.company-card-new__arrow {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  flex: 0 0 58px;
  box-shadow: 0 18px 34px rgba(0, 35, 57, 0.28);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card-new h3 {
  margin: 26px 0 0;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary-deep);
  transition: color 0.35s ease;
}

/* Testo descrittivo sotto il titolo */
.company-card-new h3::after {
  content: "";
  display: block;
  margin-top: 16px;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--primary-deep);
  white-space: pre-line;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Testi diversi per ogni card */
.company-card-new:nth-child(1) h3::after {
  content: "Orientamento, supporto didattico e percorsi personalizzati.\A Recupero anni scolastici, orientamento e supporto allo studio.";
}

.company-card-new:nth-child(2) h3::after {
  content: "Formazione professionale e inserimento nel mondo del lavoro.\A Percorsi formativi pensati per rispondere ai bisogni reali delle persone e delle imprese.";
}

.company-card-new:nth-child(3) h3::after {
  content: "Strategia, creatività e comunicazione per i brand.\A Brand identity, comunicazione digitale e strategie marketing.";
}

.company-card-new:nth-child(4) h3::after {
  content: "Consulenza, organizzazione e innovazione per la sanità.\A Soluzioni e strumenti per rendere più efficienti processi e servizi sanitari.";
}

.company-card-new:nth-child(5) h3::after {
  content: "Assistenza socio-sanitaria e servizi alla persona.\A Cura, continuità e supporto per famiglie, strutture e comunità.";
}

.company-card-new:nth-child(6) h3::after {
  content: "Beauty, professionalità e cura del dettaglio.\A Centro specializzato nel mondo nails e nella valorizzazione dell’esperienza cliente.";
}

.company-card-new:nth-child(7) h3::after {
  content: "Ospitalità, ristorazione ed esperienze nel Cilento.\A Accoglienza, cucina, territorio e cultura locale.";
}

.company-card-new:nth-child(8) h3::after {
  content: "Make-up e identità visiva distintiva.\A Agenzia specializzata in make-up, immagine e progetti visivi ad alto impatto.";
}

/* Hover */
.company-card-new:hover .company-card-new__overlay {
  opacity: 0;
  visibility: hidden;
}

.company-card-new:hover .company-card-new__img {
  transform: scale(1.06);
}

.company-card-new:hover .company-card-new__hover {
  opacity: 1;
  transform: translateY(0);
}

.company-card-new:hover .company-card-new__arrow {
  background: var(--primary-dark);
  transform: translateX(4px) scale(1.04);
  box-shadow: 0 22px 42px rgba(0, 35, 57, 0.36);
}

.company-card-new:hover h3 {
  color: var(--primary);
}

.company-card-new:hover h3::after {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 1180px) {
  .companies-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 64px 30px !important;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .companies-grid-new {
    grid-template-columns: 1fr !important;
    gap: 52px !important;
  }

  .company-card-new__hover {
    right: 14px;
    bottom: 14px;
    opacity: 1;
    transform: none;
  }

  .company-card-new__arrow {
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }

  .company-card-new h3 {
    margin-top: 18px;
  }

  .company-card-new h3::after {
    opacity: 1;
    transform: none;
    font-size: 0.95rem;
  }
}


/* =========================================================
   FONT ADOBE TYPEKIT
   Titoli: All Round Gothic Bold
   Testi: Mundial Light
========================================================= */

body,
p,
li,
a,
span,
input,
textarea,
select,
button,
.section-copy,
.company-card-new h3::after,
.footer-list a,
.footer-list span {
  font-family: var(--font-body) !important;
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero h1,
.vision-block h3,
.emotional h2,
.company-card-new h3,
.label,
.mini-label,
.nav-links a,
.nav-contact,
.btn,
.footer-title,
.footer-bottom {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
}

.section-title,
.hero h1,
.vision-block h3,
.emotional h2 {
  letter-spacing: -0.035em;
}

.company-card-new h3,
.label,
.mini-label,
.nav-links a,
.nav-contact,
.btn,
.footer-title,
.footer-bottom {
  letter-spacing: 0.14em;
}

.hero p,
.vision-block p,
.section-copy,
.company-card-new h3::after,
.footer-list a,
.footer-list span {
  font-weight: 300 !important;
}

/* =========================================================
   VISION / MISSION EDITORIALE
========================================================= */

.vision-editorial {
  padding: 0 !important;
  background: var(--white);
  overflow: hidden;
  border-top: 1px solid rgba(0, 58, 78, 0.08);
}

.vision-editorial__top {
  padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 10vw, 130px);
  background: var(--white);
}

.vision-editorial__intro {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.vision-editorial .label {
  margin-bottom: 34px;
}

.vision-editorial__intro .section-title {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #003a4e;
}

.vision-editorial__intro p {
  max-width: 760px;
  margin: clamp(48px, 6vw, 78px) auto 0;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.55;
  font-family: var(--font-body) !important;
  font-weight: 300 !important;
  color: var(--primary-deep);
}

.vision-editorial__divider {
  position: relative;
  height: 92px;
  background: linear-gradient(
    176deg,
    var(--white) 0%,
    var(--white) 49%,
    rgba(204, 229, 255, 0.32) 50%,
    rgba(204, 229, 255, 0.32) 100%
  );
}

.vision-editorial__divider span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  transform: translateX(-50%);
  background: var(--primary);
}

.vision-editorial__bottom {
  padding: clamp(90px, 10vw, 140px) 0 clamp(115px, 12vw, 170px);
  background: rgba(204, 229, 255, 0.32);
}

.vision-editorial__mission {
  max-width: 860px;
  margin: 0 auto;
}

.vision-editorial__mission .label {
  margin-bottom: 30px;
}

.vision-editorial__mission .section-title {
  max-width: 880px;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #003a4e;
}

.vision-editorial__mission p {
  max-width: 760px;
  margin-top: clamp(34px, 4vw, 54px);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.58;
  font-family: var(--font-body) !important;
  font-weight: 300 !important;
  color: var(--primary-deep);
}

@media (max-width: 768px) {
  .vision-editorial__top {
    padding: 86px 0 76px;
  }

  .vision-editorial__intro {
    text-align: left;
  }

  .vision-editorial__intro .section-title,
  .vision-editorial__mission .section-title {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.06;
  }

  .vision-editorial__intro p,
  .vision-editorial__mission p {
    font-size: 20px;
    line-height: 1.62;
  }

  .vision-editorial__divider {
    height: 72px;
  }

  .vision-editorial__bottom {
    padding: 76px 0 92px;
  }
}

.company-card-new__media {
  position: relative;
  overflow: hidden;
}

/* immagine sempre a colori sotto */
.company-card-new__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transform: scale(1);
  transition: transform 0.55s ease, filter 0.55s ease;
}

/* filtro scuro sopra l'immagine */
.company-card-new__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.42) 100%
    );
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

/* logo sopra il filtro */
.company-card-new__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* testo hover sopra tutto */
.company-card-new__hover {
  position: absolute;
  z-index: 4;
}

/* quando passi sopra: togli filtro */
.company-card-new:hover .company-card-new__media::before {
  opacity: 0;
}

/* quando passi sopra: togli logo */
.company-card-new:hover .company-card-new__overlay {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

/* piccolo zoom elegante dell'immagine */
.company-card-new:hover .company-card-new__img {
  transform: scale(1.04);
}
/* ==============================
   EMOTIONAL - VILLA BACKGROUND
   ============================== */

.emotional-villa {
  position: relative;
  overflow: hidden;
  background: #073f4c;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.emotional-villa__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: villaBgFade 10s infinite;
  z-index: 1;
}

.emotional-villa__bg--one {
  background-image: url("img/villa/sfondo1.jpg");
  opacity: 1;
  animation-delay: 0s;
}

.emotional-villa__bg--two {
  background-image: url("img/villa/sfondo2.jpg");
  animation-delay: 5s;
}

.emotional-villa .container {
  position: relative;
  z-index: 2;
}

.emotional-villa .emotional-content {
  position: relative;
  z-index: 3;
}

@keyframes villaBgFade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  55% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
/* HERO VIDEO SENZA FILTRI */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* disattiva eventuale vecchio slider */
.hero-slider {
  display: none !important;
}

/* disattiva eventuale overlay/filtro */
.hero-overlay {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

/* testo sopra il video */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.62) 40%,
      rgba(0, 0, 0, 0.40) 100%
    );
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 780px;
}

.hero-content .label,
.hero-content h1,
.hero-content p {
  color: #fff;
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}