/* ==========================================================================
   PSP LEGAL TEAM — main.css
   2026 minimalist luxury — ispirato a Freshfields / Chiomenti
   ========================================================================== */

:root {
  --navy: #0E1F5B;
  --navy-deep: #091545;
  --white: #FFFFFF;
  --off-white: #F4F5F9;
  --cream: #EEF0F7;
  --mid: #6B7280;
  --gold: #B8965A;

  --footer-bg: #060F35;

  --serif: 'Times New Roman', Times, serif;
  --sans: 'Lato', sans-serif;

  --container-w: 1240px;
  --radius: 2px;
  --shadow-sm: 0 2px 16px rgba(9, 21, 69, 0.06);
  --shadow-md: 0 20px 60px rgba(9, 21, 69, 0.14);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy-deep);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(0,0,0,0); }

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid #B8965A;
  outline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  color: var(--navy-deep);
}

p { margin: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-inner {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.65); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.18;
  margin-bottom: 0;
  color: var(--navy-deep);
}

.section-title--light { color: var(--white); }

.section-head {
  max-width: 680px;
  margin: 0 0 72px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 38px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--light {
  background: var(--white);
  color: var(--navy-deep);
}
.btn--light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--primary {
  background: var(--navy-deep);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.link-arrow span { transition: transform var(--transition); display: inline-block; }

@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover span { transform: translateX(6px); }
}

.link-arrow--light { color: var(--white); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #FFFFFF;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  background: #0E1F5B;
  border-bottom-color: transparent;
  padding: 16px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2.5rem;
}

.navbar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  line-height: 1.1;
}

.navbar__logo {
  height: 90px;
  width: auto;
  transition: height var(--transition);
}

.navbar.is-scrolled .navbar__logo { height: 65px; }

.navbar__brand-text {
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: rgba(14, 31, 91, 0.65);
  transition: color var(--transition);
}

.navbar.is-scrolled .navbar__brand-text { color: rgba(255, 255, 255, 0.75); }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  margin: 0 auto;
}

.navbar__nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  color: #0E1F5B;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .navbar__nav a:hover { color: #B8965A; }
}

.navbar.is-scrolled .navbar__nav a {
  color: #FFFFFF;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .navbar.is-scrolled .navbar__nav a:hover { color: #B8965A; }
}

.navbar__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.navbar.is-scrolled .navbar__cta {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .navbar__cta:hover { background: rgba(14, 31, 69, 0.08); }
  .navbar.is-scrolled .navbar__cta:hover { background: rgba(255, 255, 255, 0.15); }
}

@media (min-width: 1024px) {
  .navbar__cta { display: none; }
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.navbar__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--navy-deep);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.navbar.is-scrolled .navbar__toggle span { background: var(--white); }

.navbar__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.navbar__close {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transform-origin: center;
}

.navbar__close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar__close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown__trigger {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: #0E1F5B;
  padding: 4px 0;
  cursor: default;
}

.navbar.is-scrolled .nav-dropdown__trigger {
  color: #FFFFFF;
  font-weight: 500;
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border-top: 2px solid #0E1F5B;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  list-style: none;
  padding: 0.5rem 0;
}

.nav-dropdown__menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  color: #0E1F5B !important;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown__menu li a:hover {
    background: #F4F5F9;
    color: #0E1F5B !important;
  }

  .nav-dropdown:hover .nav-dropdown__menu {
    display: block;
  }
}

/* Quando navbar è scrolled (navy) il dropdown rimane bianco */
.navbar.is-scrolled .nav-dropdown__menu {
  background: #FFFFFF;
}

