/* =========================================
   STUDIO DIERICO
   Identità visiva: blu pavone, oro, avorio
========================================= */

:root {
  --ivory: #fbf7ef;
  --ivory-deep: #f0e8dc;
  --surface: #fffdf9;
  --surface-blue: #e6eeee;

  --peacock: #0d5364;
  --peacock-dark: #073b49;
  --peacock-deep: #052c37;
  --peacock-soft: #557e86;

  --gold: #c99a3d;
  --gold-dark: #9b722a;
  --gold-soft: #ead5a4;

  --text: #27363a;
  --text-soft: #647175;
  --white: #ffffff;

  --border: rgba(13, 83, 100, 0.17);
  --border-gold: rgba(201, 154, 61, 0.48);

  --shadow-small: 0 12px 30px rgba(5, 44, 55, 0.08);
  --shadow: 0 24px 62px rgba(5, 44, 55, 0.14);

  --radius-small: 12px;
  --radius-medium: 24px;
  --radius-large: 38px;

  --container: 1220px;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--text);
  font-family:
    "Avenir Next",
    Avenir,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.72;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3 {
  color: var(--peacock-dark);
  font-family:
    Baskerville,
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  font-weight: 500;
  line-height: 1.13;
}

p {
  color: var(--text-soft);
}

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

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 154, 61, 0.25);
  background: rgba(251, 247, 239, 0.96);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: block;
  width: 235px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  height: 78px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  list-style: none;
}

.nav-menu a {
  position: relative;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-menu a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-menu a[aria-current="page"] {
  color: var(--gold-dark);
}

.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border-radius: 6px;
  background: var(--peacock);
  color: var(--white) !important;
  box-shadow: 0 10px 25px rgba(13, 83, 100, 0.16);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--peacock-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--peacock-dark);
  transition: 0.25s ease;
}

/* HERO */

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(circle at 85% 18%, rgba(13, 83, 100, 0.08), transparent 32%),
    linear-gradient(115deg, #fcf8f1 0%, #fbf7ef 54%, #f4ede3 100%);
}

.hero::before {
  position: absolute;
  top: 53px;
  left: 6%;
  width: 94px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.hero-mark {
  position: absolute;
  bottom: -150px;
  left: -35px;
  color: rgba(201, 154, 61, 0.06);
  font-family: Georgia, serif;
  font-size: 430px;
  line-height: 1;
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    minmax(0, 0.88fr)
    minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 5vw, 78px);
}

.hero-content {
  max-width: 650px;
}

.eyebrow {
  margin-bottom: 19px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 13px;
  font-size: clamp(54px, 6vw, 88px);
  letter-spacing: -2.5px;
}

.hero-role {
  max-width: 610px;
  margin-bottom: 27px;
  color: var(--gold-dark);
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.32;
}

.hero-description {
  max-width: 650px;
  color: var(--text);
  font-size: 16px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* BUTTONS */

.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--peacock);
  color: var(--white);
  box-shadow: 0 12px 27px rgba(13, 83, 100, 0.18);
}

.button-primary:hover {
  background: var(--peacock-dark);
}

.button-secondary {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold-dark);
}

.button-secondary:hover {
  background: var(--gold);
  color: var(--peacock-deep);
}

.button-outline {
  border-color: var(--border-gold);
  color: var(--peacock-dark);
}

.button-outline:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* HERO PHOTO */

.hero-photo-wrapper {
  position: relative;
  justify-self: end;
  width: 100%;
  padding: 13px 0 13px 13px;
}

.hero-photo-wrapper::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 47%;
  height: 45%;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-radius: 42px 0 0;
  content: "";
}

.hero-photo-wrapper::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 43%;
  height: 40%;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  content: "";
}

.hero-photo-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 42px 0 0 0;
  background: var(--surface-blue);
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  object-position: center center;
}

