/* Padding per pagina */
  body {
    padding-top: 75px !important;
  }

  @media (max-width: 991px) {
    body {
      padding-top: 75px !important;
    }
  }

  @media (max-width: 576px) {
    body {
      padding-top: 65px !important;
    }
  }

  /* ===== Stili specifici per la pagina Contatti ===== */
  /* Nota: Hero, reveal animations, promo card, search box e contact form 
     sono ora gestiti da hero-contact-unified.css caricato globalmente */

  /* ===== Contact Final Section (Light Theme - specific to Contatti) ===== */
  .contact-final {
    background: #fff;
    padding: 60px 0;
  }

  .contact-final h3 {
    font-weight: 1000;
    color: #0b3c8c;
    margin-bottom: 10px;
    text-transform: capitalize;
    letter-spacing: .01em;
  }

  .contact-final .intro {
    color: #0b3c8c;
    margin-bottom: 18px;
  }

  .contact-final .label {
    letter-spacing: .25em;
    font-weight: 1000;
    color: #0b3c8c;
    margin-top: 14px;
    margin-bottom: 6px;
  }

  .contact-final .details {
    color: var(--brand-accent);
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: .01em;
  }

  .contact-final .details a {
    text-decoration: none;
    color: inherit;
  }

  .contact-final .details a:hover {
    text-decoration: underline;
  }

  .contact-final .image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, .08);
  }

  .contact-final .social {
    display: flex;
    gap: 12px;
    font-size: 1.5rem;
  }

  .contact-final .social a {
    color: var(--brand-primary);
    transition: color .2s var(--ease), transform .2s var(--ease);
  }

  .contact-final .social a:hover {
    color: var(--brand-accent);
    transform: scale(1.1);
  }

  .spacer {
    height: 60px;
    background: #fff;

  }

  /* ===== SEDI SECTION (from page-agency.php) ===== */
  .details-section {
    background: #f8f9fa;
    padding: 60px 0;
    position: relative;
  }

  .details-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
  }

  .sede-card {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: none;
    position: relative;
    cursor: pointer;
  }

  .sede-card:hover {
    box-shadow: 0 12px 35px rgba(11, 60, 140, 0.15);
  }

  .sede-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    border-radius: 20px;
    transition: opacity 0.05s ease;
    filter: brightness(0.85);
  }

  .sede-card:hover .sede-card-bg {
    opacity: 0.8;
    filter: brightness(0.75) contrast(1.15);
    box-shadow: 0 12px 28px rgba(2, 8, 20, 0.12);
  }

  .sede-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
    border-radius: 20px;
  }

  .sede-header {
    display: flex;
    align-items: center;
    padding: 36px 32px;
    cursor: pointer;
    position: relative;
    z-index: 2;
  }

  .sede-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .sede-icon i {
    color: #fff;
    font-size: 1.7rem;
  }

  .sede-info {
    flex: 1;
    position: relative;
    z-index: 2;
  }

  .sede-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.3);
    transition: none;
  }

  .sede-name:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px -6px rgba(0, 0, 0, 0.35);
  }

  .sede-address {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 2;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  .sede-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
  }

  .sede-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .sede-action-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background: #fff;
  }

  .sede-action-btn i {
    font-size: 16px;
  }

  .sede-action-btn.email-btn i {
    color: #3b82f6;
  }

  .sede-action-btn.phone-btn i {
    color: #10b981;
  }

  .sede-action-btn.map-btn i {
    color: #ef4444;
  }

  .sede-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .sede-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .sede-toggle i {
    color: #fff;
    font-size: 16px;
    transition: transform 0.05s ease;
  }

  .sede-card.active .sede-toggle i {
    transform: rotate(180deg);
  }

  .sede-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.05s ease;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    z-index: 3;
  }

  .sede-card.active .sede-content {
    max-height: 500px;
    padding: 24px 32px;
  }

  .sede-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .sede-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
  }

  .sede-image-item {
    text-align: center;
  }

  .sede-image-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-accent);
    margin: 0 auto 8px;
    box-shadow: 0 4px 12px rgba(242, 140, 42, 0.2);
    transition: transform 0.05s ease;
    cursor: pointer;
  }

  .sede-image-circle:hover {
    transform: scale(1.05);
  }

  .sede-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sede-image-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

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

  .sede-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sede-detail {
    display: flex;
    align-items: flex-start;
    color: #475569;
    font-size: 14px;
  }

  .sede-detail i {
    color: var(--brand-accent);
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .sede-detail strong {
    color: var(--brand-primary);
    font-weight: 700;
  }

  @media (max-width: 768px) {
    .sede-card {
      margin-bottom: 20px;
    }

    .sede-header {
      padding: 24px 20px;
    }

    .sede-icon {
      width: 42px;
      height: 42px;
      margin-right: 8px;
    }

    .sede-icon i {
      font-size: 1.4rem;
    }

    .sede-name {
      font-size: 1rem;
      padding: 6px 12px;
    }

    .sede-address {
      font-size: 0.85rem;
    }

    .sede-action-btn {
      width: 36px;
      height: 36px;
    }

    .sede-action-btn i {
      font-size: 14px;
    }

    .sede-toggle {
      width: 36px;
      height: 36px;
    }

    .sede-toggle i {
      font-size: 14px;
    }

    .sede-content-wrapper {
      flex-direction: column;
    }

    .sede-images {
      flex-direction: row;
      justify-content: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    .sede-detail-row {
      grid-template-columns: 1fr;
    }

    .sede-image-circle {
      width: 70px;
      height: 70px;
    }

    .sede-image-label {
      font-size: 11px;
    }
  }

  /* ===== MAP SECTION ===== */
  .map-section {
    background: #fff;
    padding: 80px 0 60px 0;
    position: relative;
    overflow: hidden;
  }

  .map-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
  }

  .section-spacer {
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    min-height: 120px;
    position: relative;
  }

  .map-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
  }

  .map-title {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw + .5rem, 3.2rem);
    line-height: 1.15;
    margin: 0 0 1rem 0;
    letter-spacing: -.01em;
  }

  .map-subtitle {
    display: block;
    color: var(--brand-accent);
    font-weight: 600;
    font-size: clamp(1.3rem, 2.8vw + .3rem, 2.2rem);
    margin-top: 0.5rem;
    line-height: 1.3;
  }

  .map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(2, 6, 23, .15);
    height: 500px;
    border: 2px solid rgba(11, 60, 140, .15);
    position: relative;
  }

  .map-container #map {
    width: 100%;
    height: 100%;
  }

  /* Personalizzazione Leaflet */
  .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.8) !important;
  }

  .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.15);
  }

  .leaflet-popup-tip {
    box-shadow: 0 3px 8px rgba(2, 6, 23, 0.1);
  }

  .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* ===== Map & Details Responsive Styles ===== */
  @media(max-width:768px) {
    .map-section {
      padding: 60px 0 40px 0;
    }

    .section-spacer {
      min-height: 80px;
    }

    .map-header {
      margin-bottom: 30px;
      padding: 0 15px;
    }

    .map-container {
      height: 400px;
      border-radius: 12px;
      border-width: 1.5px;
      box-shadow: 0 12px 30px rgba(2, 6, 23, .12);
    }
  }

  @media(max-width: 576px) {
    .map-section {
      padding: 40px 0 30px 0;
    }

    .section-spacer {
      min-height: 60px;
    }

    .map-container {
      height: 350px;
      border-radius: 10px;
      border-width: 1px;
      box-shadow: 0 8px 20px rgba(2, 6, 23, .1);
    }
  }

 /* Stili specifici per il form di contatto della pagina Contatti */
    /* ===== CONTACT FORM SECTION ===== */
    .contact-form-section {
      padding: 60px 0;
      background: #fff;
    }

    .contact-form-content {
      max-width: 100%;
      margin: 0 auto;
    }

    .contact-form-title {
      color: var(--brand-primary);
      font-weight: 800;
      font-size: clamp(1.8rem, 4vw + .5rem, 3.2rem);
      line-height: 1.15;
      margin: 0 0 2rem 0;
      letter-spacing: -.01em;
      text-align: center;
    }

    .contact-form-subtitle {
      display: block;
      color: var(--brand-accent);
      font-weight: 600;
      font-size: clamp(1.3rem, 2.8vw + .3rem, 2.2rem);
      margin-top: 0.5rem;
      line-height: 1.3;
    }

    .contact-form-description {
      color: #0b3c8c;
      font-size: clamp(1rem, 2vw + .2rem, 1.2rem);
      line-height: 1.6;
      margin: 0 0 2rem 0;
      font-weight: 400;
      text-align: center;
    }

    /* ===== CONTACT FORM FIELDS ===== */
    .contact-form-main .form-field {
      width: 100%;
      padding: 14px 18px;
      border: 1px solid rgba(2, 6, 23, .10);
      border-radius: 20px;
      background-color: #f3bc86ff;
      font-size: 1rem;
      color: #0f172a;
      box-shadow: 0 3px 10px rgba(2, 6, 23, .06) inset;
      transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .06s var(--ease);
      font-family: 'OpenSauce', system-ui, -apple-system, sans-serif;
    }

    .contact-form-main .form-field:focus {
      border-color: rgba(11, 60, 140, .45);
      box-shadow: 0 0 0 4px rgba(11, 60, 140, .12);
      outline: none;
    }

    .contact-form-main .form-field::placeholder {
      color: #0b3c8c;
      opacity: 0.8;
    }

    .contact-form-main textarea.form-field {
      min-height: 120px;
      resize: vertical;
      border-radius: 20px;
    }

    /* ===== FORM CHECKBOX ===== */
    .form-check-input:checked {
      background-color: var(--brand-accent);
      border-color: var(--brand-accent);
    }

    .form-check-input:focus {
      border-color: rgba(242, 140, 42, .45);
      box-shadow: 0 0 0 4px rgba(242, 140, 42, .12);
    }

    .consent-label {
      color: #475569;
      font-size: 0.9rem;
      line-height: 1.4;
    }

    /* ===== CONTACT FORM BUTTON ===== */
    .btn-contact-form {
      background: #0b3c8c;
      color: #fff;
      border: none;
      border-radius: 25px;
      padding: 16px 40px;
      font-weight: 700;
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: .02em;
      box-shadow: 0 10px 24px rgba(11, 60, 140, .25);
      transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
      cursor: pointer;
      min-width: 150px;
    }

    .btn-contact-form:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(11, 60, 140, .35);
      background: #062c5e;
      color: #fff;
    }

    .btn-contact-form:active {
      transform: translateY(0);
    }

    .btn-contact-form:disabled {
      background: #a8d8ea;
      color: #64748b;
      cursor: not-allowed;
      box-shadow: 0 4px 12px rgba(168, 216, 234, .15);
    }