/*
Theme Name: Cirurgia Torácica do Vale
Theme URI: https://cirurgiatoracicadovale.com.br
Author: Sites&Cia
Version: 1.0
Text Domain: cirurgia-toracica-vale
*/

:root {
  --primary: #559cb4;
  --primary-dark: #004272;
  --primary-light: #E8F4FA;
  --accent: #0B7EBA;
  --text: #3C4959;
  --muted: #6c6c6c;
  --grey-dark:#2B2B2B;
  --bg-light: #f5f7fb;
  --white: #ffffff;
  --espaco: 78px;
  --fsize: 14px;
  --lheight: 1.25em;
  --radius: var(--fsize);
  --montserrat: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);;
}

html {overflow-x: hidden}
body {
  margin: 0;
  font-family: var(--montserrat);
  color: var(--text);
  font-size: var(--fsize);
  line-height: var(--lheight);
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}
h1,h2,h3,h4,h5,h6 {line-height: 1em; margin-top: 1.2em; margin-bottom: 0.5em;}
h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    margin: 0 0 16px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -3px;
}
h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-dark);
}
h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--fsize);
}
.container > :first-child, .page-content > :first-child {
  margin-top: 0;
}

/* HEADER */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, padding 0.2s ease;
  background: transparent;
  padding: var(--fsize) 0;
  background: linear-gradient(180deg, var(--primary-light) 0%, rgba(255, 255, 255, 0) 100%);
}

/*HOME*/
.home .header {background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 20%, rgba(255, 255, 255, 0) 100%);}
.home .specialists {background-color: #E9F3F8;}
.home .cards {background: transparent;}
.home .hero + .cards {margin-top: -2em;}
.home 
/*FIM HOME*/


/*SOBRE NÓS */
.home .footer {margin-top: var(--espaco);}
/*FIM SOBRE NÓS*/

/* SINGLE */
.post-hero-full {
    position: relative;
    padding-top: calc(var(--espaco) * 2);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-bottom: var(--espaco);
    margin-bottom: calc(var(--espaco)/2);
    text-align: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 66, 114, 0.75) 0%, rgba(111, 155, 178, 0.95) 100%);
}
.single-post .post-meta-hero, .single-post .post-title-hero {
    position: relative;
    z-index: 2;
    color: var(--white);
}
.post-meta-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1em;
    font-size: 0.95rem;
    justify-content: center;
}
.post-title-hero {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 auto;
    max-width: 80%;
}
.post-featured-image-normal {
    margin: var(--espaco) 0;
}
.post-featured-image-normal img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}
.post-author-box {
    background: var(--bg-light);
    padding: 2em 0;
    margin: 3em 0;
    border-radius: var(--radius);
}
.resp-tecnico {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1em;
    opacity: 0.8;
}
.author-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.author-info h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5em;
}
.author-info p {
    color: var(--text);
    margin-bottom: 1em;
}
.related-posts .blog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
}
.post-content {
    line-height: 1.7;
}
.post-content .wp-block-group.post-inline-container,
.post-content .post-inline-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: start;
    margin: 3em 0;
}
.post-content-wrapper {
    line-height: 1.7;
}
.post-content-wrapper::after {
    content: '';
    display: table;
    clear: both;
}
/*ENCERROU SINGLE */


/*PAGE */
.page-content {
    line-height: 1.7;
    margin: var(--espaco) 0;
}
.page-content::after {
    content: '';
    display: table;
    clear: both;
}
.pages-related-buttons {
    background: var(--primary-light);
    padding: var(--espaco) 0;
}
.related-buttons {
    display: flex;
    gap: 1.5em;
    flex-wrap: wrap;
}
.section-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2em;
}
.related-buttons .btn {
    flex:1 1 260px;
    width: 100%;
}
.pages-related-buttons + .footer {
    margin-top: 0;
}
.page-content a {
    font-weight: 500;
    color: var(--primary-dark);
}
.page-content a:hover {
  font-weight: 700;
  color: var(--primary);
}
/* ENCERROU PAGE */

/*SINGLE ESPECIALISTAS */

.especialidade {
    text-align: center;
    font-size: 2em;
    letter-spacing: 2px;
    margin-top: var(--fsize);
    color: var(--accent);
}
.especialista-single {display: flex;}
.especialista-single .page-content {width: 70%;}
.especialista-single .foto-especialista {width: 30%;}
.foto-especialista img {border-radius: var(--radius);}