.photo-signature {
  position: absolute;
  z-index: 4;
  right: 30px;
  bottom: -9px;
  min-width: 265px;
  padding: 17px 21px;
  border: 1px solid var(--border-gold);
  border-left: 5px solid var(--gold);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow-small);
}

.photo-signature span,
.photo-signature small {
  display: block;
}

.photo-signature span {
  color: var(--peacock-dark);
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: 21px;
}

.photo-signature small {
  color: var(--text-soft);
  font-size: 12px;
}

/* HIGHLIGHTS */

.highlights {
  position: relative;
  overflow: hidden;
  background: var(--peacock-dark);
  color: var(--white);
}

.highlights::before {
  position: absolute;
  top: 0;
  right: 8%;
  width: 185px;
  height: 5px;
  background: var(--gold);
  content: "";
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.highlight-item {
  min-height: 235px;
  padding: 43px 31px;
  border-right: 1px solid rgba(234, 213, 164, 0.18);
  transition: background 0.25s ease;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.highlight-item:last-child {
  border-right: 0;
}

.highlight-number {
  display: inline-flex;
  width: 41px;
  height: 41px;
  align-items: center;
  justify-content: center;
  margin-bottom: 27px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
}

.highlight-item h2 {
  margin-bottom: 11px;
  color: var(--white);
  font-size: 27px;
}

.highlight-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* GENERIC SECTIONS */

.section {
  padding: 112px 0;
}

.two-columns {
  display: grid;
  grid-template-columns:
    minmax(250px, 0.72fr)
    minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 120px);
}

.section-heading h2,
.section-title h2,
.contact-intro h2,
.about-content h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4.3vw, 58px);
}

.section-heading::after {
  display: block;
  width: 78px;
  height: 2px;
  margin-top: 29px;
  background: var(--gold);
  content: "";
}

.section-title {
  max-width: 780px;
  margin-bottom: 58px;
}

.section-title > p:last-child {
  max-width: 670px;
  font-size: 17px;
}

/* ABOUT */

.about-section {
  position: relative;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns:
    minmax(290px, 0.75fr)
    minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(55px, 8vw, 120px);
}

.about-portrait {
  position: relative;
  width: min(100%, 465px);
  justify-self: center;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 9px solid var(--ivory);
  border-radius: 48% 48% 20% 20% / 37% 37% 16% 16%;
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: center 24%;
}

.about-portrait::before {
  position: absolute;
  top: -22px;
  right: -25px;
  width: 67%;
  height: 68%;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-radius: 0 52px 0 0;
  content: "";
}

.portrait-decoration {
  position: absolute;
  z-index: 1;
  bottom: -72px;
  left: -58px;
  color: rgba(13, 83, 100, 0.08);
  font-family: Georgia, serif;
  font-size: 210px;
  line-height: 1;
}

.about-content {
  max-width: 760px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 17px;
}

.about-content .lead {
  color: var(--peacock-dark);
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: 25px;
  line-height: 1.47;
}

/* QUOTE */

.quote {
  position: relative;
  margin-top: 43px;
  padding: 35px 38px 31px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-medium);
  background: var(--ivory);
  color: var(--peacock-dark);
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: 21px;
  font-style: italic;
  box-shadow: var(--shadow-small);
}

.quote::before {
  position: absolute;
  top: -25px;
  left: 26px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1;
  content: "“";
}

/* SERVICES */

.services-section {
  position: relative;
  background:
    linear-gradient(135deg, var(--surface-blue) 0%, #dae7e6 100%);
}

.services-section::before {
  position: absolute;
  top: 0;
  left: 8%;
  width: 135px;
  height: 4px;
  background: var(--gold);
  content: "";
}

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

.service-card {
  position: relative;
  min-height: 305px;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(13, 83, 100, 0.16);
  border-radius: var(--radius-medium);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-small);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card::before {
  position: absolute;
  top: 0;
  right: 29px;
  width: 43px;
  height: 8px;
  border-radius: 0 0 7px 7px;
  background: var(--gold);
  content: "";
}

.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-index {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  margin-bottom: 47px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 28px;
}

.service-card p {
  font-size: 15px;
}

/* PROCESS */

.process-section {
  background: var(--surface);
}

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

.process-step {
  display: flex;
  gap: 22px;
  padding: 34px 29px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-medium);
  background: var(--ivory);
}

