
/* ==========================================================
   MÁQUINA DO TEMPO — EXPERIÊNCIA VISUAL
   Biblioteca Digital / Obras Raras
   ========================================================== */

.time-portal-hero{
  position:relative;
  min-height:620px;
  display:flex;
  align-items:stretch;
  overflow:hidden;
  color:#fff;
  background-image:var(--time-bg);
  background-size:cover;
  background-position:center 42%;
  isolation:isolate
}

.time-portal-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-3;
  background:var(--time-bg) center 42%/cover no-repeat;
  transform:scale(1.02)
}

.time-portal-hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:150px;
  z-index:-1;
  background:linear-gradient(180deg,rgba(6,31,52,0),#071f33)
}

.time-portal-overlay{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(circle at 72% 40%,rgba(193,151,76,.18),transparent 31%),
    linear-gradient(90deg,rgba(5,35,59,.97) 0%,rgba(5,35,59,.87) 42%,rgba(5,35,59,.46) 72%,rgba(5,35,59,.74) 100%)
}

.time-portal-content{
  position:relative;
  width:100%;
  display:flex;
  flex-direction:column;
  padding-top:28px;
  padding-bottom:42px
}

.time-portal-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.65);
  font-size:.72rem
}

.time-portal-breadcrumb a{
  color:rgba(255,255,255,.76);
  text-decoration:none
}

.time-portal-breadcrumb a:hover{color:#fff}

.time-hero-copy{
  max-width:760px;
  margin:auto 0;
  padding:82px 0 70px
}

.time-eyebrow{
  display:block;
  color:#d5b269;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase
}

.time-hero-copy h1{
  margin:11px 0 18px;
  color:#fff;
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-size:clamp(3.8rem,8vw,7.2rem);
  font-weight:600;
  line-height:.9;
  letter-spacing:-.045em
}

.time-hero-copy p{
  max-width:650px;
  margin:0;
  color:rgba(255,255,255,.84);
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.14rem;
  line-height:1.7
}

.time-range-signature{
  display:flex;
  align-items:center;
  gap:14px;
  max-width:410px;
  margin-top:34px;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1rem
}

.time-range-signature i{
  flex:1;
  height:1px;
  background:linear-gradient(90deg,#d5b269,rgba(213,178,105,.18))
}

.time-scroll-cue{
  display:inline-flex;
  align-items:center;
  gap:10px;
  align-self:flex-start;
  color:rgba(255,255,255,.82);
  text-decoration:none;
  font-size:.72rem;
  letter-spacing:.06em
}

.time-scroll-cue i{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.34);
  border-radius:50%
}

.time-experience{
  position:relative;
  background:
    radial-gradient(circle at 15% 25%,rgba(185,145,71,.06),transparent 26%),
    linear-gradient(180deg,#f4f0e8 0,#fbfaf7 300px,#fff 100%);
  padding:76px 0 90px
}

.time-section-intro{
  max-width:780px;
  margin-bottom:46px
}

.time-section-intro h2,
.time-period-scene-head h2,
.time-experience-footer h2,
.time-empty-state h2{
  margin:7px 0 10px;
  color:#0a3556;
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-weight:600
}

.time-section-intro h2{
  font-size:clamp(2.2rem,4vw,3.4rem)
}

.time-section-intro p,
.time-period-scene-head p,
.time-experience-footer p,
.time-empty-state p{
  color:#657787;
  line-height:1.7
}

.time-century-rail{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:0;
  overflow-x:auto;
  padding:8px 2px 28px;
  scrollbar-width:thin
}

.time-century-line{
  position:absolute;
  left:18px;
  right:18px;
  top:25px;
  height:1px;
  background:linear-gradient(90deg,#d2c19e,#b68a38,#d2c19e)
}

.time-era-node{
  position:relative;
  min-width:180px;
  flex:1;
  border:0;
  background:transparent;
  padding:0 14px;
  text-align:center;
  cursor:pointer;
  color:#73818c
}

.time-era-dot{
  position:relative;
  z-index:2;
  display:block;
  width:18px;
  height:18px;
  margin:8px auto 17px;
  border:4px solid #f4f0e8;
  border-radius:50%;
  background:#b99a61;
  box-shadow:0 0 0 1px #b99a61;
  transition:.2s ease
}

.time-era-node small{
  display:block;
  margin-bottom:5px;
  color:#9a7d48;
  font-size:.61rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase
}

.time-era-node strong{
  display:block;
  color:#6c7b86;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.05rem;
  font-weight:600;
  white-space:nowrap;
  transition:.2s ease
}

.time-era-node:hover .time-era-dot,
.time-era-node.is-active .time-era-dot{
  width:24px;
  height:24px;
  margin-top:5px;
  margin-bottom:14px;
  background:#0b3b5e;
  box-shadow:0 0 0 4px rgba(11,59,94,.11)
}

.time-era-node.is-active strong{
  color:#0b3b5e;
  font-size:1.18rem
}

.time-years-stage{
  margin-top:18px
}

.time-period-scene{
  display:none;
  scroll-margin-top:110px;
  padding:42px 42px 46px;
  border:1px solid #e4ded2;
  border-radius:18px;
  background:
    linear-gradient(rgba(255,255,255,.96),rgba(255,255,255,.97)),
    url('../img/patrimonial/linha-do-tempo.jpg') center/cover no-repeat;
  box-shadow:0 18px 50px rgba(14,42,63,.08)
}

.time-period-scene.is-active{
  display:block;
  animation:timeSceneIn .38s ease both
}

@keyframes timeSceneIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}

.time-period-scene-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding-bottom:24px;
  margin-bottom:28px;
  border-bottom:1px solid #e6e1d8
}

.time-period-scene-head h2{
  font-size:2.7rem;
  line-height:1
}

.time-period-scene-head p{margin:0}

.time-period-all{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  color:#906619;
  text-decoration:none;
  font-size:.72rem;
  font-weight:800
}

.time-years-path{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px
}

.time-year-portal{
  position:relative;
  min-height:178px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:18px;
  overflow:hidden;
  border:1px solid #dde2e5;
  border-radius:12px;
  background:
    linear-gradient(155deg,#0c3b5d 0,#153f5d 50%,#d9c5a0 210%);
  color:#fff;
  text-decoration:none;
  box-shadow:0 8px 22px rgba(10,46,72,.09);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease
}

.time-year-portal::before{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-70px;
  top:-70px;
  border:1px solid rgba(216,184,123,.22);
  border-radius:50%;
  box-shadow:
    0 0 0 20px rgba(216,184,123,.045),
    0 0 0 44px rgba(216,184,123,.025)
}

.time-year-portal:hover{
  transform:translateY(-5px);
  border-color:#c3a261;
  box-shadow:0 15px 30px rgba(10,46,72,.16);
  color:#fff
}

.time-year-top{
  position:relative;
  z-index:1;
  margin-bottom:auto;
  color:#d9bc83;
  font-size:.59rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase
}

.time-year-portal strong{
  position:relative;
  z-index:1;
  display:block;
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-size:2.4rem;
  font-weight:600;
  line-height:1
}

.time-year-open{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:10px;
  color:rgba(255,255,255,.78);
  font-size:.66rem;
  font-weight:700
}

.time-experience-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  margin-top:50px;
  padding:34px 36px;
  border-radius:16px;
  background:#0a3556;
  color:#fff
}

.time-experience-footer h2{
  color:#fff;
  font-size:2rem
}

.time-experience-footer p{
  max-width:650px;
  margin:0;
  color:rgba(255,255,255,.72)
}

.time-experience-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end
}