/* encerrou SINGLE ESPECIALISTAS */


/*PAGINAÇÃO */
/* Container */
.blog-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* Wrapper do WP */
.blog-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Botões padrão */
.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;

  font-size: 14px;
  font-weight: 500;
  text-decoration: none;

  border-radius: 999px;
  border: 1px solid #e5e7eb;

  color: #333;
  background: #fff;

  transition: all 0.25s ease;
}

/* Hover */
.blog-pagination a.page-numbers:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Página atual */
.blog-pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

/* Prev / Next */
.blog-pagination .prev,
.blog-pagination .next {
  font-size: 18px;
  padding: 0 16px;
}

/* Desabilitado */
.blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

/*FIM PAGINAÇÃO*/

.header-inner {
  display: flex;
  gap: var(--fsize);
  align-items: center;
  justify-content: space-between;
  transition: padding 0.2s ease;
}
.header .custom-logo-link {min-width: var(--espaco);}

.header .custom-logo-link img {
  height: 141px;
  transition: height 0.2s ease;
  object-fit: contain;
}

.header.header-scrolled {
  position: sticky;
  padding: calc(var(--fsize) / 2) 0;
  background: linear-gradient(320deg, rgb(12 95 141 / 50%) 40%, rgb(255 255 255 / 75%) 95%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--bg-light);
}

.header.header-scrolled .custom-logo-link img {
  height: calc(var(--espaco) / 1.5);
}

.header .nav {
  background-color: var(--primary);
  border-radius: var(--radius);
  padding: 1em 1.6em;
  display: flex;
  gap: var(--fsize);
}
.header.header-scrolled .nav {background-color: transparent; padding: 0}

.header .nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--fsize);
  margin: 0;
  padding: 0;
  text-align: center;
}

.header .nav-list a {
  color: var(--white);
  font-weight: 400;
  padding: 1.2em 0;
  border-bottom: 1px solid transparent;
  display: inline-block;
}

.header .nav-list a:hover {
  font-weight: 500;
  border-bottom-color: var(--white);
}

.header .navlist li:hover .sub-menu {display: block;}
.header .sub-menu {display: none;}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: var(--lheight);
  cursor: pointer;
  color: var(--white);
  background-color: var(--primary);
  border-radius: var(--radius);
  padding: 0.1em 0.4em;
}
.header.header-scrolled .nav-toggle {background: transparent;}

.nav.nav-open .nav-list {
    flex-direction: column;
    width: 100%;
}

/* HERO */
.hero {
  position: relative;
  z-index: 0;
}
.hero-img {
  height: 100%;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: cover;
  align-content: center;
  padding: calc(var(--espaco) * 2.5) 0 calc(var(--espaco)*1.5);
}
.hero-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 10%, rgba(255, 255, 255, 0) 50%);
}

.hero-inner {inset-inline: 0; position: relative; z-index: 5;}
.hero-text {width: 46%;}
.hero h1 {margin-bottom: 0;}

.hero p {
  margin: 0 0 2.5em;
  color: var(--muted);
  font-size: 1rem;
}

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

/* BOTÕES UNIFICADOS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 1em 1.8em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-pill {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-pill:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-pill--solid {
  background: var(--accent);
  color: var(--white) !important;
}

.btn-pill--solid:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-link {
  border: none;
  padding: 0;
  background: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link::after {
  content: '›';
  font-size: 0.9em;
}

.btn-link:hover {
  color: var(--primary-dark);
}

/* CARDS */
.cards {
  position: relative;
  z-index: 10;
  margin-top: var(--espaco);
  padding: 0 calc(var(--fsize)*2);
  background-color: var(--primary);
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--fsize)*2);
  border-radius: var(--radius);
  background-color: var(--primary);
  padding: calc(var(--fsize)*3);
  text-align: center;
}
.cards .card-link {
  display: flex;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  flex: 1;
}
.cards .card-link:hover .card {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 10px 60px 20px rgb(12 34 46 / 30%);
}
.cards .card-link:hover .card-icon {
  background-color: var(--primary-dark);
  transform: rotate(5deg) scale(1.1);
}
.cards .card-link:hover .btn-link {
  color: var(--accent);
  letter-spacing: 3px;
}