.process-step > span {
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-family: Baskerville, Georgia, serif;
  font-size: 39px;
}

.process-step h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.process-step p {
  font-size: 15px;
}

/* CREDENTIALS */

.credentials-section {
  background: var(--ivory);
}

.credentials-list {
  border-top: 1px solid var(--border-gold);
}

.credential {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 25px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-gold);
}

.credential::before {
  position: absolute;
  top: 39px;
  left: 94px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.credential-year {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.credential h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.credential p {
  font-size: 15px;
}

/* CONTACT */

.contact-section {
  position: relative;
  background:
    linear-gradient(135deg, #f0e8db 0%, var(--ivory-deep) 100%);
}

.contact-section::after {
  position: absolute;
  right: 7%;
  bottom: 0;
  width: 185px;
  height: 5px;
  background: var(--peacock);
  content: "";
}

.contact-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(340px, 1fr);
  align-items: start;
  gap: clamp(50px, 8vw, 110px);
}

.contact-intro {
  position: relative;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 550px;
  font-size: 17px;
}

.contact-logo {
  width: min(100%, 330px);
  margin-top: 42px;
  opacity: 0.12;
  mix-blend-mode: multiply;
}

.contact-card {
  position: relative;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card::before {
  position: absolute;
  top: 0;
  left: 48px;
  width: 72px;
  height: 7px;
  border-radius: 0 0 8px 8px;
  background: var(--gold);
  content: "";
}

.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contact-label {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.contact-item p {
  color: var(--text);
}

.contact-item a {
  color: var(--peacock);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.contact-note {
  margin-top: 25px;
  font-size: 12px;
}

/* FOOTER */

.footer {
  padding: 46px 0;
  border-top: 4px solid var(--gold);
  background: var(--peacock-deep);
  color: var(--white);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.footer-brand {
  display: block;
  width: 245px;
}

.footer-brand img {
  width: 100%;
  height: 94px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
}

.footer-details {
  text-align: right;
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

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

/* FALLBACKS */

.hero-photo-wrapper.image-unavailable,
.about-portrait.image-unavailable {
  display: none;
}

.hero-grid:has(.hero-photo-wrapper.image-unavailable),
.about-grid:has(.about-portrait.image-unavailable) {
  grid-template-columns: 1fr;
}

/* TABLET */

@media (max-width: 1080px) {
  .brand {
    width: 205px;
  }

  .nav-menu {
    gap: 18px;
  }

  .nav-menu a {
    font-size: 13px;
  }

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

  .hero-content {
    max-width: 820px;
  }

  .hero-photo-wrapper {
    width: min(100%, 920px);
    justify-self: start;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 96px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    display: block;
    padding: 12px 10px;
    font-size: 14px;
  }

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

  .nav-cta {
    margin-top: 8px;
  }

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

  .highlight-item:nth-child(2) {
    border-right: 0;
  }

  .highlight-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(234, 213, 164, 0.18);
  }

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

  .about-portrait {
    justify-self: start;
  }

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

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

/* MOBILE */

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .navbar {
    min-height: 82px;
  }

  .brand {
    width: 172px;
  }

  .brand-logo {
    height: 65px;
  }

  .nav-menu {
    top: 82px;
    right: 14px;
    left: 14px;
  }

  .hero {
    min-height: auto;
    padding: 65px 0 80px;
  }

  .hero::before {
    top: 35px;
    left: 14px;
  }

  .hero h1 {
    font-size: 50px;
    letter-spacing: -1.5px;
  }

  .hero-role {
    font-size: 22px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-photo-wrapper {
    padding: 8px 0 8px 8px;
  }

  .hero-photo-frame {
    border-radius: 28px 0 0 0;
  }

  .hero-photo {
    aspect-ratio: 1 / 1.08;
    object-position: 65% center;
  }

  .photo-signature {
    position: relative;
    right: auto;
    bottom: auto;
    min-width: 0;
    margin-top: 14px;
  }

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

  .highlight-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(234, 213, 164, 0.18);
  }

  .highlight-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 82px 0;
  }

  .about-portrait {
    width: min(100%, 390px);
  }

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

  .service-card {
    min-height: auto;
  }

  .service-index {
    margin-bottom: 32px;
  }

  .credential {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .credential::before {
    display: none;
  }

  .contact-logo {
    width: 245px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-details {
    text-align: left;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* =========================================
   PDT — PARLAMI DI TE
========================================= */

.pdt-preview-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 30%, rgba(201, 154, 61, 0.12), transparent 30%),
    linear-gradient(135deg, var(--surface) 0%, var(--ivory-deep) 100%);
}

.pdt-preview-section::before {
  position: absolute;
  top: 0;
  right: 8%;
  width: 145px;
  height: 4px;
  background: var(--gold);
  content: "";
}

.pdt-preview-grid,
.pdt-role-grid {
  display: grid;
  grid-template-columns:
    minmax(250px, 0.72fr)
    minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(50px, 8vw, 115px);
}

.pdt-preview-mark,
.pdt-page-emblem,
.pdt-role-mark {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-large);
  background: var(--peacock-dark);
  box-shadow: var(--shadow);
}

.pdt-preview-mark::before,
.pdt-page-emblem::before,
.pdt-role-mark::before {
  position: absolute;
  top: -95px;
  right: -70px;
  width: 245px;
  height: 245px;
  border: 1px solid rgba(234, 213, 164, 0.28);
  border-radius: 50%;
  content: "";
}

.pdt-preview-mark::after,
.pdt-page-emblem::after,
.pdt-role-mark::after {
  position: absolute;
  bottom: -90px;
  left: -65px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(234, 213, 164, 0.2);
  border-radius: 50%;
  content: "";
}

.pdt-preview-mark span,
.pdt-page-emblem span,
.pdt-role-mark span {
  position: relative;
  z-index: 2;
  color: var(--gold-soft);
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: clamp(68px, 9vw, 112px);
  line-height: 1;
}

.pdt-preview-mark small,
.pdt-page-emblem small,
.pdt-role-mark small {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.pdt-preview-content h2,
.pdt-role-content h2,
.pdt-external-card h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4.3vw, 58px);
}

.pdt-preview-content p,
.pdt-role-content p {
  margin-bottom: 19px;
  font-size: 17px;
}

.pdt-preview-content .lead,
.pdt-role-content .lead,
.pdt-page-copy .lead {
  color: var(--peacock-dark);
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: 24px;
  line-height: 1.47;
}

.pdt-page-hero {
  position: relative;
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 86px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 154, 61, 0.18), transparent 30%),
    linear-gradient(135deg, var(--peacock-deep), var(--peacock-dark));
}

.pdt-page-symbol {
  position: absolute;
  right: -60px;
  bottom: -115px;
  color: rgba(234, 213, 164, 0.06);
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: 420px;
  line-height: 1;
  user-select: none;
}

.pdt-page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}

.pdt-page-hero-content {
  max-width: 760px;
}

.pdt-page-hero h1 {
  margin-bottom: 25px;
  color: var(--white);
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -2.2px;
}

.pdt-page-hero-content > p:not(.eyebrow) {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

.pdt-page-hero-content .pdt-page-lead {
  margin-bottom: 19px;
  color: var(--gold-soft);
  font-family:
    Baskerville,
    "Palatino Linotype",
    Georgia,
    serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
}

.pdt-page-emblem {
  min-height: 390px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.pdt-origin-section {
  background: var(--surface);
}

.pdt-page-copy p {
  margin-bottom: 20px;
  font-size: 17px;
}

.pdt-tool-section {
  background:
    linear-gradient(135deg, var(--surface-blue) 0%, #dbe8e7 100%);
}

.pdt-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pdt-tool-card {
  position: relative;
  min-height: 315px;
  padding: 37px;
  border: 1px solid rgba(13, 83, 100, 0.16);
  border-radius: var(--radius-medium);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-small);
}

.pdt-tool-card::before {
  position: absolute;
  top: 0;
  right: 29px;
  width: 43px;
  height: 8px;
  border-radius: 0 0 7px 7px;
  background: var(--gold);
  content: "";
}

.pdt-tool-card h3 {
  margin: 42px 0 15px;
  font-size: 28px;
}

.pdt-tool-card p {
  font-size: 15px;
}

.pdt-process-section {
  background: var(--surface);
}

.pdt-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pdt-principle {
  min-height: 290px;
  padding: 33px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-medium);
  background: var(--ivory);
}

.pdt-principle > span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 39px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-dark);
  font-family: Baskerville, Georgia, serif;
  font-size: 23px;
}

.pdt-principle h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.pdt-principle p {
  font-size: 15px;
}

.pdt-role-section {
  background:
    linear-gradient(135deg, #f0e8db 0%, var(--ivory-deep) 100%);
}

.pdt-role-mark span {
  font-size: clamp(70px, 9vw, 118px);
}

.pdt-external-section {
  background: var(--peacock-deep);
}

.pdt-external-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(234, 213, 164, 0.26);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.045);
}