html,
body,
.navbar__nav,
.navbar__nav.is-open,
.navbar__nav li,
.nav-dropdown,
.nav-dropdown__menu,
.nav-dropdown__menu li,
.navbar__nav a,
.nav-dropdown__menu li a,
.nav-dropdown__trigger,
.navbar__toggle,
.navbar__close {
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

.navbar__nav,
.navbar__nav.is-open,
.navbar__nav li,
.nav-dropdown,
.nav-dropdown__menu,
.nav-dropdown__menu li,
.navbar__nav a,
.nav-dropdown__menu li a,
.nav-dropdown__trigger,
.navbar__toggle,
.navbar__close {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

.navbar__nav a,
.nav-dropdown__menu li a,
.nav-dropdown__trigger {
  touch-action: manipulation;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.navbar__nav a:focus,
.navbar__nav a:active,
.nav-dropdown__menu li a:focus,
.nav-dropdown__menu li a:active,
.nav-dropdown__trigger:focus,
.nav-dropdown__trigger:active {
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar__nav a:focus-visible,
.nav-dropdown__menu li a:focus-visible,
.nav-dropdown__trigger:focus-visible {
  outline: 2px solid #B8965A;
  outline-offset: 3px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  left: 0;
  right: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 0.1s linear;
}

/* Villa — centra sul giardino e facciata */
.hero__slide:nth-child(1) { background-position: center 30%; }

/* Sala riunioni — centra sul tavolo */
.hero__slide:nth-child(2) { background-position: center center; }

/* Libro — centra sul libro */
.hero__slide:nth-child(3) { background-position: center center; }

.hero__slide.active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(9, 21, 69, 0.85) 0%, rgba(9, 21, 69, 0.20) 45%, transparent 100%);
}

.hero__dots {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.hero__dot.active { background: #FFFFFF; }

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 5rem 6rem;
}

.hero__content .eyebrow--light {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to   {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero__badge-logo {
  height: 110px;
  width: auto;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideInFromTop 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__eyebrow {
  opacity: 0;
  animation: fadeUpEntrance 0.9s 0.5s ease forwards;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeUpEntrance 0.9s 0.7s ease forwards;
}

.hero__sub {
  font-family: var(--sans);
  font-style: italic;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.4;
  margin-bottom: 2.5rem;
  white-space: nowrap;
  font-size: clamp(0.8rem, 2vw, 1.5rem);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
  display: block;
  width: auto;
  opacity: 0;
  animation: fadeUpEntrance 0.9s 0.9s ease forwards;
}

.hero__sub em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUpEntrance 0.9s 1.1s ease forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #0E1F5B;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.btn-ghost:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__scroll-track {
  position: relative;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.hero__scroll-dot {
  position: absolute;
  left: 0;
  top: -30%;
  width: 1px;
  height: 30%;
  background: var(--white);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -30%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

.hero__scroll-text {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   CHI SIAMO SLIDER
   ========================================================================== */
.chi-siamo-slider {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.cs-slider {
  position: absolute;
  inset: 0;
}

.cs-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.cs-slide.active { opacity: 1; }

.cs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 21, 69, 0.85) 0%,
    rgba(9, 21, 69, 0.20) 50%,
    rgba(9, 21, 69, 0.10) 100%
  );
  z-index: 1;
}

.cs-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 5rem 5rem;
  z-index: 2;
}

.cs-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUpEntrance 0.9s 0.5s ease forwards;
}

.cs-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeUpEntrance 0.9s 0.7s ease forwards;
}

.cs-sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  opacity: 0;
  animation: fadeUpEntrance 0.9s 0.9s ease forwards;
}

.cs-dots {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.cs-dot.active { background: #FFFFFF; }

@media (max-width: 768px) {
  .chi-siamo-slider { height: 60vw; min-height: 280px; }
  .cs-content { padding: 0 1.5rem 2.5rem; }
  .cs-title { font-size: 2rem; }
  .cs-sub { white-space: normal; font-size: 1rem; }
}

/* ==========================================================================
   CHI SIAMO
   ========================================================================== */
.about {
  padding: 150px 0;
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: center;
}

.about__lead {
  font-size: 1.08rem;
  color: var(--mid);
  margin-top: 26px;
  line-height: 1.9;
  font-weight: 400;
}

.about__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 380px;
  overflow: hidden;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 14s ease-in-out infinite;
}

@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-8px, -4px); }
  100% { transform: scale(1) translate(0, 0); }
}

.about__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 40px;
  background: linear-gradient(to top, rgba(9, 21, 69, 0.5) 0%, rgba(9, 21, 69, 0) 100%);
}