.card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 0 40px 10px rgb(255 255 255 / 30%);
}
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent);
  fill: var(--white);
  padding: var(--fsize);
  margin: 0 auto;
}
.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}


.laimgfigure {
    float: right;
    margin: 1.5em 0 1.5em 1.5em;
    max-width: 50%;
    display: table;
}
.laimgfigure img {
    width: auto;
    height: auto;
    border-radius: var(--radius);
}
figcaption {margin-top: 0.4em; line-height: 1.2em; color: var(--primary-dark); font-size: 1.15em; display: table-caption; caption-side: bottom;}

/* ABOUT */
.about {
  padding: 32px 0 56px;
  background-image: url(img/o-que-e-cirurgia-toracica.png);
  background-position: calc(50% - 360px) calc(0% - 10px);
  background-repeat: no-repeat;
  margin-top: 0;
}

.about h2 {font-size: 2.5rem;}

.about-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.about-text {width: 45%;}

.about p {
  margin: 0 0 12px;
  color: var(--muted);
}

.about ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.about ul li {line-height: 1.5em;}

/* CARROSSEL */
.carousel  {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-full-width {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
}

.carousel-viewport {
  overflow: hidden;
  cursor:grab;
  padding: var(--espaco) 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black var(--espaco),
    black calc(100% - var(--espaco)),
    transparent
    );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black var(--espaco),
    black calc(100% - var(--espaco)),
    transparent
    );
}

.carousel-track {
  display: flex;
  gap: calc(var(--espaco) / 4);
  will-change:transform;
}

.carousel-card {
  flex:0 0 auto;
  box-sizing:border-box;
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .35s ease, opacity .35s ease;
  opacity:.5;
  transform:scale(.9);
}

.carousel-card.active{
opacity:1;
transform:scale(1);
}

.carousel-card.near{
opacity:.75;
transform:scale(.96);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}

.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ESPECIALISTAS E PACIENTES */

.specialists, .testimonials {text-align: center;}

.specialists > .container > p, .testimonials > .container > p {
    margin: 0 auto;
    color: var(--muted);
    max-width: 680px;
}

/* ESPECIALISTAS */

 
.specialists {padding-top: var(--espaco);}
/*
.specialist-card-link {
  display: flex;
  flex: 0 0 260px;
  height: 340px;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  opacity: 0.65;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
}
*/
.specialists .carousel-card {
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  height: 340px;
}
.specialists .carousel-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 calc(var(--espaco)/2) var(--espaco) rgba(11,126,186,0.35);
}
.specialist-card {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
/* nao ficou bom 
.specialist-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(255 255 255 / 52%) 0%, rgb(255 255 255 / 0%) 60%);
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  box-sizing: border-box;
  transform-origin: bottom;
}
.specialists .carousel-card:hover .specialist-card::before {transform: scaleY(0.8);}
*/
.specialist-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialist-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 1em;
  padding: var(--fsize);
  color: var(--white);
  background: rgba(111, 155, 178, 0.65);
  background: linear-gradient(-71deg,rgba(0, 75, 110, 0.37) 15%, rgba(0, 137, 202, 0.3) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.specialists .carousel-card:hover .specialist-info {backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);}

.specialist-info h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; }

.specialist-info p {
  margin: 0;
  font-size: 0.75rem;
}


/* TESTIMONIALS */

.testimonials {margin-top: var(--espaco);}
.testimonials .carousel-card {
  text-align: left;
  box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.06);
  padding: 24px 20px;
}

.testimonials .carousel-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.stars {
  margin: 0 0 8px;
  color: #f5a623;
  font-size: 0.9rem;
}

.testimonial p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.patient-info {display: flex; gap: 12px; align-items: center; margin-bottom: 12px;}
.patient-photo {width: 48px; height: 48px; border-radius: 50%; object-fit: cover;}

/* BLOG */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.blog > .container > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1em;
}