.pdt-external-card h2 {
  color: var(--white);
}

.pdt-external-card p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 920px) {
  .pdt-preview-grid,
  .pdt-role-grid,
  .pdt-page-hero-grid {
    grid-template-columns: 1fr;
  }

  .pdt-preview-mark,
  .pdt-role-mark,
  .pdt-page-emblem {
    width: min(100%, 560px);
  }

  .pdt-tool-grid,
  .pdt-principles-grid {
    grid-template-columns: 1fr;
  }

  .pdt-external-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .pdt-page-hero {
    min-height: auto;
    padding: 72px 0 82px;
  }

  .pdt-page-hero h1 {
    font-size: 45px;
  }

  .pdt-preview-mark,
  .pdt-role-mark,
  .pdt-page-emblem {
    min-height: 280px;
  }

  .pdt-tool-card,
  .pdt-principle {
    min-height: auto;
  }
}


/* =========================================
   PDT — LOGO UFFICIALE
========================================= */

.pdt-preview-logo,
.pdt-page-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-large);
  background: #1f4d80;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.pdt-preview-logo {
  min-height: 330px;
  padding: 24px;
}

.pdt-page-logo {
  min-height: 390px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.055);
}

.pdt-preview-logo:hover,
.pdt-page-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 65px rgba(5, 42, 52, 0.2);
}

