/*
Theme Name: Lendrise Marketplace SRL
Theme URI: https://www.lendrise.com
Author: T.Eduard
Description: Custom Lendrise theme - may not work correctly yet.
Version: 1.0
Text Domain: lendrise
*/

:root {
  --lr-blue: #00406e;
  --lr-green: #75c145;
  --bg-light: #f5f7fa;
  --text-main: #4a4a4a;
  --text-light: #ffffff;
  --border-light: #e1e5e9;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--lr-blue);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--lr-blue);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--lr-green);
  border-color: var(--lr-green);
}

.nav-login {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--lr-blue);
  color: var(--lr-blue) !important;
  font-size: 0.9rem;
}

.nav-login:hover {
  border-color: var(--lr-green);
  color: var(--lr-green) !important;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
  padding: 56px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--lr-blue);
  margin-bottom: 16px;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.hero-secondary {
  font-size: 0.95rem;
  color: #606770;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  background: var(--lr-green);
  color: var(--text-light);
  border: none;
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-secondary {
  background: transparent;
  color: var(--lr-blue);
  border: 1px solid var(--lr-blue);
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--lr-green);
  color: var(--lr-green);
}

.hero-image {
  background: radial-gradient(circle at top left, rgba(117,193,69,0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0,64,110,0.16), transparent 55%);
  border-radius: 18px;
  border: 1px solid var(--border-light);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-image-inner {
  border-radius: 12px;
  border: 1px dashed rgba(0,64,110,0.25);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #445;
}

.hero-image-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--lr-blue);
}

.hero-image-line {
  width: 80px;
  height: 3px;
  border-radius: 999px;
  margin: 10px auto 14px;
  background: linear-gradient(90deg, var(--lr-green), var(--lr-blue));
}

/* Sections */

section {
  padding: 48px 0;
}

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

.section-title {
  font-size: 1.6rem;
  color: var(--lr-blue);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 0.98rem;
  color: #555;
  max-width: 780px;
  margin-bottom: 24px;
}

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

.card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  padding: 18px 18px 20px;
  font-size: 0.94rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--lr-blue);
}

.card-pill {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(0,64,110,0.06);
  color: var(--lr-blue);
  margin-bottom: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.step {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  padding: 16px 16px 18px;
  font-size: 0.92rem;
  position: relative;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--lr-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--lr-blue);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

.list-check {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
}

.list-check li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.list-check li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lr-green);
  font-size: 1.2rem;
  line-height: 1;
}

.marketplace-box {
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed var(--border-light);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}

.marketplace-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lr-blue);
  opacity: 0.7;
}

footer {
  background: var(--lr-blue);
  color: var(--text-light);
  padding: 24px 0;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-links a {
  margin-right: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--lr-green);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3, .steps, .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
  
  /* ---- MAIN NAVIGATION DROPDOWNS ---- */

/* Position submenu container */
.nav-links ul li {
  position: relative;
}

/* Hide submenus by default */
.nav-links ul ul {
  position: absolute;
  top: 100%; /* place directly under parent */
  left: 0;
  background: #ffffff;
  padding: 10px 0;
  min-width: 180px;

  border: 1px solid var(--border-light);
  border-radius: 8px;

  display: none; /* hide initially */
  flex-direction: column; /* stack vertically */
  gap: 0;
  list-style: none;
  z-index: 1000;
}

/* Show submenu on hover */
.nav-links ul li:hover > ul {
  display: flex;
}

/* Submenu items */
.nav-links ul ul li {
  width: 100%;
  padding: 0;
}

/* Submenu links */
.nav-links ul ul li a {
  padding: 8px 14px;
  width: 100%;
  display: block;
  font-size: 0.9rem;
  color: var(--lr-blue);
  border-bottom: none !important;
  transition: background 0.2s, color 0.2s;
}

/* Hover effect for submenu items */
.nav-links ul ul li a:hover {
  background: var(--bg-light);
  color: var(--lr-green);
}

/* Hide bullets everywhere */
.nav-links ul,
.nav-links ul li,
.nav-links ul ul {
  list-style: none !important;
}
/* Position 3rd-level menus */
.nav-links ul ul ul {
  left: 100%;
  top: 0;
}

.footer-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 14px;
}

.footer-links li {
  list-style: none;
}

