/* Layout and controls for compact screens. */
@media(max-width:900px){
  #contenuto>.section{min-width:0;max-width:100%;}
  .section figure,.section form,.section article,.section aside,.section details,.section-heading>div{min-width:0;}
  .section img{max-width:100%;}
  .section .button{max-width:100%;}
  .section :is(p,li,dd,h3,h4,h5){overflow-wrap:break-word;}
  .akros-table-wrap{min-width:0;overflow-x:auto;touch-action:pan-x pan-y;}
  .akros-table-wrap table{max-width:none;}
  .registration-body,.excursion-form,.payment-preview{max-width:100%;}
}
@media(max-width:700px){
  body{-webkit-text-size-adjust:100%;}
  .section{padding:40px 20px;}
  .section h2{font-size:clamp(1.875rem,8vw,2.2rem);line-height:1.18;}
  .section-heading{gap:18px;}
  .section-heading>div,.section-heading>p{width:100%;max-width:100%;}
  .section .eyebrow{line-height:1.5;}
  .header #navigation{overscroll-behavior-y:contain;scrollbar-gutter:stable;}
  .header #navigation .nav-submenu a{min-height:48px;line-height:1.45;}
  #prossimi-appuntamenti .upcoming-grid,.archive-events,.activity-grid,.collection-grid{grid-template-columns:minmax(0,1fr);}
  #prossimi-appuntamenti .upcoming-date{display:flex;align-items:center;gap:10px;flex-basis:auto;text-align:left;}
  #prossimi-appuntamenti .upcoming-date strong{font-size:2.25rem;}
  #prossimi-appuntamenti .upcoming-date span{font-size:.875rem;}
  #prossimi-appuntamenti .upcoming-facts>div{grid-template-columns:54px minmax(0,1fr);gap:10px;}
  .archive-years .archive-year{min-width:0;min-height:64px;}
  .archive-month>summary{padding:16px 0;line-height:1.4;}
  .archive-media>div{max-width:100%;}
  .archive-media a.archive-media-button{min-height:46px;white-space:normal;line-height:1.4;}
  .board-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 12px;}
  .board .portrait{width:clamp(96px,29vw,120px);height:clamp(96px,29vw,120px);margin-bottom:18px;}
  .board-grid h3{line-height:1.35;font-size:1.125rem;}
  .board-responsibilities p,.board-other>p{line-height:1.65;}
  .activity-grid article{border-left:0;}
  .excursion>.excursion-poster,.christmas-media{width:100%;max-width:480px;margin-left:auto;margin-right:auto;}
  .excursion-poster img,.christmas-media .poster img{width:100%;height:auto;object-fit:contain;}
  .poster>span{min-height:44px;line-height:1.5;}
  .tags{gap:8px;}
  .tags span{max-width:100%;white-space:normal;line-height:1.5;}
  .registration-grid,.form-grid,.participant-row{grid-template-columns:minmax(0,1fr);}
  :is(.excursion-form,.form-card) :is(input:not([type=checkbox]),select,textarea){min-width:0;width:100%;max-width:100%;font-size:16px;}
  .registration-check,.minor-label{line-height:1.5;gap:10px;}
  .registration-check input,.minor-label input{flex-shrink:0;}
  .excursion-form button,.form-card button,.payment-options button{min-height:46px;}
  .excursion-form .button,.registration-email-preview .button{width:100%;justify-content:center;}
  .registration-email-preview,.registration-privacy,.bank-iban{overflow-wrap:anywhere;}
  .akros-intro,.akros-groups{grid-template-columns:minmax(0,1fr);}
  .akros-photo{width:100%;max-width:100%;}
  .akros-panel>summary{line-height:1.4;}
  .akros-table-wrap{border:1px solid #e2e8ed;border-radius:6px;}
  .akros-table-wrap th,.akros-table-wrap td{font-size:.875rem;}
  .payment-options{grid-template-columns:minmax(0,1fr);gap:16px;}
  .payment-preview h3{line-height:1.4;}
  #negozio .collection-heading{min-height:0;}
  #negozio .product-details{flex-wrap:wrap;gap:12px;}
  #negozio .product-details>div{min-width:0;flex:1 1 190px;}
  #negozio .product-contact-button{min-height:48px;max-width:100%;padding:12px 14px;line-height:1.4;}
  #negozio .product-visual img{width:100%;height:auto;max-height:320px;object-fit:contain;}
  .tax-code #copy-tax{display:inline-flex;align-items:center;min-height:46px;}
  .tax-instructions li{font-size:1rem;line-height:1.6;}
  #stampa .press-grid{grid-template-columns:minmax(0,1fr);}
  #stampa .press-card{display:flex;flex-direction:column;align-items:flex-start;padding:20px;gap:0;}
  #stampa .press-meta{font-size:.875rem;line-height:1.5;margin:0 0 10px;}
  #stampa .press-card h3{font-size:1.125rem;line-height:1.4;margin-bottom:18px;}
  #stampa .press-read{min-height:46px;max-width:100%;white-space:normal;}
  .contact-links,.institutional-contacts{width:100%;max-width:100%;}
  .contact-links>a{max-width:100%;line-height:1.4;min-height:44px;}
  .association-map iframe{display:block;width:100%;max-width:100%;height:240px;}
  .whatsapp-channel-action{max-width:100%;}
  .whatsapp-channel-action .button{min-height:48px;}
  footer{gap:24px;padding:28px 20px;}
  .footer-brand{width:100%;font-size:.875rem;line-height:1.5;}
  .footer-signature{max-width:100%;}
  dialog{max-width:calc(100% - 24px);overflow-y:auto;}
  dialog :is(input,select,textarea){max-width:100%;font-size:16px;}
  dialog .button{width:100%;justify-content:center;min-height:48px;}
  dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;}
}
@media(max-width:360px){
  .section{padding-left:16px;padding-right:16px;}
  .section h2{font-size:1.875rem;}
  .board-grid{gap:24px 10px;}
  #negozio .product-details>div{flex-basis:100%;}
  #stampa .press-card{padding:18px;}
}
@media(max-width:700px) and (orientation:landscape){
  dialog{max-height:calc(100dvh - 24px);}
}
@media(hover:none){.button:hover{transform:none;}.product-visual:hover img{transform:none;}}

