/* styles giovannipeccati.it */
.yellow {
    color: #f1c40f;
}
.red {
    color: #e74c3c;
}
cite {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .75em;
    border: 0;
    border-left-width: 0.3em;
    border-left-style: solid;
    border-color: black;
    background-color: #fff;
    padding: .75em;
    margin: .5em 0;
    border-radius: 0.3em;
    width: fit-content;
    max-width: 600px;
    font-style: normal;
    font-size: .85em;
}
cite.callout {
    border-top-width: .1em;
    border-right-width: .1em;
    border-bottom-width: .1em;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
}
cite.yellow {
    color: #6c5808;
    border-color: #f1c40f;
    background-color: #fff9dc;
}
cite.red {
    color: #681d15;
    border-color: #e74c3c;
    background-color: #f3d4d0;
}

details {
    margin: 1rem 0;
}
summary {
    display: flex;
    cursor: pointer;
}
summary:first-of-type {
    list-style-type: none;
}
summary:first-of-type::before {
    content: "";
    display: inline-block;
    margin: auto 0;
    background-color: black;
    clip-path: polygon(10% 100%, 10% 0, 90% 50%);
    width: .75em;
    height: .75em;
    margin-right: .25em;
    transition: rotate 0.3s;
} 
details[open] summary {
    margin-bottom: .5em;
}
details[open] summary:first-of-type::before {
    rotate: 90deg;
}
details > *:not(summary) {
    padding-left: 1.05em;
}
summary::marker, summary::-webkit-details-marker {
    display: none;
}

.appuntamenti-contents {
    display: flex;
    flex-direction: column;
    gap: .75em;
    margin: 2em;
}

cite i {
    font-size: 2em;
}

summary > h2 {
    font-weight: normal;
}

.appuntamenti-title {
    background: linear-gradient(45deg, #F25489, #954B92);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.button {
    display: inline-block;
    margin-right: .5em;
    border: none;
    border-radius: .3em;
    background-color: white;
    padding: .5em;
    color: black;
    cursor: pointer;
    width: fit-content;
    font-size: .85em;
}
.button:hover {
    background-color: #ecf0f1;
}
.button i {
    width: 1.25em;
}

.appointment-group {
    display: flex;
    flex-direction: column;
}

.appointment-group > h4 {
    margin: 1em 0;
}

.appointment-group .card {
    margin: 0;
}

.appointment-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5em;
}

.spacer {
    display: flex;
    flex-grow: 1;
}

.prenota {
    display: inline-block;
    border: none;
    border-radius: .3em;
    padding: .5em .75em;
    color: white;
    background-color: #27ae60;
    background-image: linear-gradient(to top, transparent, transparent);
    cursor: pointer;
    transition: all .3s;
}

.prenota:not([disabled]):hover {
    background-image: linear-gradient(to top, rgba(0, 0, 0, .20), rgba(0, 0, 0, .20));
    scale: 1.15;
}

.prenota[disabled] {
    background-color: #e74c3c;
}
.prenota[disabled]:hover {
    animation: headShake 1.5s;
}
