:root {
    --gradient-rainbow: linear-gradient(270deg, #bc1419 0%, #a05eb5 50.74%, #0c94a7 100%);
    --red-gradient: linear-gradient(90deg, rgb(137, 40, 38) 0%, rgb(194, 63, 60) 100%);
    --lb-gradient: linear-gradient(90deg, rgb(27, 133, 164) 0%, rgb(44, 196, 239) 100%);
    --violet-gradient: linear-gradient(90deg, rgb(103, 31, 153) 0%, rgb(160, 94, 181) 100%);
    --blue-gradient: linear-gradient(90deg, #435580 0%, #647ebb 100%);
    --title-blue: #0098a5;
    --dark-blue: #002231;
    --red: #be0f0f;
    --red-bg: rgb(251, 243, 243);
    --lb: #2cc4ef;
    --lb-bg: #ebf7f8;
    --violet: #a05eb5;
    --violet-bg: #fbf5f9;
    --blue: #657fbb;
    --blue-bg: #faf4f7;
    --line-color: rgb(0, 152, 165, 15%);
    /* larghezza del contenuto di una section: 816px body - 2 * 30px padding */
    --content-width: 756px;
    /* pillole: gradiente teal -> viola e geometria delle due colonne */
    --pill-gradient: linear-gradient(90deg, rgb(19, 153, 163) 0%, rgb(144, 100, 170) 100%);
    --pill-gap: 16px;
    --pill-half: calc((var(--content-width) - var(--pill-gap)) / 2);
    /* bordo sfumato del riquadro sotto le pillole (colori da verificare) */
    --framed-note-border: linear-gradient(60deg, rgb(232, 119, 34) 0%, rgb(19, 153, 163) 65%);
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    width: 816px;
    height: 1056px;
    color: var(--dark-blue);
}

sup,sub {
    font-size: .55em;
}

main {
    background-color: white;
    /*background-image: url(../images/slide.png);*/
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transition: top .5s;
}

main.hidden {
    position: absolute;
    top: 100%;
}

main header {
    width: 100%;
    min-height: 80px;
    padding: 12px 0;
    background: var(--gradient-rainbow);
    color: white;
    text-align: center;
    font-size: 28px;
    line-height: 1em;
    font-weight: 600;
    position: relative;
}

main.remission {
    /*background-image: url(../images/slide2.png);*/
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

main.home header, main.remission header{
    font-size: 34px;
    min-height: 60px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    cursor: pointer;
}

.padding-bottom {
    padding-bottom: 1em;
}

.padding-horizontal {
    padding: 0 1.5em;
}

.padding-top {
    padding-top: 1.5em;
}

.margin-top {
    margin-top: 1.5em !important;
}

.margin-top-big {
    margin-top: 2.5em !important;
}

.margin-vertical {
    margin: 1em 0 !important;
}

.no-margin {
    margin: 0 !important;
}

.position-relative {
    position: relative;
}

p, h1 {
    margin: 0;
    padding: 0;
}

main section {
    padding: 0 30px;
}

.blue-title {
    font-size: 20px;
    color: var(--title-blue);
    text-align: center;
    margin: .3em 0;
    font-weight: 600;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: .6em 0;
}

.section-head-icon {
    flex: 0 0 11%;
    display: flex;
    justify-content: center;
}

.section-head-icon img {
    max-width: 100%;
    height: auto;
}

.section-head-text {
    flex: 1;
    font-size: 20px;
    font-weight: 400;
    color: var(--title-blue);
    text-align: left;
}

.criteria-row {
    display: flex;
    gap: 20px;
    margin: .6em 0;
}

.criteria-box {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    border: 2px solid;
    border-radius: 999px;
    padding: 3px 3px 3px 3px;
}

.criteria-box.green {
    border-color: var(--title-blue);
}

.criteria-box.violet {
    border-color: var(--violet);
}

.criteria-box-icon {
    flex: 0 0 auto;
}

.criteria-box-icon img {
    display: block;
    height: 40px;
    width: auto;
}

.criteria-box-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.1;
    text-align: left;
}

.criteria-box.green .criteria-box-text b {
    color: var(--title-blue);
}

.criteria-box.violet .criteria-box-text b {
    color: var(--violet);
}

/* --- righe a pillola con gradiente teal -> viola --- */
.pill-row {
    display: flex;
    gap: var(--pill-gap);
    margin-bottom: 3px;
}

.pill-row-right {
    justify-content: flex-end;
}

.pill {
    display: flex;
    box-sizing: border-box;
    border-radius: 999px;
    padding: 4px 10px;
    color: white;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
    /* il gradiente è sempre calcolato sull'intera larghezza del contenuto,
       così le mezze pillole restano allineate con quelle intere */
    background-image: var(--pill-gradient);
    background-size: var(--content-width) 100%;
    background-repeat: no-repeat;
}

.pill > span {
    display: block;
    margin: auto;
}

.pill-full {
    width: 100%;
    background-position: left center;
}

/* nelle righe intere il testo resta centrato sulla colonna di sinistra */
.pill-full > span {
    flex: 0 0 var(--pill-half);
    margin: 0;
    align-self: center;
}

.pill-left {
    flex: 0 0 var(--pill-half);
    background-position: left center;
}

.pill-right {
    flex: 0 0 var(--pill-half);
    background-position: right center;
}

/* riquadro con bordo sfumato arancio -> teal */
.framed-note {
    box-sizing: border-box;
    margin: 0.3em 0;
    padding: 6px 20px;
    border: 2px solid transparent;
    border-radius: 26px;
    background:
        linear-gradient(white, white) padding-box,
        var(--framed-note-border) border-box;
    text-align: center;
    font-size: 16px;
    line-height: 1.25;
}

.framed-note b {
    font-weight: 700;
}

.no-margin-bottom {
    margin-bottom: 0;
}

main.remission .blue-title {
    font-size: 18px;
}

.rounded {
    border-radius: 20px;
}

.box-shadow {
    box-shadow: 2px 2px 9px #0004;
}

.framework {
    width: 98%;
    margin-inline: auto;
    height: 234px;
    background-image: url(../images/home-scheme.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: grid;
    justify-content: center;
    align-items: center;
}

.framework .sections-selector {
    height: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 15px #0003;
    position: relative;
}

.sections-selector .petal {
    height: 110px;
    position: absolute;
    transition: opacity .3s;
    cursor: pointer;
    transition: transform .3s;
}

.sections-selector .exacerbations-btn {
    right: 50%;
    bottom: 50%;
    transform-origin: bottom right;
    animation: anim-1 5s forwards infinite;
}

.sections-selector .fev-btn {
    left: 50%;
    bottom: 50%;
    transform-origin: bottom left;
    animation: anim-2 5s forwards infinite;
}

.sections-selector .ocs-btn {
    right: 50%;
    top: 50%;
    transform-origin: top right;
    animation: anim-4 5s forwards infinite;
}

.sections-selector .acq-btn {
    left: 50%;
    top: 50%;
    transform-origin: top left;
    animation: anim-3 5s forwards infinite;
}

main .subtitle {
    background-color: var(--title-blue);
    color: white;
    text-align: center;
    font-size: 18px;
    padding: .2em 0;
    margin: 0.4em 0 ;
    font-weight: 600;
    border-top: 1px solid var(--title-blue);
    border-bottom: 1px solid var(--title-blue);
    transition: .3s opacity;
}

main .subtitle.clickable {
    cursor: pointer;
    animation: anim-5 5s infinite forwards;
}

.remission-tbl {
    width: 100%;
    height: 308px;
    background-image: url(../images/home-tbl.png);
    background-position: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    margin: auto;
}

.biggersup {
  font-size: .8em;
  vertical-align:top;
}

.blue-notes {
    font-size: 12px;
    color: var(--title-blue);
    margin-bottom: 0.5em;
    font-weight: 600;
    padding: 0 12px 0 12px;
}

.smaller-notes {
    font-size: 9px !important;
}

.notes {
    font-size: 9.5px;
    box-sizing: border-box;
    width: var(--content-width);
    position: relative;
    padding: 0 12px 0 12px;
    line-height: 1.1;
}


/* dentro le card con padding il testo resta contenuto nel box */
.padding-horizontal .notes {
    width: 100%;
    left: 0;
    transform: none;
}

.references-inline {
    font-size: 9.5px;
    line-height: 1.1;
    margin-top: .5em;
    text-align: justify;
    word-break: break-word;
}

.references-inline b {
    font-weight: 700;
}

.references-btn {
    border: 2px solid var(--title-blue);
    background-color: white;
    color: var(--title-blue);
    border-radius: 8px;
    margin: 1em 0;
    font-size: 13px;
    padding: .2 .5em;
    font-weight: 600;
    cursor: pointer;
}



.references {
    z-index: 2;
}

.references ol {
    font-size: 10px;
    padding-top: 1em;
    column-count: 2;
}

.references ol li::marker {
    font-weight: 700;
}

.references ol li {
    margin-bottom: 1.1em;
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
}

.top-section > div {
    text-align: center;
    width: 320px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .1em .5em;
}

.top-section .arrow {
    width: 30px;
}

.bg-red {
    background-color: var(--red-bg);
}

.bg-lb {
    background-color: var(--lb-bg);
}

.bg-violet {
    background-color: var(--violet-bg);
}

.bg-blue {
    background-color: var(--blue-bg);
}

.red-subtitle {
    font-size: 18px;
    color: var(--red);
    font-weight: 700;
}

.lb-subtitle {
    font-size: 18px;
    color: var(--lb);
    font-weight: 700;
}

.violet-subtitle {
    font-size: 18px;
    color: var(--violet);
    font-weight: 700;
}

.blue-subtitle {
    font-size: 18px;
    color: var(--blue);
    font-weight: 700;
}

.dot-before::before {
    content: '•';
    position: absolute;
    margin-left: -1em;
    font-weight: 700;
}

.red-dot::before {
    color: var(--red);
}

.lb-dot::before {
    color: var(--lb);
}

.violet-dot::before {
    color: var(--violet);
}

.blue-dot::before {
    color: var(--blue);
}

.months-label {
    color: white;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    border-radius: 10px;
    margin: .3em 0;
    width: fit-content;
    padding: .1em .3em;
}

.red-gradient {
    background: var(--red-gradient);
}

.lb-gradient {
    background: var(--lb-gradient);
}

.violet-gradient {
    background: var(--violet-gradient);
}


.blue-gradient {
    background: var(--blue-gradient);
}

.section-icon {
    background-color: white;
    border-radius: 50%;
    width: 65px;
    aspect-ratio: 1;
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background-position: center;
    background-size: 60%;
    background-repeat: no-repeat;
}

.section-icon.exa-icon {
    background-image: url(../images/select-1.png);
}

.section-icon.fev-icon {
    background-image: url(../images/select-2.png);
}

.section-icon.ocs-icon {
    background-image: url(../images/select-3.png);
}

.section-icon.acq-icon {
    background-image: url(../images/select-4.png);
}

.graph {
    width: 100%;
}

/* annulla il padding orizzontale della section: il contenuto occupa
   tutta la larghezza della pagina. Usa --full-bleed-pad per lasciare
   un margine laterale (default: 0, cioè tutti gli 816px). */
.full-bleed {
    --full-bleed-pad: 0px;
    margin-left: calc(-30px + var(--full-bleed-pad));
    margin-right: calc(-30px + var(--full-bleed-pad));
}

hr {
    width: 100%;
    height: 2px;
    border: none;
    margin: 1em 0;
    background-color: var(--line-color);
}

.remission-title {
    background-color: var(--dark-blue);
    color: white;
    font-size: 16px;
    position: absolute;
    top: -16px;
    padding: .2em .6em;
    border-radius: 5px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0 30px;
    position: absolute;
    bottom: 10px;
    width: calc(100% - 60px);
}

main.references footer {
    border-top: 2px solid var(--line-color);
    padding-top: 1em;
}

.sanofi-logo {
    width: 210px;
}

footer .matcode {
    font-size: 8px;
    margin-top: -.5em;
}

.footer-logo {
    width: 150px;
}


@keyframes anim-1 {
    0% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1);
    }
    40% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }

}

@keyframes anim-2 {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }

}

@keyframes anim-3 {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.1);
    }
    60% {
        transform: scale(1);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes anim-4 {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1);
    }
    40% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }

}

@keyframes anim-5 {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1);
    }
    40% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
