/* Instudio — foglio di stile unico per tutto il sito */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #232323;
  color: #cfe0bf;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.7; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Testata ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3vw 0;
  padding: 0 5vw;
}
.logo img { height: 50px; width: auto; }
.site-nav { display: flex; gap: 26px; padding-right: 12px; }
.site-nav a { font-size: 16.5px; line-height: 1; }
.menu-toggle { display: none; }

/* ---------- Contenuto ---------- */
main { padding: 0 5vw; margin-bottom: 5vw; }

/* Archivio (home): griglia di miniature */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile { display: block; height: 50vh; min-height: 260px; overflow: hidden; background: #292829; }
.tile:hover { opacity: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* Pagine: griglia a 12 colonne come nell'originale */
.layout { margin: 0 -17px; }
.row::after, .col::after, .layout::after { content: ""; display: table; clear: both; }
.col { float: left; min-height: 1px; }
.block { padding: 17px; }
.block.first { padding-top: 0; }
.float-right { float: right; }
.float-left { float: left; }

.video { position: relative; height: 0; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

figure { margin: 0; }
figure img { width: 100%; }

.text p { margin: 0 0 1.6em; }
.text h1 { font-size: 17px; font-weight: 400; line-height: 1.2; margin: 0 0 0.67em; }
.text h2 { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin: 0.83em 0; }
.text h3 { font-size: 14px; font-weight: 700; line-height: 1.5; margin: 1em 0 0; }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }

hr { height: 1px; border: 0; background: #bbb; margin: 8px 0; }

/* ---------- Schermi piccoli ---------- */
@media (max-width: 768px) {
  .site-header { margin: 24px 0; }
  .logo img { height: 28px; }
  .menu-toggle {
    display: block; position: relative; z-index: 20;
    width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .menu-toggle span {
    position: absolute; left: 3px; right: 3px; height: 2px; background: #cfe0bf;
    transition: transform 0.2s, top 0.2s;
  }
  .menu-toggle span:first-child { top: 10px; }
  .menu-toggle span:last-child { top: 18px; }
  .nav-open .menu-toggle span:first-child { top: 14px; transform: rotate(45deg); }
  .nav-open .menu-toggle span:last-child { top: 14px; transform: rotate(-45deg); }
  .site-nav {
    display: none; position: fixed; inset: 0; z-index: 10;
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    padding: 0; background: #232323;
  }
  .site-nav a { font-size: 22px; }
  .nav-open .site-nav { display: flex; }
  .nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 17px; }
  .tile { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .col { float: none; width: 100% !important; }
  .float-right, .float-left { float: none; width: 100% !important; }
  .spacer { display: none; }
}