.blog-card {
  border-radius: var(--radius);
  border: 1px solid var(--primary-light);
  outline-color: var(--accent);
  padding: 1.2em;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.blog-card:hover {outline: 8px solid var(--primary-light); background: var(--primary-light);}

.blog-image {background-color: var(--primary); border-radius: var(--radius); margin-bottom: 0.5em;}
.blog-image img {width: 100%; height: 160px; border-radius: var(--radius); object-fit: cover; opacity: 0.6; filter: saturate(0.4) contrast(1.2);}
.blog-image img:hover {opacity: 1; filter: contrast(1);}

.blog-tag {
  font-size: 0.65em;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1em;
  display: inline-flex;
}
.blog-tag a {color: var(--primary);}
.blog-tag a:hover {color: var(--white); background-color: var(--primary-dark);}

.blog-card h3 {
  margin-top: 0.5em;
  font-size: 1.1rem;
}
.blog-card h3:hover {
  color: var(--accent);
}
.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1em;
}
.blog-card .btn {
  padding: 0.5em 1em;
  margin-top: 0.75em;
  align-self: flex-start;
}
/* FOOTER */
.footer {
  background: #3D7A99;
  color: var(--white);
  margin-top: var(--espaco);
}

.footer-top {
  display: flex;
  gap: calc(var(--espaco) / 2);
  padding: var(--espaco) var(--fsize);
  flex-wrap: wrap;
  justify-content: stretch;
}
.footer-top > div:first-child {
    display: flex;
    gap: calc(var(--espaco) / 2);
    flex: 1;
}
.footer-logo-area {
  display: flex;
  align-items: center;
  width: 132px;
}

.footer-menus {
  display: flex;
  gap: 3em;
  align-items: center;
  text-wrap-mode: nowrap;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li + li {
  margin-top: 0.4em;
}

.footer-nav a {
  color: var(--white);
}

.footer-nav a:hover {
  color: var(--primary-light);
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-contact {
  display: flex;
  text-align: right;
  gap: 1em;
  flex-direction: column;
  align-items: flex-end;
  font-size: 88%;
  flex: 1;
}

.footer-social {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

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

.footer-contact .phone {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer .resptecnico {
    font-size: 85%;
    opacity: .8;
}

.footer-contact p {
  margin: 0 0 6px;
}

.footer-bottom {
  background-color: #286586;
  padding: var(--fsize) 0;
  color: var(--primary-light);
  font-size: 80%;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: var(--fsize);
  align-items: center;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.25s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.social-icon:hover {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.social-icon--instagram:hover {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
  border-color:  radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
}

.social-icon--facebook:hover {
  background: #0056c7;
  border-color: #0056c7;
}

.social-icon--whatsapp:hover {
  background: #029237;
  border-color: #029237;
}

.sc{text-align:right;font-size:.8em;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;opacity:.7}
.sc span:first-child {opacity: .4;}
.sc a {color:var(--white);}
.sc a .developer {color:#EF7905}
.sc:hover{font-size:.9em;letter-spacing:0.2em;opacity:1}
.sc:hover .developer{opacity:1}
.sc:hover span:first-child {opacity: .6;}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
  .header .nav {font-size: 0.9em;}
  
  .nav-list {gap: 1em;}
  .hero-image {
    order: -1;
  }
  .header .nav-list a {padding: 0.4em 0;}
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-inline-container,
  .post-inline-wrapper {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  .related-posts .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    margin: -4em 1em 0 40%;
    align-items: center;
    box-shadow: 0 6px 30px 0px rgba(255, 255, 255, 0.5);
  }
  .nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header.header-scrolled .nav.nav-open {
    margin: 0;
    padding: var(--fsize);
    background-color: var(--primary);
    border-radius: 0;
    height: calc(100vh - var(--fsize) - calc(var(--espaco) / 1.5));
    width: 100vw;
  }
  .nav-toggle {
    display: block;
  }
  .carousel-card { flex: 0 0 calc(100% - 40px);}
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-top > div:first-child, .footer-contact {justify-content: center;}
  .footer-contact {text-align: center; align-items: center;}
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: calc(var(--fsize)/2);
  }
  .especialista-single { flex-direction:column; }
  .related-posts .blog-grid { grid-template-columns: 1fr; }
  .post-title-hero { max-width: 100%; }
  .laimgfigure {float: none; margin: 2em auto; max-width: 100%;}
}

@media (max-width: 580px) {
  .nav {margin-left: 1em;}
}

@media (max-width: 480px) {
  .hero {height: 100vh;}
  .hero-img::before {
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
  }
  .hero-text {width: 100%;}
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