.pdt-preview-logo img,
.pdt-page-logo img {
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain;
  border-radius: 14px;
}

.pdt-page-logo img {
  max-height: 340px;
}

.pdt-external-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr) auto;
}

.pdt-external-logo {
  width: 100%;
  max-width: 260px;
  border-radius: 16px;
  box-shadow: var(--shadow-small);
}

/* The official logo replaces the previous oversized decorative lettering. */
.pdt-page-symbol {
  display: none;
}

@media (max-width: 920px) {
  .pdt-preview-logo,
  .pdt-page-logo {
    width: min(100%, 620px);
    min-height: auto;
  }

  .pdt-external-card {
    grid-template-columns: 1fr;
  }

  .pdt-external-logo {
    max-width: 320px;
  }
}

@media (max-width: 620px) {
  .pdt-preview-logo,
  .pdt-page-logo {
    padding: 14px;
    border-radius: var(--radius-medium);
  }

  .pdt-preview-logo img,
  .pdt-page-logo img {
    max-height: none;
  }
}


/* =========================================
   AGGIORNAMENTO IDENTITÀ / SEO / PRIVACY
========================================= */

.brand-lockup {
  width: auto;
  min-width: 245px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.78);
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--peacock-dark);
  font-family: Baskerville, "Palatino Linotype", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.footer-link {
  color: var(--gold-dark);
  text-underline-offset: 3px;
}