/* Small-screen finishing pass: comfortable controls and uncropped identities. */
@media(max-width:700px){
  #contenuto>.section{scroll-margin-top:20px;}
  .upcoming-actions{align-items:stretch;}
  .upcoming-actions .button,.upcoming-actions .registration-link{min-height:48px;width:100%;justify-content:center;text-align:center;white-space:normal;line-height:1.4;}
  .upcoming-actions .text-link{min-height:44px;display:inline-flex;align-items:center;}
  .community-social-links .text-link{min-height:48px;align-items:center;}
  .archive-media{flex-wrap:wrap;}
  .archive-media>div{flex:0 1 auto;min-width:0;}
  .archive-media-button{gap:8px;}
  #stampa .press-logo-frame:has(.press-logo[src$="superj-canale16.png"]){height:90px;overflow:visible;}
  #stampa .press-logo[src$="superj-canale16.png"]{width:90px;height:90px;max-height:90px;object-fit:contain;}
  #sport .akros-brand-line>span{min-width:0;overflow-wrap:break-word;}
  .akros-staff a{display:inline-block;min-height:44px;padding:6px 0;line-height:1.5;}
  .akros-documents>div{gap:10px;}
  .akros-documents .button{white-space:normal;line-height:1.45;min-height:48px;}
  #negozio .collection{min-width:0;}
  #negozio .product-row{min-width:0;}
  #negozio .product-contact-button{display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;}
  .payment-options :is(#copy-email,#copy-iban,.copy-button){min-height:44px;}
  .registration-grid label,.participant-row label{min-width:0;}
  .share-buttons :is(a,button){min-height:48px;white-space:normal;line-height:1.4;display:flex;align-items:center;justify-content:center;}
  .tax-content,.christmas-copy,.festival-copy{min-width:0;}
  .christmas-notice h3{font-size:1.125rem;line-height:1.5;}
}
@media(max-width:380px){
  .upcoming-card h3{font-size:1.375rem;line-height:1.35;}
  .archive-event h5{font-size:1.125rem;line-height:1.4;}
  .archive-years .year-count{font-size:.6875rem;line-height:1.35;}
  #stampa .press-card{padding:16px;}
  .akros-panel>summary{font-size:1rem;}
  .registration-body{padding:16px 12px;}
  #negozio .product-details>div{flex-basis:100%;}
}

/* Native, readable year accordions on phones; desktop tabs stay in a row. */
@media(max-width:700px){
  #bacheca .archive-years,#stampa .press-archive{display:block;}
  .archive-years>.year-archive{display:block;margin-bottom:10px;}
  .archive-years>.year-archive::details-content{display:block;}
  #bacheca .archive-year,#stampa .archive-year{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:60px;padding:14px 16px;text-align:left;}
  .archive-years .year-label{font-size:1.125rem;line-height:1.4;}
  #bacheca .year-count,#stampa .year-count{order:2;margin-left:auto;font-size:.875rem;line-height:1.4;white-space:normal;overflow-wrap:normal;}
  .archive-years .year-count-word{display:inline;}
  .archive-years .year-toggle{display:block;order:3;flex:0 0 16px;font-size:1.25rem;text-align:center;}
  .archive-years .year-months{margin:12px 0 20px;min-width:0;}
  #attivita .activity-grid article,#attivita .activity-grid article+article{padding:24px 0!important;border-left:0;}
  #attivita .activity-grid p{max-width:100%;}
  #associazione .about-title-line{font-size:inherit;white-space:normal;}
  #contatti h2,#associazione h2{overflow-wrap:break-word;}
  .footer-signature .designer-first-line{white-space:normal;}
}
@media(min-width:701px) and (max-width:999px){
  #associazione .about-title-line{font-size:.82em;white-space:normal;}
  #attivita .activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  #attivita .activity-grid article{min-width:0;}
}

/* Phone refinements for current membership content and complete page. */
@media(max-width:700px){
  #membership-form .form-grid{grid-template-columns:minmax(0,1fr);gap:0;}
  #membership-form .form-grid>label{min-width:0;line-height:1.5;}
  #membership-form .membership-field-hint{display:block;margin-top:2px;font-size:.8125rem;line-height:1.4;}
  #membership-form input[type=date]{min-width:0;max-width:100%;min-height:48px;appearance:none;-webkit-appearance:none;}
  #membership-form input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.5em;}
  .membership-card-preview{max-width:400px;width:100%;}
  .membership-intro .service-note{font-size:.875rem;line-height:1.65;}
  .payment-options{width:100%;min-width:0;}
  .payment-options>div{min-width:0;}
  .payment-options .bank-payment{border-left:0;padding:18px 0 0;border-top:1px solid var(--line);}
  .payment-options button{max-width:100%;white-space:normal;}
  .form-card .check-label{line-height:1.5;}
  .form-card .check-label input{width:20px;height:20px;flex:0 0 20px;}
  .board-other>p,.board-responsibilities{min-width:0;max-width:100%;}
  .akros-next{padding:20px 16px;}
  .akros-table-wrap{position:relative;isolation:isolate;}
  .akros-standings th:first-child,.akros-standings td:first-child{position:sticky;left:0;background:#fff;z-index:1;}
  .akros-standings thead th:first-child{background:#edf2f6;z-index:2;}
  .akros-standings .akros-match td:first-child{background:#fff3da;}
  .akros-table-wrap:focus-visible{outline:3px solid var(--green);outline-offset:3px;}
  #negozio .product-details{min-width:0;}
  #negozio .product-price{font-size:1.25rem;}
  .association-map>a{min-height:48px;line-height:1.5;}
  .contact-links>a{align-items:center;}
  .contact-links>a svg{flex-shrink:0;}
  .header #navigation{padding-bottom:calc(20px + env(safe-area-inset-bottom));}
  dialog{max-height:calc(100dvh - 24px);}
  .footer-signature .designer-name strong{white-space:normal;}
}
@media(max-width:360px){
  .header .brand span{max-width:155px;font-size:.6875rem;}
  .header .menu{min-width:64px;padding:9px 8px;}
  .akros-staff{grid-template-columns:minmax(0,1fr);}
  .tax-code{padding:18px 14px;}
  .tax-code strong{font-size:1.5rem;letter-spacing:.02em;}
}
@media(max-width:900px) and (orientation:landscape){
  dialog{max-height:calc(100dvh - 24px);}
}

/* Current events: readable calls to action at narrow phone widths. */
@media(max-width:700px){
  .event-phone-button{flex-direction:column;gap:3px;padding:13px 16px;line-height:1.4;}
  .event-phone-number{white-space:nowrap;font-variant-numeric:tabular-nums;}
  #cammino-corno-grande .festival-copy h2{font-size:clamp(1.875rem,8.5vw,2.4rem);line-height:1.18;}
  #cammino-corno-grande .corno-quote{padding:14px 16px;font-size:.9375rem;line-height:1.6;}
  .excursion .excursion-signup{min-width:0;}
  .excursion .excursion-signup .button{min-height:48px;text-align:center;}
  .excursion .excursion-facts dt{line-height:1.5;}
  .excursion .excursion-facts dd{line-height:1.6;overflow-wrap:break-word;}
  .upcoming-content>p{line-height:1.65;}
  .upcoming-content h3{overflow-wrap:break-word;}
  #bacheca .archive-event h5 a{overflow-wrap:anywhere;}
  #stampa .press-card h3 a{overflow-wrap:anywhere;}
  #negozio .product-contact-button{width:100%;max-width:none;}
  .akros-standings .akros-match th:first-child{background:#fff3da;}
  #membership-form .data-notice summary{min-height:44px;padding:10px 0;line-height:1.5;}
}
@media(max-width:380px){
  #prossimi-appuntamenti .upcoming-facts>div{grid-template-columns:minmax(0,1fr);gap:3px;}
  #prossimi-appuntamenti .upcoming-facts dd{font-size:.9375rem;}
  .excursion .tags span{font-size:.8125rem;padding:6px 10px;}
  .archive-month>summary .month-count{font-size:.8125rem;}
}

/* Long event forms: keep usable space inside nested cards on phones. */
@media(max-width:700px){
  .excursion .excursion-card{padding:20px 16px;}
  .excursion .excursion-facts>div{min-width:0;}
  .excursion .excursion-facts dd a{overflow-wrap:break-word;}
  .excursion-registration .registration-body{padding:18px 12px;}
  .registration-participants,.participant-list{min-width:0;max-width:100%;}
  .excursion-form select{box-sizing:border-box;display:block;min-height:48px;padding:12px 32px 12px 10px;border:1px solid #a5b6ad;border-radius:6px;background-color:#fff;color:#19312a;font-family:inherit;line-height:1.5;}
  .excursion-form .participant-row{gap:16px;padding:16px 0;}
  .excursion-form .registration-food-note,.excursion-form .excursion-safety-note{padding:14px 12px;}
  .registration-body .registration-total{font-size:.9375rem;padding:12px 10px;overflow-wrap:break-word;}
  .registration-body .registration-privacy{line-height:1.65;}
  .registration-body .registration-check{padding:8px 0;}
  .registration-body .add-participant{width:100%;}
  .registration-body textarea{box-sizing:border-box;resize:vertical;}
  #escursione-frattoli .festival-copy .lead{font-size:1.125rem;line-height:1.6;}
  #escursione-frattoli .frattoli-motto{white-space:normal;}
}
@media(max-width:380px){
  .excursion .excursion-card{padding:18px 12px;}
  .excursion-registration .registration-body{padding:16px 10px;}
  .excursion .excursion-facts dd{font-size:.9375rem;}
}

/* Keep the pinned team column smaller than the phone's table viewport. */
@media(max-width:700px){
  #sport table.akros-standings{table-layout:fixed;min-width:570px;}
  #sport .akros-standings th:first-child{width:150px;white-space:normal;overflow-wrap:break-word;}
  #sport .akros-standings th:not(:first-child),#sport .akros-standings td{width:60px;text-align:center;}
  #sport>.akros-source-note{line-height:1.7;}
}

/* Align the two registration acknowledgements with their checkboxes. */
#iscrizione-frattoli .registration-check{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:44px;text-align:left;}
#iscrizione-frattoli .registration-check input[type=checkbox]{flex:0 0 19px;width:19px;height:19px;min-height:19px;margin:0;padding:0;}
#iscrizione-frattoli .registration-check>span{flex:1;min-width:0;line-height:1.5;}

#iscrizione-frattoli .minor-label{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:44px;text-align:left;}
#iscrizione-frattoli .minor-label input[type=checkbox]{flex:0 0 19px;width:19px;height:19px;min-height:19px;margin:0;padding:0;}
#iscrizione-frattoli .minor-label>span{line-height:1.5;}

/* Phone usability: readable selections, balanced cards and safe screen edges. */
.mobile-selection-note{display:none;}
@media(max-width:700px){
  .mobile-selection-note:not([hidden]){display:block;font-size:.875rem;font-weight:400;line-height:1.5;margin-top:8px;overflow-wrap:break-word;color:var(--ink);}
  .header{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));}
  .section{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));}
  #sport .akros-panel>summary>span:first-child{min-width:0;overflow-wrap:break-word;}
  #sport .akros-toggle{flex-shrink:0;}
  #sport .akros-documents>div{display:grid;grid-template-columns:minmax(0,1fr);}
  #sport .akros-documents .button{width:100%;justify-content:center;text-align:center;}
  #membership-form :is(input,select,textarea),.excursion-form :is(input,select,textarea){scroll-margin-block:100px;}
  .registration-email-preview pre,.payment-preview pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;}
  .excursion-registration summary,.akros-panel>summary,.archive-month>summary{touch-action:manipulation;}
}
@media(max-width:360px){
  .section{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));}
  #iscrizione-frattoli .registration-body{padding:16px 8px;}
}