.about__caption span {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ==========================================================================
   MATERIE TRATTATE — vertical list
   ========================================================================== */
.practice {
  padding: 150px 0;
  background: var(--off-white);
}

.practice__list {
  border-top: 1px solid rgba(14, 31, 91, 0.12);
}

.practice-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr;
  align-items: center;
  gap: 40px;
  padding: 44px 28px;
  border-bottom: 1px solid rgba(14, 31, 91, 0.12);
  transition: background var(--transition);
}

.practice-row:hover { background: rgba(14, 31, 91, 0.035); }

.practice-row__num {
  font-family: var(--sans);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.15;
  transition: color var(--transition), opacity var(--transition);
}

.practice-row:hover .practice-row__num { color: var(--gold); opacity: 1; }

.practice-row__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.practice-row__text {
  color: var(--mid);
  font-size: 0.98rem;
  line-height: 1.85;
}

/* ==========================================================================
   LO STUDIO
   ========================================================================== */
.lo-studio {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.lo-studio__slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.lo-studio__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  animation: kenburns 16s ease-in-out infinite;
}
.lo-studio__slide.active { opacity: 1; }

.lo-studio__overlay {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  opacity: 0.5;
}

.lo-studio__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
}

.lo-studio__eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.lo-studio__title {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--white);
  font-size: 3rem;
  line-height: 1.25;
  max-width: 820px;
  margin: 0 auto;
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners {
  padding: 150px 0;
  background: var(--navy-deep);
}

.partners__list {
  display: flex;
  flex-direction: column;
}

.partner-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 70px;
  padding: 70px 0;
  border-bottom: 1px solid rgba(184, 150, 90, 0.35);
}

.partner-row:last-child { border-bottom: none; padding-bottom: 0; }
.partner-row:first-child { padding-top: 0; }

.partner-row--reverse { grid-template-columns: 1fr 40%; }
.partner-row--reverse .partner-row__media { order: 2; }
.partner-row--reverse .partner-row__body { order: 1; }

.partner-row__media {
  width: 100%;
  height: 520px;
  transition: transform 0.6s ease;
}

.partner-row__media img {
  transition: transform 0.6s ease;
}

.partner-row__media,
.partner-card__photo,
[class*="partner"] [class*="media"],
[class*="partner"] [class*="photo"] {
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  display: block;
  background: transparent;
}

[class*="partner"] [class*="media"] img,
[class*="partner"] [class*="photo"] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  margin: 0;
  padding: 0;
  border: none;
  vertical-align: top;
  line-height: 0;
}

.partner-row__media:hover img {
  transform: scale(1.04);
}

.partner-row__body { display: flex; flex-direction: column; align-self: center; }

.partner-row__name {
  color: var(--white);
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.partner-row__role {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.partner-row__meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  margin-bottom: 26px;
}

.partner-row__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 30px;
  max-width: 640px;
}

.partner-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tag {
  padding: 8px 18px;
  border: 1px solid rgba(184, 150, 90, 0.5);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Accordion */
.accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 30px;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accordion__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform var(--transition);
}

.accordion__icon::before {
  left: 0; top: 50%;
  width: 100%; height: 1px;
  transform: translateY(-50%);
}

.accordion__icon::after {
  top: 0; left: 50%;
  width: 1px; height: 100%;
  transform: translateX(-50%);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translateX(-50%) scaleY(0); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.accordion__list { padding-bottom: 22px; }

.accordion__list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.accordion__item-year {
  color: var(--gold);
  flex-shrink: 0;
}

.link-gold {
  color: var(--gold);
  border-bottom: 1px solid rgba(184, 150, 90, 0.4);
  transition: border-color var(--transition);
}

.link-gold:hover { border-color: var(--gold); }

.partner-row__publications-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.partner-row__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.partner-row__contacts a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.partner-row__contacts a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.partners-extra {
  background: var(--footer-bg);
  padding: 5rem 32px;
  display: flex;
  justify-content: center;
  margin-top: 70px;
}

.partners-extra__inner {
  max-width: 700px;
  text-align: center;
}

.partners-extra__title {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--white);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin-bottom: 20px;
}

.partners-extra__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.9;
}

.partners-extra__logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
}

