@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand-yellow: #f8c12a;
  --brand-blue: #1b264f;
  --brand-blue-hover: #141d3e;
  --brand-dark: #1b1b1b;
  --text-dark: #111111;
  --text-light: #555555;
  --bg-light: #f8f9fa;
  --font-family-base: 'Inter', sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#page.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

#colophon.site-footer {
  margin-top: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Typography utilities */
.fw-black {
  font-weight: 800;
}

.text-brand-blue {
  color: var(--brand-blue);
}

.text-brand-yellow {
  color: var(--brand-yellow);
}

/* Custom Buttons */
.btn{border-radius: 0px !important;}
.btn-brand-yellow {
  background-color: var(--brand-yellow);
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 0px;
  border: none;
  transition: all 0.3s ease;
}

.btn-brand-yellow:hover {
  background-color: #e0ac1b;
  color: #000;
}

.btn-outline-dark-custom {
  border: 1px solid #ddd;
  color: #333;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 0px;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-dark-custom:hover {
  background: #f8f9fa;
  color: #000;
}

.btn-outline-light {
  border: 1px solid white;
  color: white;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 0px;
  background: transparent;
  transition: all 0.3s ease;
}

/* Sections Backgrounds */
.bg-brand-blue {
  background-color: var(--brand-blue);
  color: #fff;
}

.bg-brand-dark {
  background-color: var(--brand-dark);
  color: #fff;
}

/* Navbar */
.navbar-custom {
  /*padding: 1rem 0;*/
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  color: var(--brand-blue);
}

.navbar-custom .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 10px;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 101px);
  min-height: calc(100vh - 101px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--brand-blue);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 80px;
  padding-bottom: 140px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 100%;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-thumbnails {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background-color: var(--brand-blue);
  padding: 20px 0;
}

.hero-thumb {
  height: 80px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
  .hero-thumb {
    height: 60px;
  }
}

.hero-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-blue);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.hero-thumb:hover .hero-thumb-overlay {
  opacity: 0.3;
}

.hero-thumb.active .hero-thumb-overlay {
  opacity: 0;
}

.hero-content .btn-brand-yellow {
  min-width: 200px;
}

/* Stats Section */
.stats-section {
  padding: 100px 0;
}

.item-stats {
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.stats-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Features Section */
.features-section {
  padding: 100px 0;
}

.feature-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  padding: 30px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  color: #fff;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.feature-card:hover::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.9) 100%);
}

.feature-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feature-card-content .btn-link {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
}

.feature-label {
  margin-bottom: 10px;
}

.feature-icon {
  margin-bottom: 15px;
  width: 40px;
  height: 40px;
  /*
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  */
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-btn-card {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 2;
}

.row-btn-card .btn-link {
  padding: 10px 0px;
}

.row-btn-card .btn {
  position: relative;
  z-index: 5;
}


/* News Section */
.news-section {
  padding: 100px 0;
}

.news-card {
  border: none;
  border-radius: 0;
  height: 100%;
}

.news-card img {
  height: 240px;
  object-fit: cover;
  border-radius: 0;
}

.news-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.news-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.news-link i {
  margin-left: 5px;
  transition: margin 0.3s ease;
}

.news-link:hover {
  color: var(--brand-blue);
}

.news-link:hover i {
  margin-left: 10px;
}

/* Events Section */
.events-section {
  padding: 100px 0;
}

.event-card {
  background: transparent;
  border: none;
  color: #fff;
}

.event-card img {
  border-radius: 0px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.event-meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.event-excerpt {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background-color: var(--brand-blue);
  color: #fff;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.9rem;
}

.footer-socials a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.2rem;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #aaa;
}

.footer-bottom a {
  color: #aaa;
}


.menu-mobile.show-menu {
  opacity: 1;
  z-index: 9998
}

.menu-mobile .header-menu ul {
  flex-direction: column;
  justify-content: center;
  width: 100%
}

/* Fullscreen Mobile Menu overrides */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1A265C;
    z-index: 1040;
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    transform: translateY(-100%);
  }

  .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Disable bootstrap default collapse logic to allow custom animation */
  .navbar-collapse.collapse:not(.show) {
    display: flex !important;
  }

  .navbar-collapse.collapsing {
    display: flex !important;
    height: 100vh !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Handled by our transition */
    transition: all 0.3s ease-in-out;
  }

  .navbar-custom .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
  }

  .navbar-custom .nav-link {
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 700;
    /*margin: 15px 0;*/
  }

  .navbar-custom .nav-link:hover {
    color: var(--brand-yellow) !important;
  }

  .navbar-brand,
  .navbar-toggler {
    position: relative;
    z-index: 1050;
  }

  .navbar-toggler {
    border-color: transparent !important;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  /* Fixed header and logo toggle when mobile menu is open */
  body.openmenu {
    overflow: hidden;
  }

  body.openmenu .navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background-color: transparent !important;
    border-bottom: none;
  }

  /*
  body.openmenu .navbar-brand .logo-default {
    display: none !important;
  }

  body.openmenu .navbar-brand .logo-white {
    display: inline-block !important;
  }
  */
}

/* Invert toggler icon to white when menu is open on dark background */
@media (max-width: 991.98px) {
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    filter: invert(1) brightness(100);
  }
}

/* Card Post Styles (Category Archive) */
.card-post {
  border: 1px solid #eaeaea;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.card-post:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-post-image .bg-cover {
  background-size: cover;
  background-position: center;
  width: 100%;
}

.card-post-category {
  font-size: 0.8rem;
  background-color: #f5f5f5 !important;
  border: 1px solid #f0f0f0;
}

.card-post-title a:hover {
  color: var(--brand-blue) !important;
}

.header-article .title-section {
  color: var(--brand-blue) !important;
}

