/*
Theme Name: Ambiente
Theme URI: https://weblish.io
Author: Weblish
Author URI: https://weblish.io
Description: Ambiente - A modern blogging WordPress theme converted from Webflow. Features elegant animations, responsive layouts, and professional design for bloggers and content creators.
Version: 1779201641
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ambiente
Tags: one-column, two-columns, blog, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready

Ambiente is a modern WordPress blogging theme featuring elegant animations, responsive layouts, and professional design for bloggers and content creators.
*/

:root {
  --wl-primary: #1d4ed8;
  --wl-primary-hover: #1e40af;
  --wl-secondary: #0f172a;
  --wl-secondary-hover: #020617;
  --wl-accent: #f59e0b;
  --wl-accent-hover: #d97706;
  --wl-surface: #ffffff;
  --wl-background: #f8fafc;
  --wl-text: #0f172a;
  --wl-muted-text: #64748b;
  --wl-border: #e2e8f0;
  --wl-pill-bg: #dbeafe;
  --wl-pill-text: #1e40af;
  --wl-highlight-bg: #eff6ff;
  --wl-highlight-text: #1d4ed8;
  --wl-focus-ring: color-mix(in srgb, var(--wl-primary) 35%, transparent);
  --weblish-sticky-offset: 96px;
}

body {
  background: var(--wl-background);
  color: var(--wl-text);
}

a {
  color: var(--wl-primary);
}

.navbar,
.section_blog-hero,
.section_contact,
.section_content,
.section_overview {
  color: var(--wl-text);
}

.text-color-black-50,
.text-color-secondary {
  color: var(--wl-muted-text) !important;
}

.main_tag {
  background: color-mix(in srgb, var(--wl-primary) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--wl-primary) 40%, transparent);
}

.main_point,
.point {
  color: var(--wl-accent);
}

.tag {
  background: var(--wl-pill-bg);
  color: var(--wl-pill-text);
  border-color: transparent;
}

.button,
.button.w-button,
.button.is-green {
  background: var(--wl-primary);
  color: var(--wl-surface);
  border: 1px solid var(--wl-primary);
}

.button:hover,
.button.w-button:hover,
.button.is-green:hover {
  background: var(--wl-primary-hover);
  border-color: var(--wl-primary-hover);
}

.button.is-outline {
  background: transparent;
  color: var(--wl-text);
  border: 1px solid var(--wl-border);
}

.button.is-outline:hover {
  background: var(--wl-highlight-bg);
  color: var(--wl-highlight-text);
}

.button.is-cta {
  background: var(--wl-surface);
  color: var(--wl-primary);
  border: 1px solid color-mix(in srgb, var(--wl-surface) 70%, var(--wl-primary));
}

.button.is-cta:hover {
  background: var(--wl-highlight-bg);
  color: var(--wl-primary-hover);
}

.button-icon,
.nav_links,
.link {
  color: var(--wl-text);
}

.w--current {
  color: var(--wl-primary) !important;
}

.nav-button_line,
.footer-contact-item a,
.weblish-contact-item a {
  color: inherit;
}

.form_input {
  background: var(--wl-surface);
  color: var(--wl-text);
  border: 1px solid var(--wl-border);
}

.form_input:focus {
  outline: 2px solid var(--wl-focus-ring);
  outline-offset: 1px;
  border-color: var(--wl-primary);
}

.cms_blog-no-posts,
.weblish-empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--wl-muted-text);
}

.cms_blog-link .cms_blog-content {
  background-color: color-mix(in srgb, var(--wl-primary) 6%, var(--wl-surface));
  transition: background-color 0.2s ease;
}

.cms_blog-link:hover .cms_blog-content,
.cms_blog-link:focus-visible .cms_blog-content {
  background-color: color-mix(in srgb, var(--wl-primary) 14%, var(--wl-surface));
}

.weblish-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.weblish-cta-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wl-primary) 30%, var(--wl-border));
  background-color: var(--wl-primary);
  background-image: none;
  color: var(--wl-surface);
}

.cta_card.weblish-cta-banner {
  background-image: none;
}

.weblish-cta-banner p {
  color: var(--wl-surface) !important;
}

.weblish-cta-banner .cta_card-content,
.weblish-cta-banner .cta_card-content div,
.weblish-cta-banner .cta_card-content .text-xl,
.weblish-cta-banner .cta_card-content .text-6xl {
  color: var(--wl-surface) !important;
}

.weblish-cta-banner .button,
.weblish-cta-banner .button.w-button,
.weblish-cta-banner .button.is-cta {
  background: var(--wl-surface);
  color: var(--wl-secondary);
  border: 1px solid color-mix(in srgb, var(--wl-secondary) 35%, var(--wl-surface));
  box-shadow: 0 10px 20px color-mix(in srgb, var(--wl-secondary) 30%, transparent);
}