.partners-extra__logo-card {
  width: 220px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.partners-extra__logo-card span {
  font-family: var(--sans);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.energie-loghi-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.energie-loghi-wrap img {
  width: 220px;
  height: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .energie-loghi-wrap {
    gap: 1.5rem;
  }
  .energie-loghi-wrap img {
    width: 160px;
  }
}

/* ==========================================================================
   CODICE ETICO
   ========================================================================== */
.ethics {
  padding: 150px 0;
  background: var(--off-white);
}

.ethics__intro {
  font-size: 1.05rem;
  color: var(--mid);
  margin-top: 24px;
  line-height: 1.85;
}

.ethics__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px 70px;
}

.ethics-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
}

.ethics-item__num {
  font-family: var(--sans);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.ethics-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy-deep);
}

.ethics-item__text {
  color: var(--mid);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ==========================================================================
   NEWS
   ========================================================================== */
.news {
  padding: 150px 0;
  background: var(--white);
}

.news__list {
  border-top: 1px solid rgba(14, 31, 91, 0.12);
}

.news-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 40px 28px;
  border-bottom: 1px solid rgba(14, 31, 91, 0.12);
  border-top: 2px solid transparent;
  margin-top: -2px;
  transition: border-color var(--transition), background var(--transition);
}

.news-row:hover {
  border-top-color: var(--navy);
  background: rgba(14, 31, 91, 0.025);
}

.news-row__date {
  font-family: var(--sans);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.news-row__date small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 6px;
}

.news-row__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.news-row__title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy-deep);
  max-width: 620px;
}

.news-row__link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  justify-self: end;
}

.news-row__link span { transition: transform var(--transition); display: inline-block; }
.news-row:hover .news-row__link span { transform: translateX(6px); }

/* ==========================================================================
   CTA FINALE
   ========================================================================== */
.cta-final {
  padding: 160px 0;
  background: #091545;
  text-align: center;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #FFFFFF;
  margin-bottom: 20px;
}

.cta-final__intro {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
  max-width: 700px;
  margin: 0 0 48px;
}

.cta-final__contacts {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 38px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-deep);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cta-form {
  max-width: 500px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-form__row {
  width: 100%;
}

.cta-form__row--split {
  display: flex;
  gap: 1rem;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: #B8965A;
  background: rgba(255, 255, 255, 0.12);
}

.cta-form textarea {
  resize: vertical;
  min-height: 100px;
}

.cta-form .btn-white {
  align-self: center;
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
}

@media (max-width: 768px) {
  .cta-form__row--split {
    flex-direction: column;
  }
}

.cta-final__contacts a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

.cta-final__contacts a:hover { color: var(--white); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
}

.footer__psp {
  padding: 110px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__psp-acronym {
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.footer__psp-logo {
  height: 76px;
  width: auto;
  margin: 0 auto;
}

.footer__psp-tagline {
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--gold);
  margin-top: 16px;
}

.footer__psp-sub {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 18px;
  line-height: 1.7;
}

.footer__main { padding: 80px 0 0; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 70px;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--gold); }

.footer__logo-row {
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
}

.footer__logo {
  height: 110px;
  width: auto;
  opacity: 0.9;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a:hover { color: var(--gold); }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
  padding: 180px 0;
  background: var(--navy-deep);
  text-align: center;
}

.error-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404__code {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 9rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.error-404__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   PSP MOTTO (fine pagina, prima del footer)
   ========================================================================== */
.psp-motto {
  padding: 100px 0;
  text-align: center;
  background: var(--off-white);
}

.psp-motto__logo {
  height: 68px;
  width: auto;
  margin: 0 auto 24px;
}

.psp-motto__tagline {
  font-family: 'Times New Roman', Times, serif;
  font-style: normal;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--navy-deep);
}

.psp-motto__sub {
  font-family: 'Times New Roman', Times, serif;
  font-style: normal;
  font-size: 0.98rem;
  color: var(--mid);
  margin-top: 14px;
  line-height: 1.7;
}

.psp-motto img,
.motto-section img,
[class*="motto"] img {
  height: 120px !important;
  width: auto !important;
  margin-bottom: 1.5rem !important;
}

[class*="motto"] h2,
[class*="motto"] .motto-title {
  font-size: 2.5rem !important;
}

[class*="motto"] p {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--navy-deep);
  box-shadow: 0 -8px 30px rgba(6, 15, 53, 0.25);
  padding: 20px 0;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.cookie-banner__manage {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.cookie-banner__manage:hover {
  color: var(--white);
  border-color: var(--gold);
}

.cookie-banner__accept {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 13px 30px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cookie-banner__accept:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   LEGAL PAGES (Privacy / Cookie Policy)
   ========================================================================== */
.page-hero {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(9, 21, 69, 0.6), rgba(9, 21, 69, 0.6)), var(--navy-deep);
  padding-top: 60px;
}

.page-hero__title {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 560px;
}

.breadcrumb {
  padding: 26px 0;
  background: var(--off-white);
  border-bottom: 1px solid rgba(14, 31, 91, 0.1);
}

.breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--mid);
}