/* Phone refinements for the membership WhatsApp flow and long headings. */
@media(max-width:700px){
  #request-review{box-sizing:border-box;width:calc(100% - 24px);max-width:560px;max-height:calc(100dvh - 24px);padding:24px 16px;overscroll-behavior:contain;scroll-padding-block:16px;}
  #request-review h2{font-size:clamp(1.5rem,7vw,2rem);line-height:1.25;padding-right:24px;}
  #request-review #request-summary{font-family:inherit;font-size:1rem;line-height:1.6;padding:14px 12px;white-space:pre-wrap;overflow-wrap:anywhere;}
  #request-review :is(#membership-whatsapp,#copy-membership-message,.text-link){width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.5;}
  #membership-form .membership-next-steps h3{font-size:1.15rem;line-height:1.4;}
  #membership-form .membership-next-steps p{font-size:1rem;line-height:1.65;}
  #membership-form .check-label{align-items:center;min-height:48px;}
  #membership-form .check-label input{margin:0;flex:0 0 20px;width:20px;height:20px;}
  #membership-form .check-label span{min-width:0;line-height:1.5;}
  .hero h1{font-size:clamp(2.5rem,11.5vw,3.4rem);line-height:1.08;}
  .press-logo-frame{max-width:100%;}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

/* Current Christmas events and registration actions on narrow screens. */
@media(max-width:700px){
  #prossimi-appuntamenti .upcoming-content{min-width:0;width:100%;}
  #prossimi-appuntamenti .upcoming-facts dd{min-width:0;overflow-wrap:break-word;}
  .christmas-trip .christmas-media{max-width:100%;justify-self:stretch;}
  .christmas-trip .poster{display:block;box-sizing:border-box;width:100%;}
  .christmas-trip .poster img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;}
  .christmas-trip .christmas-prices dt{flex:1;line-height:1.5;}
  .christmas-trip .christmas-prices dd{flex-shrink:0;font-size:1.125rem;}
  .christmas-trip .christmas-itinerary li{grid-template-columns:52px minmax(0,1fr);gap:10px;}
  .christmas-trip .christmas-booking-action{display:flex;width:100%;box-sizing:border-box;justify-content:center;align-items:center;min-height:52px;white-space:normal;line-height:1.45;}
  .event-sharing .share-buttons{display:flex;flex-wrap:wrap;min-width:0;}
  .event-sharing .share-buttons a{box-sizing:border-box;max-width:100%;gap:10px;}
  .event-sharing .share-whatsapp-logo{flex:0 0 24px;}
  .registration-email-preview > a.button{box-sizing:border-box;width:100%;white-space:normal;line-height:1.5;}
  .registration-email-preview textarea{min-height:200px;}
  .section :is(a[href^="mailto:"],.bank-iban){overflow-wrap:anywhere;}
}
@media(max-width:380px){
  .christmas-trip .christmas-prices>div{flex-wrap:wrap;gap:4px 12px;}
  .christmas-trip .christmas-prices dt{flex-basis:100%;}
  .christmas-trip .christmas-notice{padding:18px 14px;}
  .event-sharing .share-buttons a{width:100%;}
}

