/* Responsive refinements, loaded last: preserve the desktop composition. */
@media (max-width: 900px) {
  .section > *, .section-heading > *, .upcoming-content,
  .akros-intro > *, .form-card, .registration-body,
  .product-details > div, .tax-content { min-width: 0; }
  .akros-table-wrap { width: 100%; -webkit-overflow-scrolling: touch; }
  .akros-table-wrap:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
  .akros-scroll-hint { font-size: .875rem; margin: 0 0 12px; color: var(--muted); }
  .about, .contacts { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-copy, .contact-links { padding-top: 0; }
  .section-heading { flex-wrap: wrap; gap: 24px; }
  .community-social-links { flex-basis: 100%; max-width: none; }
  .community-social-links > p { max-width: 540px; }
  .community-social-links .text-link { max-width: 290px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .excursion, .christmas-trip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .excursion > .festival-copy, .excursion > .excursion-poster,
  .excursion > .excursion-info { grid-column: 1; grid-row: auto; }
  .excursion > .excursion-poster, .christmas-media { justify-self: center; }
  .whatsapp { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .section { padding: 44px 22px; }
  .section-heading { margin-bottom: 26px; }
  .header .brand { gap: 10px; }
  .header .brand img { flex: 0 0 47px; }
  .header .brand span { min-width: 0; line-height: 1.4; }
  .header .menu { flex-shrink: 0; min-width: 72px; min-height: 44px; }
  .header #navigation { padding: 16px 20px; }
  .header #navigation a { min-height: 44px; }
  .hero-content .button { max-width: 100%; }
  .hero-content .button > span { flex-shrink: 0; }
  .hero .hero-bottom { flex-wrap: wrap; row-gap: 12px; }
  .hero-bottom > a { min-height: 44px; display: inline-flex; align-items: center; padding-bottom: 0; }
  .hero-bottom > a span { margin-left: 10px; }
  .site-share-trigger { width: 44px; height: 44px; }
  .section h2 { overflow-wrap: break-word; }
  .lead { font-size: 1.2rem; line-height: 1.5; }
  .eyebrow { overflow-wrap: break-word; }
  #prossimi-appuntamenti .upcoming-card { flex-direction: column; padding: 22px; gap: 18px; }
  #prossimi-appuntamenti .upcoming-content { width: 100%; }
  #prossimi-appuntamenti .upcoming-date { flex-shrink: 0; }
  #prossimi-appuntamenti .upcoming-actions { gap: 12px; }
  .upcoming-actions .text-link { align-self: flex-start; }
  .archive-years { gap: 5px; }
  .archive-years .archive-year { min-height: 64px; padding: 12px 4px; }
  .archive-years .year-count { overflow-wrap: anywhere; }
  .archive-month > summary { min-height: 52px; flex-wrap: wrap; gap: 8px; }
  .archive-month > summary::after { flex-shrink: 0; }
  .archive-event { padding: 20px 18px; }
  .archive-event h5 { font-size: 1.25rem; overflow-wrap: break-word; }
  .archive-media { gap: 10px; }
  .archive-media a.archive-media-button { font-size: .875rem; padding: 10px 14px; }
  .board-grid { gap: 28px 14px; }
  .board-grid article { min-width: 0; }
  .board-grid h3 { overflow-wrap: break-word; }
  .board-other { margin-top: 30px; padding-top: 24px; }
  .activity-grid article, .activity-grid article + article { padding: 24px 0; }
  .activity-grid h3 { font-size: 1.5rem; }
  .activity-grid a { min-height: 44px; display: inline-flex; align-items: center; }
  .excursion-card { padding: 22px 18px; }
  .excursion-facts { grid-template-columns: minmax(0, 1fr); }
  .excursion-facts dd, .excursion-card p, .registration-privacy { overflow-wrap: anywhere; }
  #escursione-senarica .excursion-motto { white-space: normal; padding-left: 12px; letter-spacing: normal; }
  .excursion-registration summary { min-height: 48px; padding: 14px; line-height: 1.4; }
  .registration-body { padding: 18px 14px; }
  .registration-grid, .participant-row { grid-template-columns: minmax(0, 1fr); }
  .excursion-form input:not([type=checkbox]), .excursion-form textarea,
  .form-card input:not([type=checkbox]), .form-card select, .form-card textarea { font-size: 16px; min-height: 48px; }
  .minor-label { margin-top: 0; }
  .excursion-form .minor-label, .excursion-form .registration-check { min-height: 44px; align-items: flex-start; }
  .excursion-form input[type=checkbox] { margin-top: 3px; }
  .add-participant, .remove-participant { min-height: 44px; max-width: 100%; white-space: normal; }
  .excursion-safety-note { padding: 16px 14px; }
  .registration-total, .registration-email-preview { overflow-wrap: anywhere; }
  .event-sharing { width: 100%; grid-column: 1 / -1; }
  .share-buttons > a, .share-buttons > button { width: 100%; text-align: center; }
  .christmas-facts { grid-template-columns: minmax(0, 1fr); }
  .christmas-notice { padding: 22px 18px; }
  .christmas-notice h3 { overflow-wrap: break-word; }
  .akros-intro h2 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .akros-next h3 { font-size: 1.25rem; line-height: 1.4; }
  .akros-next p { overflow-wrap: break-word; }
  .akros-panel > summary { padding: 18px 14px; gap: 12px; }
  .akros-panel > summary > span:first-child { min-width: 0; }
  .akros-toggle { flex-shrink: 0; }
  .akros-panel-body { min-width: 0; padding: 0 14px 18px; }
  .akros-round > summary { min-height: 44px; }
  .akros-group summary { min-height: 48px; }
  .akros-group summary span { float: none; display: block; margin-top: 4px; }
  .akros-table-wrap th, .akros-table-wrap td { padding: 10px 12px; }
  .akros-documents .button { justify-content: center; }
  .form-card { padding: 24px 18px; }
  .membership-price { flex-wrap: wrap; gap: 12px 18px; }
  .membership-price strong { font-size: 3.5rem; white-space: nowrap; }
  .membership-intro p, .bank-iban, .form-note, .payment-preview p { overflow-wrap: anywhere; }
  .payment-options .text-link, #copy-tax-code { min-height: 44px; }
  .checkout-total { flex-wrap: wrap; gap: 10px; }
  #negozio .product-details { align-items: flex-start; flex-wrap: nowrap; }
  #negozio .product-details > div { flex: 1; }
  #negozio .product-contact-button { width: 100%; max-width: 260px; font-size: .875rem; }
  #negozio .product-price { flex-shrink: 0; padding-top: 4px; }
  #negozio .shop-notice { padding: 18px; }
  #negozio .shop-notice > strong { min-width: 0; }
  #negozio .product-visual img { height: auto; max-height: 300px; object-fit: contain; }
  .tax-code { width: 100%; }
  .tax-code strong { font-size: clamp(1.4rem, 6.5vw, 1.8rem); }
  .whatsapp-channel-action .button { max-width: 100%; text-align: left; }
  .contact-links a, .institutional-contacts a { overflow-wrap: anywhere; }
  .institutional-contacts a { display: inline-block; min-height: 44px; padding: 8px 0; }
  .footer-brand { min-width: 0; align-items: flex-start; }
  .footer-brand img { flex-shrink: 0; }
  .footer-brand small { overflow-wrap: anywhere; }
  dialog { width: calc(100% - 24px); max-height: calc(100svh - 32px); padding: 48px 18px 24px; overscroll-behavior: contain; }
  dialog h2 { font-size: 1.5rem; overflow-wrap: break-word; }
  .dialog-close { min-width: 44px; min-height: 44px; }
  dialog .dialog-cancel { min-height: 44px; }
}

@media (max-width: 360px) {
  .header { padding: 0 14px; gap: 8px; }
  .header .brand img { width: 42px; height: 42px; flex-basis: 42px; }
  .header .brand span { font-size: 11px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-content { padding-left: 18px; padding-right: 18px; padding-bottom: 150px; }
  .hero { min-height: 650px; }
  .hero-bottom { left: 18px; right: 18px; }
  .hero .hero-bottom > a { margin-left: auto; }
  .portrait { width: 104px; height: 104px; }
  #prossimi-appuntamenti .upcoming-card { padding: 18px; }
  .form-card { padding: 22px 14px; }
  .archive-years .archive-year { font-size: .9375rem; }
}

@media (min-width: 901px) { .akros-scroll-hint { display: none; } }