.breadcrumb__inner a { color: var(--navy); transition: color var(--transition); }
.breadcrumb__inner a:hover { color: var(--gold); }
.breadcrumb__inner span { color: rgba(14, 31, 91, 0.35); }

.legal-page {
  background: var(--off-white);
  padding: 90px 0 140px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-content__updated {
  color: var(--mid);
  font-size: 0.88rem;
  margin-bottom: 50px;
}

.legal-content h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 1.6rem;
  margin-top: 56px;
  margin-bottom: 20px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
  font-family: var(--sans);
  color: var(--mid);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 22px;
  list-style: disc;
}

.legal-content li {
  font-family: var(--sans);
  color: var(--mid);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 10px;
}

.legal-content strong { color: var(--navy-deep); }

.legal-content a { color: var(--gold); border-bottom: 1px solid rgba(184, 150, 90, 0.4); transition: border-color var(--transition); }
.legal-content a:hover { border-color: var(--gold); }

/* ==========================================================================
   HOMEPAGE PREVIEWS
   ========================================================================== */
.about-preview {
  padding: 7rem 5rem;
  background: #FFFFFF;
}

.about-preview__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-preview__text .eyebrow {
  color: var(--navy);
}

.about-preview__text .section-title {
  font-size: 2.8rem;
}

.about-preview__text-body {
  font-size: 1rem;
  color: #6B7280;
  margin-top: 26px;
  line-height: 1.85;
  font-weight: 400;
}

.about-preview__text-body + .about-preview__text-body { margin-top: 18px; }

.about-preview__text > .link-arrow {
  margin-top: 36px;
  color: var(--navy);
  font-weight: 600;
}

.practice-preview {
  padding: 150px 0;
  background: #F4F5F9;
}

.practice-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.practice-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2.5rem;
  background: #FFFFFF;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.practice-card:hover {
  border-bottom-color: #0E1F5B;
  box-shadow: var(--shadow-sm);
}

.practice-card__num {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.1;
}

.practice-card__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.practice-card__text {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
}

.practice-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
}

.practice-card__link span { transition: transform var(--transition); display: inline-block; }
.practice-card:hover .practice-card__link span { transform: translateX(6px); }

.partners-preview {
  padding: 150px 0;
  background: #0E1F5B;
}

.partners-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.partner-card-3 {
  background: #0E1F5B;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.partner-card-3:hover {
  transform: translateY(-4px);
}

.partner-card-3__photo {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.partner-card-3__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.partner-card-3:hover .partner-card-3__photo img {
  transform: scale(1.04);
}

.partner-card-3--logo .partner-card-3__logo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0E1F5B;
  padding: 2rem;
}

.partner-card-3--logo .partner-card-3__logo-wrap img {
  width: 100%;
  height: auto;
  max-width: 200px;
}

.partner-card-3--logo .partner-card-3__logo-wrap--dual {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
}

.partner-card-3--logo .partner-card-3__logo-wrap--dual img {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  object-fit: contain;
  max-width: 100%;
}

.partner-card-3__info {
  padding: 1rem 1.25rem 1.5rem;
  background: #0E1F5B;
  text-align: center;
}

.partner-card-3__info h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.partner-card-3__info p {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B8965A;
  margin-bottom: 0.75rem;
}

.partner-card-3__info a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.partner-card-3__info a:hover {
  color: #B8965A;
}

@media (max-width: 768px) {
  .partners-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .partner-card-3__info h3 {
    font-size: 0.85rem;
  }
}