.time-experience-actions a{
  min-width:175px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 15px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:9px;
  background:rgba(255,255,255,.07);
  color:#fff;
  text-decoration:none;
  font-size:.72rem;
  font-weight:700
}

.time-experience-actions a:hover{
  background:rgba(255,255,255,.13)
}

.time-experience-actions i{color:#d5b269}

.time-empty-state{
  max-width:720px;
  margin:20px auto;
  padding:60px 35px;
  text-align:center;
  border:1px solid #e1dbcf;
  border-radius:16px;
  background:#fff
}

.time-empty-state>i{
  color:#b48b43;
  font-size:2.5rem
}

.time-empty-state a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  color:#8b641e;
  text-decoration:none;
  font-weight:800
}

@media(max-width:900px){
  .time-portal-hero{min-height:540px}
  .time-period-scene{padding:32px 26px}
  .time-experience-footer{align-items:flex-start;flex-direction:column}
  .time-experience-actions{justify-content:flex-start}
}

@media(max-width:700px){
  .time-portal-hero{min-height:500px}
  .time-hero-copy{padding:58px 0 50px}
  .time-hero-copy h1{font-size:3.6rem}
  .time-hero-copy p{font-size:1rem}
  .time-experience{padding:55px 0 70px}
  .time-century-rail{margin-left:-10px;margin-right:-10px}
  .time-era-node{min-width:150px}
  .time-period-scene{padding:26px 18px}
  .time-period-scene-head{align-items:flex-start;flex-direction:column}
  .time-period-scene-head h2{font-size:2.2rem}
  .time-years-path{grid-template-columns:repeat(2,minmax(0,1fr))}
  .time-year-portal{min-height:150px}
  .time-year-portal strong{font-size:2rem}
  .time-experience-footer{padding:27px 22px}
  .time-experience-actions{width:100%}
  .time-experience-actions a{flex:1}
}

@media(max-width:480px){
  .time-years-path{grid-template-columns:1fr}
  .time-year-portal{min-height:138px}
  .time-experience-actions{flex-direction:column}
  .time-experience-actions a{width:100%}
}
