/* =====================================================
   THE REMS MUSIC - RESPONSIVE MASTER FIX
   ===================================================== */

/* RESET */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* IMMAGINI */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* VIDEO YOUTUBE */
iframe {
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* CONTENITORI */
.wp-site-blocks,
.site-content,
.entry-content,
.wp-block-group,
.wp-block-cover,
.wp-block-columns,
.wp-block-post-content {
    width: 100%;
    max-width: 100%;
}

/* TESTI FLUIDI */
body {
    font-size: clamp(16px, 1vw, 18px);
    line-height: 1.7;
}

h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 1;
}

h2 {
    font-size: clamp(1.7rem, 5vw, 3rem);
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 2rem);
}

/* BLOCCO HERO PRINCIPALE */
.wp-block-cover {
    min-height: 70vh;
    padding: 30px;
}

.wp-block-cover__inner-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* TESTI HERO */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover p {
    text-align: center;
}

/* BOTTONI */
.wp-block-button__link,
button {
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 8px;
}

/* MENU */
.wp-block-navigation__container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* COLONNE */
.wp-block-columns {
    gap: 40px;
}

.wp-block-column {
    min-width: 0;
}

/* TABELLE */
table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* FORM */
input,
textarea,
select {
    width: 100%;
    max-width: 100%;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1024px) {

    .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
    }

    .wp-block-cover {
        min-height: 60vh;
    }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    .wp-site-blocks,
    .entry-content,
    .wp-block-group {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    h2 {
        font-size: clamp(1.5rem, 8vw, 2.4rem);
    }

    .wp-block-cover {
        min-height: 500px;
        padding: 20px;
    }

    .wp-block-buttons {
        justify-content: center;
    }

    .wp-block-button {
        width: 100%;
    }

    .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    iframe {
        width: 100% !important;
    }
}

/* =====================================================
   SMARTPHONE PICCOLI
   ===================================================== */

@media (max-width: 480px) {

    body {
        font-size: 15px;
    }

    .wp-site-blocks,
    .entry-content,
    .wp-block-group {
        padding-left: 15px;
        padding-right: 15px;
    }

    .wp-block-cover {
        min-height: 420px;
    }

    .wp-block-spacer {
        height: 30px !important;
    }
}

/* =====================================================
   ULTRA WIDE
   ===================================================== */

@media (min-width: 1800px) {

    .wp-block-group,
    .wp-block-cover__inner-container,
    main {
        max-width: 1600px;
        margin: auto;
    }
}

/* ANTI BUG WORDPRESS */
.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* EVITA TESTI CHE ESCONO DALLO SCHERMO */
h1,
h2,
h3,
p,
a,
span,
div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}