.partners-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.partner-card { display: block; }

.partner-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 24px;
  line-height: 0;
  font-size: 0;
  display: block;
  background: transparent;
}

.partner-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 21, 69, 0.55) 0%, rgba(9, 21, 69, 0) 45%);
}

.partner-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  margin: 0;
  padding: 0;
  border: none;
  vertical-align: top;
  line-height: 0;
  transition: transform 0.5s ease;
}

.partner-card:hover .partner-card__media img { transform: scale(1.04); }

.partner-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-card__media--placeholder span {
  font-family: var(--sans);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
}

.partner-card__media.partner-card__media--logos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--navy-deep);
  box-sizing: border-box;
}

.partner-card__media--logos::after {
  display: none;
}

.partner-card__media.partner-card__media--logos img {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.partner-card:hover .partner-card__media--logos img {
  transform: none;
}

.partner-card__name {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.partner-card__role {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.partner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
}

.partner-card__link span { transition: transform var(--transition); display: inline-block; }
.partner-card:hover .partner-card__link span { transform: translateX(6px); }

.partners-preview__more {
  text-align: center;
  margin-top: 60px;
}

.news-preview {
  padding: 150px 0;
  background: #FFFFFF;
}

.news-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ==========================================================================
   CHI SIAMO — dedicated page (Metodo / Statistiche)
   ========================================================================== */
.method {
  padding: 150px 0;
  background: var(--off-white);
}

.method__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.method-item__num {
  display: block;
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
}

.method-item__title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.method-item__text {
  color: var(--mid);
  font-size: 0.98rem;
  line-height: 1.85;
}

/* ==========================================================================
   MATERIE — dedicated page (alternating rows)
   ========================================================================== */
.materia-row { padding: 120px 0; }

.materia-row--white { background: var(--white); }
.materia-row--offwhite { background: var(--off-white); }

.materia-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 560px;
}

.materia-section.reverse {
  direction: rtl;
}

.materia-section.reverse > * {
  direction: ltr;
}

.materia-text {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.materia-image {
  overflow: hidden;
}

.materia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .materia-section,
  .materia-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    height: auto;
  }
  .materia-image {
    height: 250px;
  }
}

.materia-row__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.materia-row__num {
  display: block;
  font-family: var(--sans);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
}

.materia-row__title {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin-bottom: 24px;
}

.materia-row__body {
  color: var(--mid);
  font-size: 1.05rem;
  line-height: 1.9;
}

.materia-row__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.materia-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   NEWS — dedicated page grid
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.news-loading {
  text-align: center;
  color: var(--mid);
  font-size: 0.95rem;
  padding: 3rem 0;
  grid-column: 1 / -1;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
  background: var(--white);
  border: 1px solid rgba(14, 31, 91, 0.1);
  border-top: 1px solid #E8ECF8;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: #0E1F5B;
}

.news-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.news-card__date {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}

.news-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy-deep);
  margin-bottom: 24px;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
}

.news-card__link span { transition: transform var(--transition); display: inline-block; }
.news-card:hover .news-card__link span { transform: translateX(6px); }

/* ==========================================================================
   CONTATTI — dedicated page
   ========================================================================== */
.contact {
  padding: 150px 0;
  background: var(--white);
}

.contact__intro {
  max-width: 800px;
  margin: 0 auto 70px;
  text-align: center;
}

.contact__intro-text {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.9;
  margin-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-bottom: -4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 14px 18px;
  border: 1px solid rgba(14, 31, 91, 0.15);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-deep);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; }

.contact-info__title {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.contact-info__item {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--cream);
}

.contact-info__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info__item h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.contact-info__item p {
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.contact-info__item a { color: var(--mid); transition: color var(--transition); }
.contact-info__item a:hover { color: var(--gold); }

.contact-map {
  max-width: 1000px;
  margin: 90px auto 0;
}

.contact-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

/* ==========================================================================
   NEWS — extra card fields (senza link esterno)
   ========================================================================== */
.news-card__note {
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 16px;
}

.news-card__author {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--mid);
  border-top: 1px solid var(--cream);
}

/* ==========================================================================
   EVENTI CREATIVI
   ========================================================================== */
.creative-intro {
  padding: 120px 0;
  background: var(--white);
}