/* Touch targets and compact landscape screens across all sections. */
@media(max-width:700px){
  .section details>summary{min-height:44px;box-sizing:border-box;}
  .section :is(button,.button){touch-action:manipulation;}
  .registration-email-preview .button{flex-wrap:wrap;overflow-wrap:break-word;}
}

/* Keep the title, main action and social links in normal flow when the device rotates. */
@media (max-width: 1100px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    height: auto;
    min-height: clamp(28rem, calc(86svh - 4rem), 41rem);
    max-height: none;
    padding: clamp(2.25rem, 5vw, 4rem) clamp(1.125rem, 4vw, 3rem) 1.5rem;
  }
  .hero-image { inset: 0; }
  .hero-content { width: 100%; margin: 0; padding: 0; }
  .hero .eyebrow { padding-right: 3rem; }
  .hero .hero-bottom { position: static; flex-wrap: wrap; row-gap: 0.75rem; }
  .hero-bottom .hero-social-button { width: 44px; height: 44px; }
}

@media (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: 0; gap: 1.5rem; padding-block: 1.5rem; }
  .hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.25rem); }
  .hero-content > p:not(.eyebrow) { margin-block: 0.875rem 1rem; }
}

@media (min-width: 701px) and (max-width: 1199px) {
  #prossimi-appuntamenti .upcoming-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19.5rem), 1fr));
  }
  #prossimi-appuntamenti .upcoming-card { flex-direction: column; min-width: 0; }
  #prossimi-appuntamenti .upcoming-content { display: flex; flex: 1; flex-direction: column; }
  #prossimi-appuntamenti .upcoming-actions { margin-top: auto; padding-top: 1rem; }
  #diventa-socio {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  #membership-form .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.25rem), 1fr));
  }
  #membership-form .form-grid > label { min-width: 0; }
  #membership-form :is(input:not([type=checkbox]),select) { min-width: 0; font-size: 1rem; }
  :is(.section, dialog) :is(.button, .press-read, .product-contact-button) { min-height: 44px; }
  #stampa .press-logo-frame:has(.press-logo[src$="superj-canale16.png"]) { overflow: visible; }
  #stampa .press-logo[src$="superj-canale16.png"] { width: auto; height: 100%; object-fit: contain; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  #attivita .activity-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0 1.5rem;
  }
  #attivita .activity-grid article,
  #attivita .activity-grid article + article {
    padding: 1.5rem 0 !important;
    border-left: 0;
    border-bottom: 1px solid #c7d3c9;
  }
  #attivita .activity-grid p { max-width: none; }
  #negozio .collection-grid { grid-template-columns: minmax(0, 1fr); }
  #negozio .collection { display: flex; flex-wrap: wrap; }
  #negozio .collection-heading {
    flex: 1 0 100%;
    min-height: 0;
    padding: 1.25rem 1.5rem;
  }
  #negozio .product-with-image { flex: 1 1 12rem; min-width: 0; }
  #negozio .product-details { align-items: flex-start; flex-wrap: wrap; }
  #negozio .product-details > div { flex: 1 1 9rem; min-width: 0; }
  #negozio .product-contact-button { white-space: normal; font-size: 0.875rem; }
  #sport .akros-documents > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }
  #sport .akros-documents .button { width: auto; justify-content: center; text-align: center; }
}

