﻿.porte-wrap { padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.porte-intro { max-width: 65ch; }
.porte-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: clamp(1rem, 4vw, 3rem); }
.porte-filtri { position: sticky; top: 2rem; }
.porte-filtri, .porta-card { background: #fdfdfc; border: 1px solid #e4e2dd; border-radius: .65rem; }
.porte-filtri { padding: 1.15rem; }
.porte-filtri h2, .porte-dialog h2 { font-size: 1.25rem; }
.porte-filtri label { display: block; margin-top: .75rem; font-weight: 600; }
.porte-filtri select { width: 100%; min-width: 0; min-height: 44px; border-radius: .4rem; }
.porte-filtri p { margin: 1rem 0 .5rem; }
.porte-filtri button { width: 100%; }
.porte-linea + .porte-linea { margin-top: 2.75rem; }
.porte-linea details { margin-bottom: 1rem; }
.porte-linea summary { cursor: pointer; }
.porte-linea details ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: 0; margin: .5rem 0 0; list-style: none; }
.porte-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr)); gap: .9rem; }
.porta-card { overflow: hidden; }
.porta-card a { display: block; }
.porta-card a:focus-visible { outline-offset: -3px; }
.porta-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #f1f0ed; }
.porta-card h3 { margin: .65rem .8rem .3rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.porta-card p { margin: .1rem .8rem .5rem; line-height: 1.35; font-size: .9rem; }
.porte-wrap [hidden] { display: none !important; }
.porte-dialog { width: min(94vw, 690px); max-height: 94dvh; padding: .9rem; border: 1px solid #e4e2dd; border-radius: .65rem; background: #fdfdfc; text-align: center; }
.porte-dialog::backdrop { background: rgb(0 0 0 / .8); }
.porte-dialog-comandi { display: flex; gap: .5rem; margin-bottom: .5rem; }
.porte-dialog-comandi form { margin-left: auto; }
.porte-dialog-comandi button { min-width: 44px; min-height: 44px; padding: .25rem .65rem; }
.porte-dialog img { display: block; width: 100%; height: min(58dvh, 620px); object-fit: contain; }
.porte-dialog h2 { margin: .5rem 0; }
.porte-dialog .ast-button { display: inline-block; }
@media (max-width: 921px) {
  .porte-layout { grid-template-columns: minmax(0, 1fr); }
  .porte-filtri { position: static; }
}
@media (max-width: 460px) {
  .porte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
