/* =============================================
   CENTRO FINANZIAMENTI SPA — Template 6 "Ocean & Sky"
   Primary: #1A365D | Accent: #3182CE | Dark: #0F2440 | Light bg: #F7FAFC
   Font: Albert Sans
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary: #1A365D;
  --primary-rgb: 26, 54, 93;
  --accent: #3182CE;
  --accent-rgb: 49, 130, 206;
  --dark: #0F2440;
  --light-bg: #F7FAFC;
  --white: #ffffff;
  --text: #2D3748;
  --text-light: #718096;
  --border: #E2E8F0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--primary);
}

/* --- Navbar --- */
.custom-navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
}
.custom-navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0;
}

.navbar-brand img.logo-img {
  height: 3rem;
  width: auto;
  border-radius: 6px;
}

.navbar-caption {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  white-space: nowrap;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent);
}
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 6px;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
  outline: none;
}

.navbar-buttons .btn-black-outline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.navbar-buttons .btn-black-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Hero Section (header3 - Clean Split, no parallax, no full-screen) --- */
.hero-section {
  padding: 8rem 0 5rem;
  background: var(--light-bg);
}

.hero-section .hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.hero-section .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-section .hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-section .hero-content .hero-description {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-section .btn-primary-cta {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}
.hero-section .btn-primary-cta:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

/* --- Section General --- */
.section-padding {
  padding: 5rem 0;
}

.section-bg-light {
  background: var(--light-bg);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
}

.accent-text {
  color: var(--accent);
}

/* --- Image + Text Sections (header2, header4) --- */
.split-section .split-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.split-section .split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 2rem 0;
}

.split-section .split-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.split-section .split-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.split-section .btn-outline-accent {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.split-section .btn-outline-accent:hover {
  background: var(--accent);
  color: var(--white);
}

/* --- Feature Cards with Images --- */
.features-image-section {
  padding: 5rem 0;
}

.features-image-section .feature-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}
.features-image-section .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.features-image-section .item-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.features-image-section .item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.features-image-section .feature-card:hover .item-img img {
  transform: scale(1.05);
}

.features-image-section .item-content {
  padding: 1.8rem;
}

.features-image-section .item-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.features-image-section .item-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- FAQ Accordion --- */
.faq-section {
  padding: 5rem 0;
  background: var(--white);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  background: var(--white);
  padding: 1.2rem 1.5rem;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}
.accordion-button:not(.collapsed) {
  color: var(--accent);
  background: var(--light-bg);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent);
}
.accordion-button::after {
  background-size: 1.1rem;
  transition: transform 0.3s ease;
}

.accordion-body {
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Contact Form --- */
.contact-section {
  padding: 5rem 0;
  background: var(--light-bg);
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
}

.contact-form-wrapper .form-control {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}
.contact-form-wrapper .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.contact-form-wrapper textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.contact-form-wrapper .btn-submit {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-form-wrapper .btn-submit:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

/* --- Contact Info Cards --- */
.contact-info-section {
  padding: 5rem 0;
  background: var(--white);
}

.contact-info-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--light-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
}
.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-info-card .info-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

.contact-info-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* --- Map Section --- */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 0;
}

/* --- Footer (footer2 - dense block) --- */
.footer2 {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0;
}

.footer2 .footer-content {
  text-align: center;
}

.footer2 .footer-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 2;
}

.footer2 .footer-content a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer2 .footer-content a:hover {
  color: var(--accent);
}

/* --- Page Header (for sub pages) --- */
.page-header {
  padding: 7rem 0 3rem;
  background: var(--light-bg);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.page-header .breadcrumb-nav {
  font-size: 0.9rem;
  color: var(--text-light);
}
.page-header .breadcrumb-nav a {
  color: var(--accent);
}
.page-header .breadcrumb-nav span {
  margin: 0 0.5rem;
}

/* --- About Page --- */
.about-content-section {
  padding: 4rem 0;
}

.about-content-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-content-section p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Legal Pages --- */
.legal-content {
  padding: 2rem 0 4rem;
}

.legal-content .container h3.wp-block-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.legal-content .container h4.wp-block-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content .container p,
.legal-content .container li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content .container ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content .container a {
  color: #000;
  text-decoration: none;
}
.legal-content .container a:hover {
  color: #00008B;
  text-decoration: underline;
}

/* Cookie Tables */
.cookie-tables-white .wp-block-table table,
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  border-collapse: collapse !important;
}
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 8px !important;
  font-size: 0.9rem;
}
.cookie-tables-white .wp-block-table th {
  background: var(--light-bg);
  font-weight: 600;
}
.cookie-tables-white {
  margin: 2rem 0;
}
.cookie-tables-white .wp-block-table {
  overflow-x: auto;
}
.cookie-tables-white table {
  width: 100%;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-section .hero-content h1 {
    font-size: 2rem;
  }
  .hero-section .hero-image {
    margin-top: 2rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .split-section .split-content {
    padding: 1rem 0;
  }
  .split-section .split-image {
    margin-bottom: 2rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .navbar-nav {
    padding: 1rem 0;
  }
  .navbar-buttons {
    margin-left: 0 !important;
    margin-top: 0.75rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 6rem 0 3rem;
  }
  .hero-section .hero-content h1 {
    font-size: 1.75rem;
  }
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  .features-image-section .item-img {
    height: 180px;
  }
}

/* --- Cookie Consent Banner (cookies-alert-plugin pattern) --- */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 1.25rem 0;
  display: none;
}
.cc-banner.show {
  display: block;
}
.cc-banner .cc-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.cc-banner .cc-text {
  flex: 1;
  min-width: 250px;
  font-size: 0.9rem;
  color: #424a4d;
  line-height: 1.6;
}
.cc-banner .cc-text a {
  color: #424a4d;
  text-decoration: underline;
}
.cc-banner .cc-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cc-banner .cc-btn {
  padding: 0.55rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cc-banner .cc-btn-accept {
  background: var(--primary);
  color: var(--white);
}
.cc-banner .cc-btn-accept:hover {
  background: var(--dark);
}
.cc-banner .cc-btn-reject {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cc-banner .cc-btn-reject:hover {
  background: var(--light-bg);
}