.footer-links li a {
  color: rgba(255,255,255,0.85);
}

.footer-links li a:hover {
  color: var(--lr-green);
}


/* Fix WordPress menu structure */
.nav-links ul {
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none; /* removes bullets */
}

.nav-links li {
  display: flex;
  align-items: center;
}

/* Make links behave like your original design */
.nav-links li a {
  color: var(--lr-blue);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.nav-links li a:hover {
  color: var(--lr-green);
  border-color: var(--lr-green);
}

/* PAGE HERO */
.page-hero {
  padding: 60px 0 40px;
  text-align: left;
}

.page-title {
  font-size: 2.2rem;
  color: var(--lr-blue);
  margin: 0;
}

/* PAGE CONTENT WRAPPER */
.page-content {
  padding: 40px 0 60px;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
  color: var(--lr-blue);
  margin: 32px 0 12px;
  font-weight: 600;
}

.content-wrapper p {
  margin-bottom: 18px;
}

.content-wrapper ul,
.content-wrapper ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.content-wrapper li {
  margin-bottom: 8px;
}

/* IMAGES INSIDE CONTENT */
.content-wrapper img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

/* BUTTON STYLES INSIDE CONTENT (OPTIONAL MATCHING THEME) */
.content-wrapper a.button,
.content-wrapper .wp-block-button__link {
  background: var(--lr-green);
  padding: 10px 20px;
  border-radius: 20px;
  color: white !important;
  text-decoration: none;
  font-weight: 600;
}

.content-wrapper .wp-block-button__link:hover {
  filter: brightness(0.9);
}


/* BLOG LISTING */
.blog-list {
  padding: 50px 0 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-no-thumb {
  width: 100%;
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.9rem;
}

.blog-card-content {
  padding: 18px 20px 24px;
}

.blog-card-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.blog-card-title a {
  color: var(--lr-blue);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--lr-green);
}

.blog-card-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 14px;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 18px;
}

/* PAGINATION */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  color: var(--lr-blue);
  text-decoration: none;
}

.pagination .current {
  background: var(--lr-blue);
  color: white;
  border-color: var(--lr-blue);
}

/* SINGLE POST */
.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-top: 6px;
}

.post-featured-image img {
  border-radius: 12px;
  margin: 20px 0 30px;
  width: 100%;
}

.post-footer-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.post-footer-nav a {
  color: var(--lr-blue);
  font-weight: 600;
}

.post-footer-nav a:hover {
  color: var(--lr-green);
}

/* hide footer */
.footer-links,
.footer-links ul {
    display: none !important;
}


.onepress-menu .delogare-recolorata > a{
	color:#ff0000;
}
.entry-title {
	color:#00406e;
}

@media(min-width: 750px){
	.hero-slideshow-wrapper{
		width: 100%;
		max-width: 1200px;
		margin: 0 auto;
	}
	.hero-slideshow-normal .container{
		padding-top: 12% !important;
		padding-bottom: 12% !important;
	}
}

/* CSS petition stuff */
.petition-container {
    background-color: #00406e;
    border-radius: 10px;
}
.petition-button {
    background-color: #00406e !important;
    color: #FFFFFF !important;
    border-radius: 5px;
    padding: 10px 20px;
}

.petition-title {
    color: #006400;
    font-size: 24px;
    font-weight: bold;
}
.petition-description {
    color: #333333;
}

.myaccount-menu-toggle {
    display: none;
    background-color: #75c145;
    color: black;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
    border-radius: 4px;
}

.woocommerce-MyAccount-navigation {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

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

    .woocommerce-MyAccount-navigation {
        max-height: 0;
    }

    .woocommerce-MyAccount-navigation.open {
        max-height: 1000px;
    }
}

/* MOBILE MENU TOGGLE (HAMBURGER) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  background: var(--lr-blue);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* MOBILE STATES */
@media (max-width: 720px) {
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide desktop menu by default */
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    right: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 16px 0;
    z-index: 999;
  }

  .nav-links ul {
    flex-direction: column !important;
    gap: 0;
    padding: 0;
  }

  .nav-links li {
    padding: 8px 20px;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: none;
  }

  /* When menu is open */
  .nav-links.open {
    display: flex !important;
  }

  /* Animate hamburger into an X */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