.header .brand-wordmark {
  display: block;
  width: clamp(9rem, 23vw, 13.75rem);
  max-width: 100%;
  min-width: 0;
  height: auto;
  fill: currentColor;
}
@media (max-width: 700px) {
  .header .brand-wordmark { width: clamp(9rem, 43vw, 12rem); }
}

/* The header can wrap as fonts load or the browser zoom changes. */
.hero {
  --cover-edge: 16px;
  container: cover / size;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(8px, 1.8vh, 20px);
  height: calc(100svh - var(--header-height, 150px) - var(--cover-edge));
  max-height: none;
  min-height: 0;
  padding: clamp(12px, 2.5vh, 28px) clamp(18px, 4.5vw, 84px);
}
.hero .hero-image { inset: 0; }
.hero .hero-content {
  align-self: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
}
.hero .hero-bottom { position: static; }
.hero h1 { font-size: clamp(2rem, min(11vw, 14cqh), 6.6rem); }
.hero .eyebrow { padding-right: 3rem; }

@container cover (max-height: 560px) {
  .hero-content .eyebrow { margin-bottom: 0.65rem; }
  .hero-content > p:not(.eyebrow) { margin-block: 0.8rem 1rem; }
}
@container cover (min-width: 430px) and (max-height: 360px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    align-items: center;
  }
  .hero-content .eyebrow { grid-column: 1 / -1; }
  .hero-content h1 { grid-column: 1; grid-row: 2 / 4; }
  .hero-content > p:not(.eyebrow) { margin: 0 0 0.5rem; align-self: end; }
  .hero-content .button { justify-self: start; align-self: start; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .hero { height: calc(100svh - 90px - var(--cover-edge)); }
}
@media (max-width: 700px) {
  .hero { height: calc(100svh - 80px - var(--cover-edge)); }
}
@container cover (min-width: 900px) and (max-height: 450px) {
  .hero-content h1 { font-size: clamp(2rem, 11cqh, 4rem); }
}
@container cover (min-width: 430px) and (max-height: 250px) {
  .hero-social { flex-direction: row; align-items: center; }
  .hero-content .eyebrow { margin-bottom: 2px; font-size: 0.7rem; }
  .hero-content h1 { font-size: clamp(1.4rem, 11cqh, 2rem); }
  .hero-content > p:not(.eyebrow) { font-size: 0.875rem; line-height: 1.3; }
  .hero-content .button { padding: 0.45rem 0.75rem; min-height: 40px; }
}
