/* MAXISPUMA V3.3 | Refinamento sobre a V3 — preserva catálogo e ícones aprovados.
   Atualiza somente a abertura, marca e correções de alinhamento/responsividade. */
:root{
  --v3-blue:#143e7b;
  --v3-ink:#112e5b;
  --v3-red:#e70b37;
}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
#inicio.v33-hero{
  color:#112e5b;
  background:linear-gradient(125deg,#ffffff 0%,#fbfcfe 48%,#f0f4fa 100%);
  padding:60px 0 22px;
  min-height:0;
  isolation:isolate;
  overflow:hidden;
}
#inicio .v33-hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, .91fr) minmax(0, 1.32fr) minmax(0, .88fr);
  gap:clamp(18px,2.2vw,34px);
  align-items:center;
  min-height:480px;
}
#inicio .v33-hero-copy{
  position:relative;z-index:1;
  min-width:0;
  padding:18px 0 28px;
}
.v33-hero-kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-size:11px;letter-spacing:.17em; font-weight:850;
  color:#173d78;white-space:nowrap;
}
.v33-hero-kicker i{display:block;height:3px;width:29px;background:var(--v3-red)}
#inicio .v33-hero-copy h1{
  margin:20px 0 15px;
  font-size:clamp(47px,4.45vw,80px);
  line-height:.99;
  color:#11346c;
  letter-spacing:-.07em;
  white-space:nowrap;
}
.v33-dot{color:var(--v3-red)}
.v33-hero-lead{
  font-size:clamp(21px,1.85vw,33px);
  line-height:1.2;
  letter-spacing:-.039em;
  font-weight:450;
  margin:0 0 18px;
}
.v33-hero-lead strong{color:#dd1238;font-weight:750}
.v33-hero-description{
  max-width:375px;
  margin:0 0 26px;
  font-size:14px;
  line-height:1.72;
  color:#4a5a75;
}
.v33-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.v33-hero-actions .button{
  font-size:12px;padding:15px 18px;border-radius:999px;min-height:45px;
  white-space:nowrap;
}
.v33-hero-actions .button-red{background:var(--v3-red)}
.v33-text-link{color:#183f7d;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.v33-text-link:hover{text-decoration:underline}
.v33-hero-photo{
  position:relative;
  width:100%;
  margin:0;
  min-width:0;
  padding:0;
  overflow:hidden;
  border-radius:23px;
  border:1px solid #e3e9f1;
  background:#fafafa;
  box-shadow:0 20px 50px rgba(26,54,95,.08);
}
.v33-hero-photo img{
  display:block;
  width:100%;height:auto;
  aspect-ratio:1/1;
  object-fit:contain;
}
.v33-hero-photo figcaption{
  position:absolute;left:12px;bottom:12px;
  color:#1c3966;font-size:9px;
  letter-spacing:.045em;
  background:rgba(255,255,255,.93);
  padding:6px 10px;border-radius:10px;
}
.v33-hero-structure{
  min-width:0;
  align-self:center;
  background:rgba(255,255,255,.66);
  border:1px solid #dfe7f1;
  border-radius:22px;
  padding:15px 13px 12px;
  box-shadow:0 10px 32px rgba(29,57,92,.045);
}
.v33-3d-heading{display:flex;flex-direction:column;gap:4px;padding:0 4px 7px}
.v33-3d-heading span{font-size:9px;color:#d7193c;letter-spacing:.115em;font-weight:900}
.v33-3d-heading strong{font-size:18px;line-height:1.2;color:#15396d;letter-spacing:-.03em}
.v33-structure-view{
  height:270px;
  min-height:260px;
  width:100%;
  position:relative;
  touch-action:pan-y;
  cursor:grab;
}
.v33-structure-view svg{display:none}
.v33-3d-controls{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
.v33-3d-controls button{
  cursor:pointer;
  border:1px solid #ccd8e7;
  color:#183b72;
  background:#fff;
  padding:9px 11px;
  font-size:10px;font-weight:850;
  border-radius:999px;
  min-height:36px;
  transition:background .2s,border-color .2s;
}
.v33-3d-controls button:hover,.v33-3d-controls button:focus-visible{
  border-color:#194480;
  background:#f0f5fb;
}
.v33-carbon-callout{
  display:flex;gap:9px;align-items:center;
  background:#f3f7fb;border:1px solid #e3e9f2;
  border-radius:12px;padding:10px;margin-top:11px;
}
.v33-carbon-callout strong{font-size:11px;color:#163b75;display:block;line-height:1.3}
.v33-carbon-callout small{font-size:9px;color:#67758c;display:block;margin-top:3px;line-height:1.4}
.v33-thread-symbol{
  flex:0 0 37px;height:37px;width:37px;
  display:flex;justify-content:space-evenly;align-items:center;
  border-radius:50%;border:1px solid #c7d1de;
  background:repeating-linear-gradient(0deg,#f8fafc 0px,#f8fafc 3px,#d8dfe7 4px,#fbfcfe 7px);
  overflow:hidden;
}
.v33-thread-symbol span{display:block;background:#42546c;width:2px;height:33px;transform:rotate(-20deg);opacity:.85}
.v33-hero-structure .hero3d-note{
  margin:9px 4px 0;
  font-size:9px;color:#72819a;line-height:1.35;
}
#inicio .v33-hero-bottom{
  margin-top:30px;
  padding:18px 0 8px;
  border-top:1px solid #dfe6f0;
  display:flex;justify-content:space-between;
  align-items:center;flex-wrap:wrap;gap:12px;
  font-size:11px;color:#63748e;
}
.v33-hero-bottom strong{color:#143b70;font-weight:850}
.v33-hero-bottom a{color:#183e78;text-decoration:none;font-weight:800}
.v33-hero-bottom a:hover{text-decoration:underline}
/* Azul e branco passam a dominar também as seções institucionais escuras. */
#por-dentro.inside-section{background:radial-gradient(circle at 45% 45%,#194478 0%,#0e2b56 57%,#09203f 100%)}
#videos.videos-section{background:linear-gradient(155deg,#0e2953,#0b2144)}
#revenda.reseller-section{background:linear-gradient(145deg,#112f61,#091d3f)}
#contato.closing-section{background:linear-gradient(145deg,#0d2d5b,#071c3c)}
#videos .video-card{background:#1c395f}
#por-dentro .mattress-panel,#por-dentro .layer-info{border-color:rgba(255,255,255,.21)}
/* Correção da seção Fábrica: nunca permitir imagens fora da grade e de proporção. */
#fabrica .factory-grid{
  display:grid;
  grid-template-columns:minmax(255px,.68fr) minmax(0,1.32fr);
  align-items:stretch;
  gap:24px;
}
#fabrica .factory-steps{min-width:0}
#fabrica .factory-showcase{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,.8fr);
  gap:10px;
  width:100%;
  min-width:0;
  height:485px;
  max-width:100%;
  overflow:hidden;
  border-radius:22px;
  isolation:isolate;
}
#fabrica .factory-photo-main{
  position:relative;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;border-radius:17px;
}
#fabrica .factory-photo-main>img,#fabrica .factory-side img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;
  transform:none;max-width:100%;
}
#fabrica .factory-side{
  display:grid;
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:10px;
  min-width:0;min-height:0;
  width:100%;height:100%;
  overflow:hidden;
}
#fabrica .factory-side-img{
  min-width:0;min-height:0;
  width:100%;height:100%;
  border-radius:17px;overflow:hidden;
  position:relative;
}
#fabrica .factory-side-img img{max-height:none;max-width:none}
/* Catálogo: visual mais claro sem alterar os cards e ícones aprovados. */
#colchoes.catalog-section{background:#f6f8fb}
#colchoes .product-card{border-color:#e4e9f0}
#colchoes .product-card:hover{box-shadow:0 16px 34px rgba(15,46,93,.12)}
#colchoes .product-send{background:var(--v3-red)}
#colchoes .product-badge{background:var(--v3-red)}
#videos .v31-insta-card{background:#14325c!important}
/* Dispositivos médios / tablet */
@media(max-width:1150px){
  #inicio .v33-hero-grid{
    grid-template-columns:minmax(0,.90fr) minmax(0,1.12fr);
    gap:22px;
  }
  #inicio .v33-hero-structure{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:9px}
  .v33-structure-view{height:225px}
  .v33-3d-heading{grid-column:1}
  .v33-hero-structure>.v33-structure-view{grid-column:2;grid-row:1/span 3}
  .v33-carbon-callout{grid-column:1;margin-top:3px}
  .v33-3d-controls{grid-column:1;justify-content:flex-start}
  .v33-hero-structure .hero3d-note{grid-column:1/-1}
}
@media(max-width:760px){
  #inicio.v33-hero{padding:30px 0 16px}
  #inicio .v33-hero-grid{grid-template-columns:1fr;gap:18px}
  #inicio .v33-hero-copy{padding:0}
  #inicio .v33-hero-copy h1{font-size:clamp(46px,10vw,68px);margin:13px 0}
  .v33-hero-description{max-width:580px}
  .v33-hero-photo{max-width:650px;margin:auto}
  #inicio .v33-hero-structure{display:block;max-width:650px;width:100%;justify-self:center}
  .v33-structure-view{height:305px}
  .v33-carbon-callout{margin-top:9px}
  .v33-3d-controls{justify-content:center}
  #inicio .v33-hero-bottom{margin-top:16px}
  #fabrica .factory-grid{grid-template-columns:1fr}
  #fabrica .factory-showcase{height:400px}
}
@media(max-width:470px){
  #inicio .v33-hero-copy h1{font-size:clamp(42px,11vw,54px)}
  .v33-hero-lead{font-size:24px}
  .v33-hero-actions .button{width:100%;justify-content:center}
  .v33-hero-actions{gap:16px}
  #inicio .v33-hero-bottom{font-size:10px}
  #fabrica .factory-showcase{height:310px;gap:6px;grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr)}
  #fabrica .factory-side{gap:6px}
  .v33-structure-view{height:290px}
}
@media(prefers-reduced-motion:reduce){
  .v33-3d-controls button{transition:none}
}