.privacy-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2000;
  width: min(calc(100% - 44px), 900px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 21px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: rgba(5, 44, 55, 0.98);
  box-shadow: 0 22px 65px rgba(5, 44, 55, 0.28);
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gold-soft);
  font-family: Baskerville, "Palatino Linotype", Georgia, serif;
  font-size: 18px;
}

.privacy-banner-copy p {
  max-width: 650px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.45;
}

.privacy-banner-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.privacy-banner-actions a,
.privacy-banner-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: Baskerville, "Palatino Linotype", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.privacy-banner-actions a {
  background: transparent;
  color: var(--gold-soft);
}

.privacy-banner-actions button {
  background: var(--gold);
  color: var(--peacock-deep);
}

.legal-main {
  padding: 82px 0 96px;
  background: linear-gradient(145deg, var(--ivory) 0%, var(--surface) 100%);
}

.legal-container {
  max-width: 900px;
}

.legal-container > h1,
.error-card h1 {
  margin-bottom: 10px;
  font-size: clamp(46px, 6vw, 72px);
}

.legal-update {
  margin-bottom: 48px;
  color: var(--gold-dark);
  font-size: 14px;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin-bottom: 13px;
  font-size: 27px;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section a {
  color: var(--peacock);
}

.legal-note {
  padding: 28px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-medium);
  background: var(--ivory-deep);
}

.error-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 50px 0;
  background: linear-gradient(145deg, var(--ivory) 0%, var(--surface-blue) 100%);
}

.error-card {
  max-width: 680px;
  text-align: center;
}

.error-card p:not(.eyebrow) {
  margin: 0 auto 28px;
  max-width: 540px;
}

.error-mark {
  width: 116px;
  height: 116px;
  margin: 0 auto 28px;
  border: 1px solid var(--border-gold);
  border-radius: 24px;
}

@media (max-width: 920px) {
  .brand-lockup {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }
}

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

  .brand-lockup {
    gap: 8px;
    padding: 5px 9px 5px 5px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .privacy-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 17px;
  }

  .privacy-banner-actions {
    justify-content: flex-end;
  }

  .legal-main {
    padding: 58px 0 72px;
  }
}

/* =========================================
   AGGIORNAMENTO LOGHI — 20/09/2026
   PdT: logo ufficiale R senza doppio fondo blu
   Footer: logo Studio Dierico ben visibile
========================================= */

.pdt-preview-logo,
.pdt-page-logo {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  overflow: hidden;
}

.pdt-preview-logo img,
.pdt-page-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: inherit;
  object-fit: contain;
}

.pdt-external-logo {
  display: block;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-small);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 220px;
  min-width: 220px;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 205px;
  height: 205px;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
  border: 1px solid rgba(210, 159, 59, 0.55);
  border-radius: 18px;
  background: #f8f3eb;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

@media (max-width: 920px) {
  .pdt-preview-logo,
  .pdt-page-logo {
    width: min(100%, 720px);
  }
}

@media (max-width: 620px) {
  .pdt-preview-logo,
  .pdt-page-logo {
    padding: 0;
    border-radius: 20px;
  }

  .footer-brand {
    width: 180px;
    min-width: 180px;
  }

  .footer-brand img {
    width: 170px;
    height: 170px;
  }
}
