/* Interazioni statiche: la composizione originale resta in style.css. */
figure.photo[role="button"] {
  cursor: zoom-in;
}
figure.photo[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
figure.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.draft-panel {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--accent);
  padding-top: 22px;
}
.draft-panel[hidden] {
  display: none;
}
.draft-panel p {
  font-size: 13px;
}
.draft-preview {
  width: 100%;
  min-height: 200px;
  border: 1px solid #99867a;
  background: var(--paper);
  color: var(--ink);
  padding: 14px;
  resize: vertical;
  font: 14px/1.6 var(--sans);
}
.draft-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.draft-actions .button {
  font-size: 12px;
  gap: 15px;
  padding: 12px 16px;
}
.copy-draft {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  margin-top: 0;
  cursor: pointer;
}
.static-lightbox-image {
  height: min(68dvh, 800px);
}
.static-lightbox-image .photo {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
}
.static-lightbox-image img {
  object-fit: contain;
}
@media (max-width: 767px) {
  .static-lightbox-image {
    height: 60dvh;
  }
}

/* ---------- Matrimoni: gallerie da Google Drive ---------- */
.weddings {
  padding-bottom: 90px;
}
.weddings-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 70px;
  align-items: end;
  padding-top: 40px;
  margin-bottom: 50px;
  border-top: 1px solid var(--line);
}
.weddings-head h2 {
  font-size: clamp(32px, 3.5vw, 48px);
}
.weddings-head p {
  color: var(--muted);
}
.weddings-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 28px;
}
.wedding-card {
  position: relative;
  min-width: 0;
}
.wedding-cover {
  display: block;
  aspect-ratio: 4 / 5;
}
.wedding-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.wedding-card h3 {
  margin-top: 18px;
}
.wedding-open {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.wedding-open::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: zoom-in;
}
.wedding-open:focus-visible {
  outline: none;
}
.wedding-card:has(.wedding-open:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.wedding-card:hover .wedding-cover > img {
  transform: scale(1.03);
}
.wedding-card:hover .wedding-open {
  color: var(--accent);
}
.wedding-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.weddings.is-loading .weddings-grid {
  opacity: 0.55;
}
.weddings-status:empty {
  display: none;
}
.weddings-status {
  margin-top: 25px;
  font-size: 12px;
  color: var(--muted);
}
.weddings-more {
  margin-top: 55px;
  max-width: none;
  color: var(--muted);
}
.weddings-more .text-link {
  gap: 8px;
  margin-top: 0;
}
.wedding-lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.wedding-lightbox .lightbox-close {
  white-space: nowrap;
}
.wedding-lightbox-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  max-width: none;
}
.wedding-stage {
  position: relative;
  height: min(72dvh, 820px);
  background: #1e1a18;
}
.wedding-stage img,
.wedding-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .wedding-cover > img {
    transition: none;
  }
}
@media (max-width: 1023px) {
  .weddings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .weddings-head {
    grid-template-columns: 1fr;
  }
  .wedding-stage {
    height: 62dvh;
  }
  .wedding-lightbox-title {
    font-size: 16px;
    line-height: 1.4;
  }
}
@media (max-width: 599px) {
  .weddings-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Footer: social ---------- */
.footer-social {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 13px;
}
.footer-social a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Consigli: foto a corredo ---------- */
.article-photo-wrap {
  padding-bottom: 60px;
}
.article-photo {
  max-width: 1000px;
  aspect-ratio: 16 / 9;
}
.tip-body {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 1.2fr;
  gap: 25px;
  align-items: start;
  padding-bottom: 25px;
}
.tip-body p {
  padding-bottom: 0;
}
.tip-photo {
  aspect-ratio: 4 / 5;
}
.tip-photo .photo-brief {
  inset: 10px;
  padding: 12px;
}
.tip-photo .photo-label {
  font-size: 17px;
}
.tip-photo .asset-id {
  display: none;
}
.tips-all {
  margin-top: 25px;
}
.inline-link {
  display: inline;
  margin: 0;
  gap: 0;
}
@media (max-width: 767px) {
  .article-photo-wrap {
    padding-bottom: 40px;
  }
  .article-photo {
    aspect-ratio: 4 / 3;
  }
  .tip-body {
    grid-template-columns: 1fr;
  }
  .tip-photo {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Logo ---------- */
/* Il logo sostituisce la scritta «STUDIO 81 / FOTOGRAFIA»: il testo resta
   per Google e per i lettori di schermo, ma non è visibile. */
.brand {
  display: block;
  height: 56px;
  aspect-ratio: 1675 / 749;
  background: url("logo-studio81.png") no-repeat left center / contain;
}
.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.footer .brand {
  height: 72px;
}
@media (max-width: 767px) {
  .brand {
    height: 46px;
  }
  .footer .brand {
    height: 60px;
  }
}
