/* Lo stile che stava dentro alle cinque home tradotte, uguale in tutte e
   cinque (stesso contenuto, byte per byte). Portato qui il 2026-09-16: era
   6 KB riscaricati con l'HTML cinque volte invece di uno in cache.
   Va caricato DOPO wiki.css, come quando stava in pagina. */

.my-float{ margin-top:16px; }
    .float{ position:fixed; width:60px; height:60px; bottom:40px; right:40px; background-color:#25d366; color:#FFF; border-radius:50px; text-align:center; font-size:30px; box-shadow: 2px 2px 3px #999; z-index:100; }
    .float-icon { margin-top: 16px; }
    .float-corsi{ position:fixed; bottom:40px; right:40px; background-color:#000000; color:#ffffff; border-radius:50px; padding: 12px 24px; text-align:center; font-size:14px; font-weight:600; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index:100; text-decoration:none; display:inline-block; line-height:1.5; transition: all 0.3s ease; }
    .float-corsi:hover { background-color:#333333; color:#ffffff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
    @media (max-width: 768px) { .float-corsi { bottom: 20px; right: 20px; padding: 10px 20px; font-size: 13px; } }
    @media (max-width: 480px) { .float-corsi { bottom: 15px; right: 15px; padding: 8px 16px; font-size: 12px; } }

    .btn-brand-red { background-color: #c2001c !important; border-color: #c2001c !important; color: #ffffff !important; transition: background-color .3s ease, border-color .3s ease; }
    /* ⚠️ Col mouse sopra i tasti non si scambiano il colore (2026-09-03): il rosso si scurisce e resta rosso, i neri restano neri e si schiariscono. Prima si incrociavano. */
    .btn-brand-red:hover, .btn-brand-red:focus { background-color: #960015 !important; border-color: #960015 !important; color: #ffffff !important; }
    .btn.btn-dark:hover, .btn.btn-dark:focus, .btn.btn-dark:active { background-color: #3a3f4a !important; border-color: #3a3f4a !important; color: #ffffff !important; }

    .faq-item { background: #fff; border: 1px solid #ececec; border-radius: 12px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.04); }
    .faq-item summary { cursor: pointer; list-style: none; padding: 20px 26px; font-weight: 600; font-size: 1.05rem; color: #262b35; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after { content: '+'; color: #c2001c; font-size: 1.6rem; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform .2s ease; }
    .faq-item[open] summary::after { content: '\2212'; }
    .faq-item .faq-body { padding: 0 26px 22px; color: rgba(17,24,39,.72); line-height: 1.7; font-size: .98rem; }


    /* language / content disclaimer */
    .lang-disclaimer { background:#fff8e6; border:1px solid #f0d98a; border-radius:12px; }

    /* hero height: the white site bar is `position: sticky`, so it takes up its own
       space. Without subtracting it, the first screen is 100vh + the bar, leaving a
       strip to scroll for nothing. The 53px are the bar: 34 logo + .55rem padding
       top and bottom + 1 border (see `nav.wiki-site-nav` in /wiki/wiki.css?v=1789576468). */
    @media (min-width: 992px) {
        #home.full-screen { height: calc(100vh - 53px) !important; }
    }

    /* the photo stays inside the hero: the theme makes it 55% of the column and
       100px below the edge, so the silhouette was clipped by `overflow-hidden`.
       The width is now tied to the window height too (`62vh`, about 83vh tall on a
       1200x1600 portrait): on a short screen it shrinks by itself instead of
       spilling over, and it rests on the bottom of the section. */
    @media (min-width: 992px) {
        #home .row > .position-absolute { width: min(38%, 62vh) !important; right: 2% !important; bottom: 0 !important; }
    }

    /* the staircase indent stays on the name, not on the text: the theme's `ps-20`
       is `padding-left: 20%`, and below 1200px those 120-130px are what the lead and
       the buttons need. The arrow beside the name goes too: from 1200px down
       "Federico" already fills its column, so the arrow wrapped onto a line of its
       own in the middle of the hero. It is a flourish: where it does not fit, it goes. */
    @media (max-width: 1199px) {
        #home div.ps-20 { padding-left: 0 !important; }
        #home h1 .bi-arrow-up-right { display: none; }
    }

    /* hero below 992px: stack text, buttons and photo instead of overlapping them.
       The breakpoint is 992px and not 767px because the text column is `col-lg-8`:
       below that Bootstrap takes it full width and the absolutely positioned photo
       lands on top of it, covering the lead line and both buttons on a tablet. */
    @media (max-width: 991px) {
        #home { height: auto !important; min-height: 0 !important; padding: 2.5rem 0 0 !important; }
        #home .container { height: auto !important; }
        #home .row { flex-direction: column !important; height: auto !important; align-items: stretch !important; }
        /* the pill stops climbing onto the name: the theme lifts it 20px so it tucks
           under the letters, but on a phone the name is 90px tall and those 20px land
           on the descenders of "gg" */
        #home .top-minus-40px { top: 0 !important; }
        #home .row > .position-absolute { position: static !important; width: 100% !important; max-width: 280px; margin: 1.5rem auto 0 !important; bottom: auto !important; right: auto !important; left: auto !important; transform: none !important; }
        #home .row > .position-absolute .atropos, #home .row > .position-absolute .atropos-scale, #home .row > .position-absolute .atropos-rotate, #home .row > .position-absolute img { transform: none !important; }
        #home .row > .position-absolute img { max-width: 100% !important; height: auto !important; }
        /* on a tablet there is room: the photo goes wider than the phone's 340px */
        @media (min-width: 768px) {
            #home .row > .position-absolute { max-width: 400px; }
        }
    }

    @media (max-width: 767px) {
        #contact { padding-bottom: 110px !important; }
    }
