/*
Theme Name: Mangoni
Theme URI: https://mangoni.ind.br
Author: Mangoni Indústria de Uniformes
Description: Tema próprio da Mangoni Indústria de Uniformes — leve, responsivo e sem page builder.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: mangoni
*/

:root {
	--red: #a7292f;
	--red-dark: #821f24;
	--red-soft: #fbf2f2;
	--ink: #2b2b2b;
	--ink-2: #1d1d1f;
	--text: #555;
	--muted: #7d7d7d;
	--line: #e8e6e3;
	--bg: #fff;
	--bg-soft: #f7f6f4;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .07);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, .14);
	--wrap: 1200px;
	--font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
	--font-body: "Poppins", system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 16px/1.7 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 300; }
h2 strong { font-weight: 700; color: var(--red); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; background: #fff; padding: 10px 16px; top: 8px; left: 8px; }
.lead { font-size: 1.15rem; color: var(--ink); }
.lead strong { color: var(--red); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .85em 1.7em; border-radius: 4px; font: 600 .92rem var(--font-body); border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(167, 41, 47, .3); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--outline { border-color: var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white i { color: #25d366; font-size: 1.2em; }
.btn--white:hover { color: var(--red-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--red); }
.btn--whats { background: #25d366; color: #fff; }
.btn--whats:hover { background: #1ebe5b; color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Topo ---------- */
.topbar { background: var(--ink); color: #cfcfcf; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: #f3c4c6; }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__items i { color: #e0676c; margin-right: 6px; }
.topbar__social { display: flex; gap: 14px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(180%) blur(12px); border-bottom: 3px solid var(--red); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.site-logo img { height: 50px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav li { position: relative; }
.nav a { display: block; padding: .55em 1em; color: var(--ink); font: 500 1rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; border-radius: 4px; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_parent > a { color: var(--red); }
.nav > ul > li > a { position: relative; }
.nav > ul > .current-menu-item > a::before, .nav > ul > .current-menu-ancestor > a::before { content: ""; position: absolute; left: 1em; right: 1em; bottom: .15em; height: 2px; background: var(--red); }
.nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-top: 3px solid var(--red); border-radius: 0 0 8px 8px; box-shadow: var(--shadow-lg); padding: 8px; display: block; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { font-size: .95rem; text-transform: none; letter-spacing: 0; }
.nav .sub-menu a:hover { background: var(--red-soft); }
.nav .menu-item-has-children > a::after { content: "\f107"; font: 900 .7rem "Font Awesome 6 Free"; margin-left: 6px; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; padding: 6px; }

/* ---------- Slider (home) ---------- */
.slider { position: relative; background: #f2eee8; }
.slider__track { display: grid; grid-template: 100% / 100%; width: 100%; max-width: 1920px; margin-inline: auto; aspect-ratio: 1920 / 600; overflow: hidden; } /* slides 1920x600 */
.slider__slide { grid-area: 1 / 1; min-height: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider__slide img { width: 100%; height: 100%; object-fit: contain; }
.slider__nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: .2s; }
.slider__nav:hover { background: var(--red); color: #fff; }
.slider__nav--prev { left: 18px; }
.slider__nav--next { right: 18px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; }
.slider__dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); padding: 0; cursor: pointer; }
.slider__dots button.is-active { background: var(--red); border-color: var(--red); width: 28px; border-radius: 6px; }

/* ---------- Cabeçalhos de páginas internas ---------- */
.banner { background: var(--bg-soft); }
.banner img { width: 100%; max-width: 1920px; margin-inline: auto; aspect-ratio: 1920 / 600; object-fit: cover; } /* mesma altura dos slides da home */
.title-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.title-bar .wrap { padding: 28px 0 24px; }
.title-bar h1 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.title-bar .breadcrumbs { color: var(--muted); }
.title-bar .breadcrumbs a { color: var(--red); }
.title-bar .page-hero__lead { color: var(--text); }
.page-hero { position: relative; color: #fff; background: var(--ink) center/cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 29, 31, .9), rgba(29, 29, 31, .55) 60%, rgba(167, 41, 47, .55)); }
.page-hero .wrap { position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 80px); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero__lead { color: #e2e2e2; font-size: 1.08rem; max-width: 680px; margin: 12px 0 0; }
.breadcrumbs { font-size: .85rem; color: #bdbdbd; margin-bottom: 10px; }
.breadcrumbs a { color: #fff; }

/* ---------- Seções ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--tight { padding-block: clamp(30px, 5vw, 60px); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink-2); color: #bdbdbd; }
.section--dark h2 { color: #fff; }
.section--dark h2 strong { color: #e0676c; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; font: 600 .78rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section--dark .eyebrow { color: #e0676c; }

/* Cards das linhas */
.linhas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.linha-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.linha-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.linha-card__img { background: linear-gradient(160deg, #fff, var(--bg-soft)); aspect-ratio: 280 / 250; overflow: hidden; }
.linha-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.linha-card:hover .linha-card__img img { transform: scale(1.05); }
.linha-card__body { padding: 18px 20px 22px; border-top: 3px solid var(--red); flex: 1; display: flex; flex-direction: column; }
.linha-card h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 8px; }
.linha-card h3 a { color: var(--ink); }
.linha-card h3 a::after { content: ""; position: absolute; inset: 0; }
.linha-card p { font-size: .88rem; color: var(--muted); flex: 1; margin-bottom: 12px; }
.card__more { font: 600 .85rem var(--font-body); color: var(--red); }

/* Split (texto + imagem) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 0; }
.split__media img { border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist i { color: var(--red); margin-top: 6px; }

/* Camisetas Express (home) */
.express__title { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; }
.express__title span { font-weight: 300; }
.express__title strong { display: inline-block; }
.express__media { position: relative; max-width: 480px; margin-inline: auto; }
.express__badge { position: absolute; right: 0; bottom: 8%; width: 140px; height: 140px; border-radius: 50%; border: 3px solid var(--red); background: var(--red-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow); }
.express__badge small { font: 700 .7rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.express__badge strong { font: 700 3.2rem/1 var(--font-head); color: var(--ink); }
.mini-features { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-features li { display: flex; gap: 12px; align-items: center; font-size: .85rem; color: var(--muted); }
.mini-features strong { display: block; font: 600 1rem var(--font-head); color: var(--ink); text-transform: uppercase; }
.mini-features i { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }

/* Conteúdo das linhas (vindo dos artigos Joomla) */
.chips { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1.5px solid var(--red); color: var(--red); border-radius: 30px; padding: 5px 16px; font-weight: 600; font-size: .85rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 0 0 20px; }
.feature { background: var(--bg-soft); border-radius: var(--radius); padding: 24px 22px; display: flex; gap: 14px; align-items: flex-start; }
.feature i { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.feature h3 { font-size: 1.05rem; text-transform: uppercase; margin: 2px 0 4px; }
.feature p { font-size: .88rem; margin: 0; color: var(--muted); }
.entry .intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-bottom: 30px; }
.entry .intro p { text-align: justify; }
.entry h2.sub { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.entry .carrossel-bloco { margin: 40px 0 0; padding: 26px 0; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; } /* boxed: na largura do conteúdo */

/* Camisetas Express (página) */
.express-page { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.express-page .express__media { max-width: 440px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.pillars div { border-left: 3px solid var(--red); padding: 0 20px; }
.pillars h3 { font-size: 1.2rem; margin-bottom: 4px; }
.pillars p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Carrossel contínuo de produtos */
.mg-carrossel { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mg-carrossel__track { display: flex; gap: 26px; width: max-content; animation: mg-marquee 50s linear infinite; }
.mg-carrossel:hover .mg-carrossel__track { animation-play-state: paused; }
.mg-carrossel figure { margin: 0; width: 220px; aspect-ratio: 3 / 4; background: #fff; border-radius: 12px; display: grid; place-items: center; padding: 14px; }
.mg-carrossel img { max-height: 100%; width: auto; object-fit: contain; }
@keyframes mg-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mg-carrossel__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .mg-carrossel figure[aria-hidden] { display: none; } }

/* CTA */
.cta { background: linear-gradient(120deg, var(--red-dark), var(--red)); color: #fff; border-radius: 12px; padding: clamp(30px, 5vw, 50px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .07); right: -90px; top: -150px; }
.cta h2 { color: #fff; margin: 0 0 6px; font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta p { margin: 0; color: #f3dadb; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Conteúdo ---------- */
.content-area { padding: clamp(46px, 6vw, 80px) 0; }
.page-contato .content-area { padding-bottom: clamp(46px, 6vw, 80px); }
.entry { max-width: 860px; margin-inline: auto; }
.entry--wide { max-width: var(--wrap); }
.entry > p { text-align: justify; }
.entry img { border-radius: 12px; }
.entry .figura { margin: 30px 0; }
.entry .figura img { width: 100%; box-shadow: var(--shadow); }

/* Formulários */
input[type=text], input[type=email], input[type=tel], input[type=search], textarea, select { width: 100%; padding: .8em 1em; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .95rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(167, 41, 47, .12); }
input[type=submit], .wpcf7-submit { background: var(--red); color: #fff; border: 0; padding: .95em 2em; border-radius: 4px; font: 600 .95rem var(--font-body); cursor: pointer; }
input[type=submit]:hover, .wpcf7-submit:hover { background: var(--red-dark); }
.wpcf7 label { display: block; font: 500 .9rem var(--font-body); color: var(--ink); margin-bottom: 16px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 label input, .wpcf7 label textarea, .wpcf7 label select { margin-top: 6px; }
.wpcf7-acceptance { font-size: .85rem; display: block; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: start; }
.contact-info { background: var(--ink-2); color: #c9c9c9; border-radius: 14px; padding: 36px; }
.contact-info h3 { color: #fff; font-size: 1.5rem; }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 16px; align-items: center; }
.contact-info li i { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.contact-info a { color: #fff; }
.contact-info small { display: block; color: #8e8e8e; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.5rem; }
/* Mapa de ponta a ponta: 100% da largura, até 1920px */
.map { width: 100%; max-width: 1920px; margin-inline: auto; overflow: hidden; }
.section--map { padding-bottom: 0; }
.map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink-2); color: #9d9d9d; padding: 70px 0 0; font-size: .92rem; border-top: 4px solid var(--red); }
.site-footer h4 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.site-footer a { color: #d0d0d0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact i { color: #e0676c; width: 18px; }
.footer-logo img { height: 46px; width: auto; margin-bottom: 18px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #2d2d30; color: #fff; transition: .2s; }
.social a:hover { background: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid #2d2d30; margin-top: 50px; padding: 22px 0; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* WhatsApp flutuante */
.whats-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); animation: mg-pulse 2.4s infinite; }
.whats-float:hover { color: #fff; transform: scale(1.06); }
@keyframes mg-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .whats-float { animation: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.topbar__items a[href^="mailto"] { display: none; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-header { backdrop-filter: none; background: #fff; }
	.header-cta .btn { display: none; }
	.site-header .wrap { min-height: 72px; }
	.site-logo img { height: 42px; }
	.nav { position: fixed; inset: 75px 0 0 0; background: #fff; padding: 20px 16px; transform: translateX(100%); transition: transform .3s, visibility .3s; overflow-y: auto; visibility: hidden; }
	.nav.is-open { visibility: visible; transform: none; }
	.nav ul { flex-direction: column; align-items: stretch; }
	.nav a { font-size: 1.1rem; padding: .8em 1em; }
	.nav > ul > .current-menu-item > a::before, .nav > ul > .current-menu-ancestor > a::before { display: none; }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.split, .contact-grid, .entry .intro, .express-page { grid-template-columns: 1fr; }
	.split--rev > :first-child { order: 1; }
	.topbar__items span { display: none; }
	.slider__nav { display: none; }
}
@media (max-width: 600px) {
	body { font-size: 15px; }
	.footer-grid, .form-row { grid-template-columns: 1fr; }
	.topbar { display: none; }
	.contact-info, .contact-form { padding: 24px; }
	.slider__track, .banner img { aspect-ratio: 12 / 5; } /* um pouco mais alto no celular; corta só as laterais */
	.slider__slide img { object-fit: cover; }
	.slider__dots { position: static; padding: 10px 0; background: var(--bg-soft); } /* abaixo da imagem: não cobre o texto embutido */
	.slider__dots button { border-color: #ccc; }
	.mini-features { grid-template-columns: 1fr; }
	.express__badge { width: 110px; height: 110px; }
	.express__badge strong { font-size: 2.4rem; }
	.mg-carrossel figure { width: 160px; }
	.map iframe { height: 300px; }
	.linhas { grid-template-columns: 1fr 1fr; gap: 14px; }
	.linha-card__body { padding: 14px; }
	.linha-card h3 { font-size: 1.05rem; }
	.linha-card p { display: none; }
}