.weblish-cta-banner .button:hover,
.weblish-cta-banner .button.w-button:hover,
.weblish-cta-banner .button.is-cta:hover,
.weblish-cta-banner .button:focus-visible,
.weblish-cta-banner .button.w-button:focus-visible,
.weblish-cta-banner .button.is-cta:focus-visible {
  background: var(--wl-highlight-bg);
  color: var(--wl-secondary-hover);
  border-color: var(--wl-secondary-hover);
}

.weblish-cta-banner .cta_card-bg {
  opacity: 1;
  background-image: none;
  background-color: color-mix(in srgb, var(--wl-secondary) 24%, transparent);
}

.button-icon {
  color: var(--wl-surface) !important;
}

.button-icon svg {
  color: var(--wl-surface) !important;
}

.weblish-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.weblish-contact-sidebar {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.weblish-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-contact-list,
.footer-social-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer_left .logo {
  max-height: 90px;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);
}

.footer {
  background: var(--wl-secondary);
  color: var(--wl-surface);
}

.footer .footer_content,
.footer .footer_left,
.footer .footer_bottom,
.footer .footer_bottom div,
.footer .footer-contact-item,
.footer .text-base {
  color: color-mix(in srgb, var(--wl-surface) 94%, transparent);
}

.footer .footer-contact-item a {
  color: var(--wl-surface);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--wl-surface) 60%, transparent);
  text-underline-offset: 0.2em;
}

.footer .footer-contact-item a:hover {
  color: var(--wl-primary);
  text-decoration-color: currentColor;
}

.footer .link {
  color: color-mix(in srgb, var(--wl-surface) 90%, transparent);
}

.footer .link:hover,
.footer .link:focus-visible {
  color: var(--wl-primary-hover);
}

.footer .link.w--current,
.footer .w--current {
  color: var(--wl-primary) !important;
}

.footer .footer-social-links .tag {
  background: color-mix(in srgb, var(--wl-surface) 14%, transparent);
  color: var(--wl-surface);
  border: 1px solid color-mix(in srgb, var(--wl-surface) 32%, transparent);
}

.footer .footer-social-links .tag:hover,
.footer .footer-social-links .tag:focus-visible {
  background: var(--wl-primary);
  color: var(--wl-surface);
  border-color: var(--wl-primary);
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  overflow: visible;
}

.blog-detail-content {
  min-width: 0;
  overflow: visible;
}

.single-post .overview_content {
  grid-template-columns: minmax(0, 1fr);
  display: block;
  width: 100%;
  max-width: 100%;
}

.single-post .overview_content .text-rich-text {
  width: 100%;
  max-width: 100%;
}

.blog-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
  min-width: 0;
  overflow: visible;
}

.blog-sidebar-meta {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-author-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.blog-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--wl-border);
}

.blog-author-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-meta-list {
  display: grid;
  gap: 0.6rem;
}

.blog-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--wl-border);
  padding-top: 0.6rem;
}

.blog-meta-label {
  color: var(--wl-muted-text);
}

.blog-meta-key {
  color: var(--wl-muted-text);
  font-size: 0.8125rem;
}

.blog-meta-value {
  color: var(--wl-text);
  font-weight: 600;
  text-align: right;
}

.blog-sidebar-sticky {
  position: sticky;
  top: var(--weblish-sticky-offset, 96px);
  z-index: 1;
  align-self: start;
}

.blog-sticky-cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--wl-primary) 25%, var(--wl-border));
  background: linear-gradient(145deg, color-mix(in srgb, var(--wl-primary) 84%, transparent), color-mix(in srgb, var(--wl-secondary) 86%, transparent));
  background-size: cover;
  background-position: center;
}

.blog-end-cta-banner {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--wl-primary) 35%, var(--wl-border));
  background: linear-gradient(120deg, color-mix(in srgb, var(--wl-primary) 84%, transparent), color-mix(in srgb, var(--wl-accent) 78%, transparent));
  background-size: cover;
  background-position: center;
}

.blog-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, color-mix(in srgb, var(--wl-secondary) 68%, transparent), transparent);
}

.blog-cta-content {
  position: relative;
  color: var(--wl-surface);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-end-cta-content {
  position: relative;
  color: var(--wl-surface);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-end-cta-content p,
.blog-cta-content p {
  margin: 0;
}

.blog-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.section_blog-nav {
  padding-top: 2rem;
}

::selection {
  background: var(--wl-highlight-bg);
  color: var(--wl-highlight-text);
}

@media (max-width: 900px) {
  .blog-detail-layout {
    display: block;
  }

  .blog-sidebar-sticky {
    position: static;
  }

  .blog-detail-sidebar {
    margin-top: 1.5rem;
  }

  .blog-end-cta-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .weblish-contact-layout {
    grid-template-columns: 1fr;
  }
}