.creative-intro__inner {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.creative-intro__logo {
  font-family: var(--sans);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--navy-deep);
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}

.creative-intro__text {
  color: var(--mid);
  font-size: 1.05rem;
  line-height: 1.9;
}

.timeline-item {
  padding: 60px 0;
  border-left: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.timeline-item--white { background: var(--white); }
.timeline-item--offwhite { background: var(--off-white); }

.timeline-item:hover { border-left-color: var(--gold); }

.timeline-item__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 50px;
  position: relative;
}

.timeline-item__grid::before {
  content: '';
  position: absolute;
  left: 200px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  margin-left: 25px;
  background: rgba(14, 31, 91, 0.15);
}

.timeline-item__year {
  font-family: var(--sans);
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.15;
  line-height: 1;
}

.timeline-item__title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.timeline-item__date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.timeline-item__text {
  color: var(--mid);
  font-size: 0.96rem;
  line-height: 1.85;
  font-style: italic;
}

/* ==========================================================================
   OPERE EDITORIALI
   ========================================================================== */
.editorial-intro {
  padding: 3rem 0;
  background: var(--white);
}

.editorial-intro__inner {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.editorial-intro__text {
  color: var(--mid);
  font-size: 1.05rem;
  line-height: 1.9;
}

.editorial-intro__title {
  margin-bottom: 20px;
}

.editorial-intro__portal-link {
  margin-bottom: 24px;
  font-size: 1rem;
}

.editorial-intro__cta {
  margin-top: 32px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 50px; }
  .about__media { order: -1; }
  .practice-row { grid-template-columns: 70px 1fr; }
  .practice-row__text { grid-column: 1 / -1; }
  .partner-row { grid-template-columns: 1fr; gap: 36px; }
  .partner-row__media { max-width: 340px; }
  .news-row { grid-template-columns: 70px 1fr; }
  .news-row__link { grid-column: 1 / -1; justify-self: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .about-preview { padding: 6rem 2rem; }
  .practice-preview__grid { grid-template-columns: 1fr 1fr; }
  .partners-preview__grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; margin: 0 auto; }
  .partners__grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; margin: 0 auto; }
  .news-preview__grid { grid-template-columns: 1fr; }
  .method__grid { grid-template-columns: 1fr; gap: 40px; }
  .materia-row__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .partner-row--reverse { grid-template-columns: 1fr; }

  .timeline-item__grid { grid-template-columns: 120px 1fr; gap: 30px; }
  .timeline-item__grid::before { left: 120px; margin-left: 15px; }
  .timeline-item__year { font-size: 2.6rem; }

  .hero__sub { font-size: 1.5vw; }
}

