/* BUILD 28 — final visual polish: Founder-approved refinements. */

/* Situazione di…: sector icons sit directly on the status surface. */
#situazione .status-sector-icon,
#situazione .status>span.status-sector-icon{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#situazione .status-sector-icon svg,
#situazione .status>span.status-sector-icon svg{
  width:28px!important;
  height:28px!important;
}

/* Hero quick-date controls: equal sizing, light blue outline, distinct icons. */
.date-filters{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.date-filters .situation-date-control{display:block!important;min-width:0!important}
.date-filters button[data-period],
.date-filters .choose-date-button{
  width:100%!important;
  min-width:0!important;
  min-height:46px!important;
  border:1px solid rgba(0,117,255,.42)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#36506f!important;
  font-weight:600!important;
  font-size:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  box-shadow:0 1px 2px rgba(7,29,73,.03)!important;
}
.date-filters button[data-period].active,
.date-filters .choose-date-button.active{
  background:#0075ff!important;
  border-color:#0075ff!important;
  color:#fff!important;
}
.date-filters button[data-period]::before,
.date-filters .choose-date-button::before{
  content:""!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  background:currentColor!important;
  -webkit-mask-position:center!important;
  -webkit-mask-repeat:no-repeat!important;
  -webkit-mask-size:contain!important;
  mask-position:center!important;
  mask-repeat:no-repeat!important;
  mask-size:contain!important;
}
/* Oggi: calendario con indicatore centrale. */
.date-filters button[data-period="today"]::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='15' r='2.7' fill='black'/%3E%3C/svg%3E")!important;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='15' r='2.7' fill='black'/%3E%3C/svg%3E")!important;
}
.date-filters button[data-period="tomorrow"]::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m10 13 3 3-3 3M13 16h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m10 13 3 3-3 3M13 16h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
.date-filters button[data-period="weekend"]::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 13h3v3H8zM13 13h3v3h-3z' fill='black'/%3E%3C/svg%3E")!important;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 13h3v3H8zM13 13h3v3h-3z' fill='black'/%3E%3C/svg%3E")!important;
}
.date-filters .choose-date-button::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='11' cy='15' r='2.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m13 17 2 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")!important;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='11' cy='15' r='2.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m13 17 2 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")!important;
}
.date-filters .choose-date-button>.icon{display:none!important}

/* Live data indicator: green recording-style pulse. */
.auto-update-badge i{
  background:#22c55e!important;
  opacity:1!important;
  box-shadow:0 0 0 0 rgba(34,197,94,.45)!important;
  animation:liveDataPulse 1.55s ease-out infinite!important;
}
@keyframes liveDataPulse{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.55);filter:brightness(1)}
  55%{box-shadow:0 0 0 6px rgba(34,197,94,0);filter:brightness(1.2)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0);filter:brightness(1)}
}
@media(prefers-reduced-motion:reduce){.auto-update-badge i{animation:none!important;box-shadow:0 0 0 2px rgba(34,197,94,.16)!important}}

/* Newsletter alignment: unavailable badge anchored to the left edge of content. */
.newsletter .coming-soon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  margin:16px auto 0 0!important;
  align-self:flex-start!important;
  text-align:center!important;
  position:relative!important;
  left:0!important;
}
.newsletter .soon-note{margin-top:26px!important}
.newsletter .newsletter-form{margin-top:16px!important}
.newsletter>small{display:block!important;margin-top:11px!important}
.newsletter .newsletter-benefits{margin-top:20px!important}
.newsletter .newsletter-benefits ul{
  justify-content:center!important;
  width:100%!important;
  text-align:center!important;
}
.newsletter .newsletter-benefits li{justify-content:center!important}

/* Footer: same horizontal bounds as the .wrap content above (FAQ + newsletter). */
footer .footer-grid,
footer .footer-bottom{
  width:100%!important;
  max-width:1200px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:24px!important;
  padding-right:24px!important;
  box-sizing:border-box!important;
}
.footer-grid{
  grid-template-columns:minmax(300px,1.55fr) minmax(95px,.5fr) minmax(105px,.55fr) minmax(120px,.62fr) minmax(230px,1.05fr)!important;
  column-gap:28px!important;
}
.footer-grid>div:nth-child(2),
.footer-grid>div:nth-child(3),
.footer-grid>div:nth-child(4){
  justify-self:end!important;
  width:max-content!important;
}
.footer-grid>.source-card-link{justify-self:end!important;width:100%!important;max-width:280px!important}
.footer-brand{justify-self:start!important}
.footer-brand p{margin-top:12px!important}
.footer-socials{margin-top:24px!important;gap:11px!important}
.footer-social{
  transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease,opacity .16s ease!important;
  cursor:default!important;
}
.footer-social:hover,.footer-social:focus-visible{
  transform:translateY(-2px) scale(1.06)!important;
  background:rgba(255,255,255,.12)!important;
  border-color:rgba(255,255,255,.72)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.18)!important;
  opacity:1!important;
}
.footer-bottom{display:flex!important;align-items:center!important}
.footer-bottom .footer-copyright{
  margin:0!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.footer-bottom .footer-legal-text{
  margin-left:auto!important;
  margin-right:0!important;
  text-align:right!important;
  white-space:nowrap!important;
}

@media(max-width:1050px){
  .footer-grid{grid-template-columns:1.2fr .65fr .65fr!important}
  .footer-grid>div:nth-child(2),.footer-grid>div:nth-child(3),.footer-grid>div:nth-child(4){justify-self:start!important;width:auto!important}
  .source-card-link{grid-column:2/4!important;justify-self:start!important}
}
@media(max-width:700px){
  .date-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  footer .footer-grid,footer .footer-bottom{padding-left:18px!important;padding-right:18px!important}
  .footer-bottom .footer-legal-text{width:100%!important;margin-left:0!important;text-align:left!important;white-space:normal!important}
  .newsletter .newsletter-benefits ul{justify-content:flex-start!important;text-align:left!important}
  #situazione .status-sector-icon,#situazione .status>span.status-sector-icon{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}
  #situazione .status-sector-icon svg,#situazione .status>span.status-sector-icon svg{width:25px!important;height:25px!important}
}