.single-post-article {
  max-width: 900px;
  margin: auto;
}

.single-post-article .post-header .post-category,
.single-post-article .post-header .post-category a {
  text-transform: uppercase;
  color: var(--brand-blue);
}

.card-post-readmore {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.card-post-readmore:hover {
  color: var(--brand-blue) !important;
}

/* Hero Section Alignment Grid & Swiper */
.hero-swiper.swiper-container {
  height: calc(100vh - 101px);
  min-height: calc(100vh - 101px);
  position: relative;
  overflow: hidden;
  display: block !important;
}

.hero-swiper::before {
  display: none !important;
}

.hero-swiper .swiper-slide {
  position: relative;
  height: calc(100vh - 101px);
  min-height: calc(100vh - 101px);
  display: flex !important;
  align-items: stretch !important;
  background-size: cover;
  background-position: center;
}

.hero-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 80px;
  padding-bottom: 140px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero-row {
  flex-grow: 1;
  z-index: 2;
}

/* Custom Login Page Styles */
.bg-light-custom {
  background-color: #f8f9fa;
}

.login-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.login-input {
  background-color: #f5f5f5 !important;
  border: 1px solid #e0e0e0 !important;
  padding: 14px 16px !important;
  font-size: 1rem !important;
  /*color: #333 !important;*/
  color: rgba(33, 37, 41, 0.75) !important;
}

.form-control {
  border-radius: 0px !important
}

.login-input:focus {
  background-color: #fff !important;
  border-color: var(--brand-blue) !important;
  box-shadow: none !important;
}

.login-checkbox {
  width: 18px !important;
  height: 18px !important;
  border-radius: 3px !important;
  border-color: #ccc !important;
  cursor: pointer;
}

.login-checkbox:checked {
  background-color: var(--brand-yellow) !important;
  border-color: var(--brand-yellow) !important;
}

.login-form .btn-brand-yellow {
  color: #fff !important;
  transition: background-color 0.2s ease;
}

.login-form .btn-brand-yellow:hover {
  background-color: #e0ac1b !important;
}

.btn-register {
  background-color: #f5f5f5 !important;
  border: 1px solid #e0e0e0 !important;
  color: #000 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.btn-register:hover {
  background-color: #e0e0e0 !important;
  border-color: #d0d0d0 !important;
}

.hover-primary:hover {
  color: var(--brand-blue) !important;
}

/* Multi-step Registration Progress */
.steps-progress-container {
  max-width: 500px;
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 2px;
  background-color: #dee2e6;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: #dee2e6;
  color: #fff;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  margin: 0 auto;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-item.active .step-number {
  background-color: var(--brand-blue);
  color: #fff;
}

.step-item.active .step-label {
  color: #000;
}

/* Radio button styles */
.login-radio {
  border-color: #ccc !important;
  cursor: pointer;
}

.login-radio:checked {
  background-color: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
}

/* Brand Blue Button */
.btn-brand-blue {
  background-color: var(--brand-blue) !important;
  color: #fff !important;
  transition: background-color 0.2s ease;
  border-radius: 0px;
}

.btn-brand-blue:hover {
  background-color: var(--brand-blue-hover) !important;
}

/* Direttivo */
.section-direttivo {
  padding: 100px 0;
}

.direttivo-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid #e9ecef !important;
  border-radius: 0px;
  height: 100%;
}

.direttivo-card img {
  /*height: 300px;*/
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}
.direttivo-card .card-img-top {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .member-details-card ul li .member-detail-label {
        width: auto !important;
        margin-bottom: 2px;
    }
}

.direttivo-card-title {
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 0px;
}

.direttivo-card-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.direttivo-card-link i {
  margin-left: 5px;
  transition: margin 0.3s ease;
}

.direttivo-card-link:hover {
  color: var(--brand-blue);
}

.direttivo-card-link:hover i {
  margin-left: 10px;
}


.direttivo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: #dee2e6 !important;
}

.direttivo-card:hover .member-name {
  color: var(--brand-blue) !important;
}

.direttivo-card:hover .btn-view-profile {
  background-color: var(--brand-blue) !important;
  color: #fff !important;
  border-color: var(--brand-blue) !important;
}

.direttivo-modal-content {
  border-radius: 12px;
}

.direttivo-modal-body::-webkit-scrollbar {
  width: 6px;
}

.direttivo-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.direttivo-modal-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.direttivo-modal-body::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Select placeholder style */
select.login-input option {
  color: rgba(33, 37, 41, 0.75) !important;
}

select.login-input option[value=""] {
  /*color: #6c757d !important;*/
  color: rgba(33, 37, 41, 1) !important;
}

/* Custom Select Dropdown Styles */
.custom-select-option {
  transition: all 0.15s ease;
}

.custom-select-option:hover {
  background-color: #f5f5f5;
  color: var(--brand-blue) !important;
}

.custom-select-option.selected {
  background-color: #e9ecef;
  color: var(--brand-blue) !important;
  font-weight: 600;
}

.form-control:focus {
  background-color: #fff !important;
  border-color: var(--brand-blue) !important;
  box-shadow: none !important;
}


.wpcf7-form {
  font-family: var(--font-family-base);
}

.wpcf7-form .form-control {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 14px 16px;
  font-size: 1rem;
  color: rgba(33, 37, 41, 0.75);
}

.wpcf7-form .form-label {
  color: var(--bs-secondary-color) !important;
  font-size: 0.95rem;
  font-weight: 600
}

.wpcf7-submit {
  padding: 10px 24px;
  background-color: var(--brand-yellow);
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
}

.post-content a,
.post-content p a {
  color: var(--brand-blue);
}

.post-content a:hover,
.post-content p a:hover {
  color: var(--brand-yellow);
}