@media (max-width: 768px) {
  .navbar__inner { padding: 0 1.25rem; }

  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__cta { display: none; }

  .navbar__nav.is-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: #0E1F5B;
    padding: 1.5rem 2rem;
    gap: 1.3rem;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar__nav.is-open a {
    color: #FFFFFF !important;
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .navbar.is-scrolled .navbar__nav.is-open a {
    color: #FFFFFF !important;
  }

  .navbar__nav.is-open .nav-dropdown__trigger {
    color: #FFFFFF !important;
    font-size: 1.1rem;
    cursor: pointer;
  }

  .navbar__nav.is-open .navbar__close {
    display: block;
  }

  .navbar__nav.is-open,
  .navbar__nav.is-open li,
  .nav-dropdown,
  .nav-dropdown__menu {
    width: 100%;
    box-sizing: border-box;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown__trigger {
    text-align: center;
    width: auto;
    display: inline-flex;
    justify-content: center;
  }

  .nav-dropdown__menu {
    position: static !important;
    display: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-width: auto !important;
    padding: 0.5rem 0 0 !important;
    width: 100%;
    text-align: center;
  }

  .nav-dropdown__menu.is-open {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-dropdown__menu li a {
    color: #FFFFFF !important;
    font-size: 0.85rem !important;
    padding: 0.3rem 0 !important;
    background: transparent !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }

  .nav-dropdown__menu li a:hover,
  .nav-dropdown__menu li a:focus,
  .nav-dropdown__menu li a:active {
    background: transparent !important;
  }

  /* Navbar mobile - altezza fissa */
  .navbar {
    height: 60px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Hero inizia ESATTAMENTE dove finisce la navbar */
  .hero {
    margin-top: 60px !important;
    height: calc(100vw * 0.72) !important;
    min-height: 280px !important;
    max-height: 460px !important;
  }

  /* Rimuovi qualsiasi spazio prima della hero */
  .hero-wrapper,
  section.hero,
  #hero {
    margin-top: 60px !important;
    padding-top: 0 !important;
  }

  /* Togli qualsiasi padding-top che spinge la foto giù */
  body {
    padding-top: 0 !important;
  }

  /* La navbar è fixed quindi non serve margine */
  main, #top {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .hero__slider {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
  }

  .hero__slide {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background-size: cover !important;
    background-attachment: scroll !important;
  }

  .hero__slide:nth-child(1) {
    background-position: center 40% !important;
  }

  .hero__slide:nth-child(2) {
    background-position: center center !important;
  }

  .hero__slide:nth-child(3) {
    background-position: center center !important;
  }

  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(9, 21, 69, 0.90) 0%,
      rgba(9, 21, 69, 0.15) 40%,
      transparent 100%
    ) !important;
  }

  /* Il testo va in fondo alla foto */
  .hero__content { padding: 0 1rem 1.5rem !important; }
  .hero__badge-logo { height: 70px; margin-bottom: 1rem; }
  .hero__title {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.35rem !important;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.9) !important;
  }
  .hero__sub {
    white-space: normal;
    font-size: 1rem;
  }
  .hero__actions {
    flex-direction: row !important;
    gap: 0.5rem !important;
  }
  .hero__actions a {
    width: auto;
    text-align: left;
    padding: 0.5rem 1rem !important;
    font-size: 0.65rem !important;
  }
  .hero__dots { bottom: 0.75rem !important; right: 1rem !important; }
  .hero__scroll { display: none; }

  .navbar { padding: 0.8rem 1.5rem; }
  .navbar__logo { height: 55px; }
  .navbar__brand-text { display: none; }

  .about__media { height: 300px; order: -1; }

  .about, .practice, .partners, .ethics, .news { padding: 90px 0; }
  .cta-final { padding: 110px 0; }

  .partner-row {
    display: grid !important;
    grid-template-columns: 120px 1fr !important;
    gap: 1rem !important;
    align-items: start !important;
  }
  .partner-row--reverse .partner-row__media,
  .partner-row--reverse .partner-row__body {
    order: 0 !important;
  }
  .partner-row__media {
    width: 120px !important;
    height: 160px !important;
    max-width: none !important;
    flex-shrink: 0 !important;
  }
  .partner-row__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
  }
  .partner-row__body {
    padding: 0 !important;
  }
  .partner-row__name {
    font-size: 1rem !important;
  }
  .partner-row__role {
    font-size: 0.65rem !important;
  }
  .partner-row__text {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }

  .practice-preview, .partners-preview, .news-preview,
  .method, .materia-row, .contact { padding: 90px 0; }

  .about-preview { padding: 4rem 1.5rem; }

  .practice-preview__grid { grid-template-columns: 1fr; }
  .news-preview__grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .materia-row { padding: 70px 0; }
  .contact-map iframe { height: 320px; }

  .creative-intro, .editorial-intro { padding: 60px 0; }
  .timeline-item { padding: 40px 0; }
  .timeline-item__grid { grid-template-columns: 1fr; gap: 16px; }
  .timeline-item__grid::before { display: none; }
  .timeline-item__year { font-size: 2.2rem; }

  .ethics__list { grid-template-columns: 1fr; gap: 34px; }

  .practice-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 20px;
  }
  .practice-row__num { font-size: 2rem; }

  .news-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 20px;
  }
  .news-row__link { justify-self: start; }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__psp { padding: 70px 0; }
  .psp-motto { padding: 60px 0; }
  .partners-extra__logo-card { width: 100%; max-width: 280px; }

  .lo-studio { height: 360px; }
  .lo-studio__title { font-size: 2rem; }

  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; justify-content: space-between; }

  .page-hero { height: 220px; }
  .legal-page { padding: 60px 0 90px; }
}
