/* Hero (home page) — static, no autoplay carousel */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero__media img {
  width: 100%;
  border-radius: var(--radius-2);
}

.hero__title {
  font-size: var(--font-size-2xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

@media (min-width: 55em) {
  .hero {
    flex-direction: row;
    align-items: center;
  }
  .hero__media,
  .hero__content {
    flex: 1 1 50%;
  }
  .hero__title {
    font-size: var(--font-size-3xl);
  }
}

/* Call-to-action buttons/links */
.cta-button,
.cta-button:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-1);
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--color-accent);
}

.cta-button:hover,
.cta-button:visited:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

.cta-button--secondary,
.cta-button--secondary:visited {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-text-muted);
}

.cta-button--secondary:hover,
.cta-button--secondary:visited:hover {
  background: var(--color-text-muted);
  border-color: var(--color-text-muted);
  color: var(--color-white);
}

/* Service card grid */
.service-card-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: var(--space-4) 0;
  list-style: none;
  padding: 0;
}

.service-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-2);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}

.service-card h3 {
  margin-top: 0;
}

.service-card a {
  font-weight: 600;
}

/* Responsive image gallery — ONE grid reused across every gallery page
   (the old site duplicated separate markup per breakpoint; this collapses
   that into a single CSS Grid). */
.gallery-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid a {
  display: block;
  text-decoration: none;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-1);
  border: 1px solid var(--color-border);
}

.gallery-grid figcaption {
  font-size: var(--font-size-sm);
  padding: var(--space-1) 0;
  text-align: center;
}

.gallery-grid a:hover img {
  outline: 2px solid var(--color-accent);
}

/* Download list */
.download-group {
  margin-bottom: var(--space-5);
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  border-bottom: 1px solid var(--color-border);
}

.download-list a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-1);
  text-decoration: none;
}

.download-list a:hover {
  text-decoration: underline;
}

.download-list svg {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  color: var(--color-accent);
}

/* Staff directory */
.staff-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.staff-list li {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-1);
  padding: var(--space-3);
}

.staff-list h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}

.staff-list p {
  margin: 0 0 var(--space-1);
  color: var(--color-text-muted);
}

/* Quotes */
blockquote p {
  font-style: italic;
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

blockquote footer {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Static map figure: image + explicit outbound link, never a bare clickable image */
.map-figure {
  margin: var(--space-4) 0;
  max-width: 32rem;
}

.map-figure img {
  border-radius: var(--radius-1);
  border: 1px solid var(--color-border);
}

.map-figure figcaption {
  margin-top: var(--space-2);
}

/* YouTube "watch on YouTube" link pattern — visible caption is the
   accessible name, thumbnail image is decorative (alt="") */
.video-link {
  display: block;
  text-decoration: none;
  margin: var(--space-4) 0;
  max-width: 32rem;
}

.video-link img {
  border-radius: var(--radius-1);
  border: 1px solid var(--color-border);
}

.video-link__caption {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-weight: 600;
}

.video-link__caption svg {
  width: 1.2em;
  height: 1.2em;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Back link on service sub-pages (replaces old Font Awesome fa-undo icon) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  font-weight: 600;
}

.back-link svg {
  width: 1em;
  height: 1em;
}

/* News items on /eventi/ */
.news-item {
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item__clippings {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin: var(--space-3) 0;
}

.news-item__clippings figure {
  margin: 0;
}

.news-item__clippings img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-1);
}

.news-item__clippings figcaption {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Inline figure that floats beside body copy (service/bio pages) */
.figure-float {
  float: left;
  max-width: 20rem;
  margin: 0 var(--space-4) var(--space-4) 0;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* Secondary heading/subtitle directly under an <h1> */
.page-subtitle {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  margin-top: -0.5rem;
}

/* Small inline icon sized to sit next to text */
.icon-inline {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  color: var(--color-accent);
}

/* Error pages */
.error-page {
  text-align: center;
  padding: var(--space-6) 0;
}
