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

:root {
  --navy: #28385d;
  --navy-light: #334672;
  --red: #bd2c33;
  --red-light: #d4464d;
  --cream: #f5f0e6;
  --cream-dark: #ede5d4;
  --text-dark: #1a1a1a;
  --text-muted: #6b6b6b;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(40, 56, 93, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(189,44,51,0.15);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 80px;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 52px; width: auto; display: block; }

.header-left { display: flex; align-items: center; gap: 0; }

.logo-mark, .logo-full {
  width: auto;
  transition: opacity 0.35s ease;
}
.logo-mark { height: 56px; }
.logo-full { height: 44px; display: none; }
header.scrolled .logo-mark { display: none; }
header.scrolled .logo-full { display: block; }

.header-name {
  font-family: 'EB Garamond', serif;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.22em;
  line-height: 1.35;
  text-transform: uppercase;
  padding-left: 20px;
  margin-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.18);
  transition: opacity 0.3s ease, max-width 0.35s ease, padding 0.35s ease, margin 0.35s ease, border-color 0.35s ease;
  max-width: 280px;
  overflow: hidden;
  white-space: nowrap;
}
.header-name span:first-child {
  font-style: italic;
  color: var(--red-light);
  letter-spacing: 0.18em;
}
header.scrolled .header-name {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  margin-left: 0;
  border-left-color: transparent;
}

nav { display: flex; align-items: center; gap: 36px; }

nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

nav a .num {
  font-size: 8px;
  color: var(--red);
  margin-bottom: 1px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  letter-spacing: 0.1em;
}

nav a:hover { color: var(--white); }

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a.active::after, nav a:hover::after { transform: scaleX(1); }

/* ── PAGE HERO ── */
.page-hero {
  padding-top: 80px;
  background:
    linear-gradient(to right, rgba(40,56,93,0.92) 0%, rgba(40,56,93,0.78) 55%, rgba(40,56,93,0.55) 100%),
    url('../images/header/contatti.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(189,44,51,0.08) 100%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 48px 80px;
  position: relative;
  z-index: 2;
}

.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }

.breadcrumb a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: rgba(255,255,255,0.7); }

.breadcrumb-sep { color: rgba(255,255,255,0.2); font-size: 10px; }

.breadcrumb-current {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.page-hero-num {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 20px;
}

.page-hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  max-width: 640px;
}

.page-hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* ── SECTION LABEL ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(40,56,93,0.45);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: rgba(40,56,93,0.3);
}

.section-label.light { color: rgba(255,255,255,0.4); }
.section-label.light::before { background: rgba(255,255,255,0.25); }

/* ── INFO CONTATTI ── */
.contatti-info {
  padding: 100px 0 60px;
  background: var(--white);
}

.contatti-info-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.contatti-info-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 56px;
  max-width: 560px;
  line-height: 1.15;
}

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(40,56,93,0.1);
  border: 1px solid rgba(40,56,93,0.1);
}

.contatto-card {
  background: var(--white);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.contatto-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contatto-card:hover::after { transform: scaleX(1); }
.contatto-card:hover { background: var(--cream); }

.cc-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.cc-icon svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(40,56,93,0.5);
  font-weight: 600;
  margin-bottom: 12px;
}

.cc-value {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

.cc-value a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.cc-value a:hover { color: var(--red); }

.cc-note {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 8px;
  line-height: 1.6;
}

/* ── SEDI ── */
.sedi-section {
  padding: 80px 0 100px;
  background: var(--white);
}

.sedi-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.sedi-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 48px;
}

.sedi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sede-card {
  background: var(--cream);
  padding: 48px 48px 40px;
  border: 1px solid rgba(40,56,93,0.1);
  position: relative;
  overflow: hidden;
}

.sede-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.sede-card:hover::after { transform: scaleX(1); }

.sede-num {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  font-style: italic;
  color: rgba(40,56,93,0.35);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.sede-name {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 24px;
}

.sede-details { display: flex; flex-direction: column; gap: 16px; }

.sede-detail { display: flex; flex-direction: column; }

.sd-label {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(40,56,93,0.4);
  font-weight: 600;
  margin-bottom: 4px;
}

.sd-value {
  font-size: 13px;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.sd-value a { color: var(--navy); text-decoration: none; }

/* ── FORM ── */
.form-section {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}

.form-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.form-left {}

.form-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 28px;
}

.form-text {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 2;
  font-weight: 300;
  margin-bottom: 36px;
}

.form-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.03em;
  border-left: 2px solid var(--red);
  padding-left: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.field-full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; }

.form-field label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.02em;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--red);
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.5) 50%),
                    linear-gradient(135deg, rgba(255,255,255,0.5) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.form-field select option { color: var(--text-dark); background: var(--white); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.form-checkbox input { margin-top: 4px; accent-color: var(--red); }

.form-checkbox a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: transparent;
  color: var(--red);
}

.form-required-note {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  font-weight: 300;
}

.form-feedback {
  grid-column: 1 / -1;
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 8px;
}

.form-feedback--ok {
  background: rgba(76, 175, 80, 0.15);
  color: #a5d6a7;
  border-left: 3px solid #66bb6a;
}

.form-feedback--err {
  background: rgba(189, 44, 51, 0.15);
  color: #ef9a9a;
  border-left: 3px solid var(--red);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ── MAPPA ── */
.map-section {
  padding: 100px 0;
  background: var(--white);
}

.map-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.map-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 48px;
  line-height: 1.15;
}

.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.map-item {
  display: flex;
  flex-direction: column;
}

.map-item-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.map-item-num {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}

.map-item-name {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
}

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(40,56,93,0.12);
  background: var(--cream);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15);
  transition: filter 0.3s;
}

.map-frame:hover iframe { filter: grayscale(0); }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  align-self: flex-start;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(189,44,51,0.4);
  padding-bottom: 3px;
  transition: all 0.2s;
}

.map-link:hover { letter-spacing: 0.3em; border-color: var(--red); }

/* ── STRIP CONTATTI ── */
.contact-strip { background: var(--red); padding: 24px 0; }

.contact-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-text {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
}

.cs-actions { display: flex; align-items: center; gap: 32px; }

.cs-phone {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.cs-phone:hover { opacity: 0.8; }

.cs-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--white);
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cs-btn:hover { opacity: 0.85; }


#footer > .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(189,44,51,0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 36px;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo-img { height: 56px; width: auto; display: block; }

.footer-tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px;
}

.footer-col-title {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-nav { display: flex; flex-direction: column; gap: 12px; }

.footer-nav a {
  text-decoration: none;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--red); }
.footer-nav-legal {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-legal a {
  text-decoration: none;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-nav-legal a:hover { color: var(--red); }



.contact-line {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 8px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.contact-item-value a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item-value a:hover { color: var(--white); }

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

.footer-copy {
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  font-weight: 300;
}

.footer-red-accent { display: flex; align-items: center; gap: 10px; }

.footer-red-line { width: 40px; height: 1px; background: var(--red); opacity: 0.35; }
.footer-red-dot { width: 4px; height: 4px; background: var(--red); opacity: 0.4; }

/* ── POWERED BY ── */
.powered {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 14px 48px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.powered a {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.2s;
}

.powered a:hover { color: var(--red); }
