* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

svg {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    background-color: #FFF;
    color: #000;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    background: #edf6f9;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 100%;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 25em;
}

.profile-card {
    background: #FFF;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(29, 53, 87, 0.08);
    border: 1px solid rgba(168, 218, 220, 0.4);
}

.profile-image {
    margin-bottom: 0.9375em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 7.5em;
    height: 7.5em;
    border-radius: 50%;
    /*object-fit: cover;
    border: 0.25em solid #a8dadc;*/
    cursor: pointer;
    display: block;
}

.name {
    font-family: 'Gelasio', Georgia, serif;
    font-size: 1.875em;
    font-weight: 400;
    color: #1d3557;
    letter-spacing: normal;
}

.profession {
    font-size: 1.125em;
    color: #457b9d;
    margin-bottom: 0.25em;
    font-weight: 400;
}

.specialization {
    font-size: 0.875em;
    color: #404040;
    line-height: 1.5;
    margin-bottom: 1.35em;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.625em;
    margin-top: 0.9375em;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 0.875em;
    color: #1d3557;
    background: rgba(168, 218, 220, 0.2);
    padding: 0.5em 0.75em;
    border-radius: 0.625em;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(168, 218, 220, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 123, 157, 0.15);
    color: #1d3557;
}

.contact-item:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(69, 123, 157, 0.15);
}

.contact-item svg {
    height: 0.8em;
    width: auto;
    display: inline-block;
}

.contact-item svg path {
    fill: #00c3a5;
}

.contact-item i {
    color: #1d3557;
    width: 1em;
    text-align: center;
}

.contact-item>i {
    font-size: 1em;
}

.contact-item span {}

/* Contenitore per due contact-item su una riga */
.contact-row {
    display: flex;
    gap: 0.5em;
    width: 100%;
}

.contact-row .contact-item {
    flex: 1;
    min-width: 0;
    /* Permette la riduzione */
}

/* Stile per le etichette sopra i numeri di telefono e email */
.contact-item .phone-label,
.contact-item .email-label {
    font-size: 0.7em;
    color: #1d3557;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4em;
    justify-content: center;
}

.contact-item .phone-label i,
.contact-item .email-label i {
    font-size: 1.4em;
    color: #1d3557;
}

.contact-item.phone-with-label,
.contact-item.email-with-label {
    flex-direction: column;
    gap: 0.25em;
    padding: 0.625em 0.75em;
}

.contact-item.phone-with-label .phone-number,
.contact-item.email-with-label .email-address {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-actions {
    display: flex;
    gap: 0.75em;
    margin: 1.875em auto;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stili per il link di download vCard */
.vcard-download {
    text-align: center;
    margin: 1.5em auto 0;
}

.vcard-link {
    font-size: 0.875em;
    color: #457b9d;
    font-weight: 400;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-decoration: none;
}

.vcard-link span {
    text-decoration: underline;
}

.vcard-link:hover {
    color: #1d3557;
}

.vcard-link i {
    font-size: 0.9em;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75em;
    height: 3.75em;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.25em;
    transition: all 0.2s ease;
    position: relative;
    border: 0.125em solid transparent;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.phone {
    background: #ee6c4d;
    color: white;
    border: 0.125em solid transparent;
}

.cta-button.whatsapp {
    background: #25d366;
    color: white;
    border: 0.125em solid transparent;
}

.cta-button.maps {
    background: #2ec4b6;
    color: #FFF;
    border: 0.125em solid transparent;
}

.cta-button.email {
    background: #1d3557;
    color: #FFF;
    border: 0.125em solid transparent;
}

.cta-button.vcard {
    background: #DBB957;
    color: white;
    border: 0.125em solid transparent;
}

/* Responsive Design */
@media (max-width: 480px) {

    .contact-actions {
        margin: 1.25em auto;
    }

    .vcard-download {
        margin: 1.25em auto 0;
    }

    .vcard-link {
        font-size: 0.8125em;
    }

    .cta-button {
        width: 3.4375em;
        height: 3.4375em;
    }

    .profile-card {
        padding: 20px 20px 15px;
    }

    .profile-image {
        margin-bottom: 0.9375em;
    }

    .name {
        font-size: 1.7em;
    }

    .contact-item {
        font-size: 0.9em;
        padding: 0.375em 0.625em;
    }

    .contact-row {
        gap: 0.375em;
    }

    .contact-item.phone-with-label,
    .contact-item.email-with-label {
        padding: 0.5em 0.625em;
    }

    .contact-item .phone-label,
    .contact-item .email-label {
        font-size: 0.65em;
    }

    .logo {
        height: 2.1875em;
        width: 2.1875em;
    }

    .cta-button {
        font-size: 0.9375em;
        padding: 0.75em 1.125em;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875em);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: fadeInUp 0.6s ease-out;
}

.profile-image img {
    animation: fadeInUp 0.8s ease-out;
}

.profile-info {
    animation: fadeInUp 1s ease-out;
}

.contact-actions {
    animation: fadeInUp 1.2s ease-out;
}

/* Sezione Loghi */
.logos-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25em;
    margin-top: 0.9375em;
    padding-top: 0.9375em;
    border-top: 1px solid rgba(168, 218, 220, 0.2);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logo-link:is(a):hover {
    opacity: 0.9;
}

.logo {
    height: 2.5em;
    width: auto;
}

.language-section {
    margin-top: 1.25em;
    color: #666;
    font-size: 0.75em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.language-section .balloon {
    background-color: #000;
    color: #fff;
    border-radius: 6.25em;
    text-transform: uppercase;
    line-height: 1;
    font-family: 'Bangers', cursive;
    font-size: 1em;
    letter-spacing: 0.06em;
    transform: rotate(-5deg);
    position: relative;
    margin-right: 0.8em;
}

@media (max-width: 17.1875em) {

    /* testo 200% viewport < 550px */
    .language-section .balloon {
        display: none;
    }
}

.language-section .balloon::after {
    content: '';
    position: absolute;
    bottom: -0.4em;
    left: 0.9em;
    width: 1.2em;
    height: 0.7em;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyMCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgMEwxNCA1TDE4IDEyTDEwIDdMMCAwWiIgZmlsbD0iIzAwMCIvPgo8L3N2Zz4=');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(10deg);
}

.language-section .balloon .texts {
    position: relative;
    height: calc(1em + 0.26em + 0.24em);
    overflow: hidden;
    z-index: 1;
}

.language-section .balloon .texts .animate-texts {
    position: relative;
}

.language-section .balloon .texts p {
    display: block;
    margin: 0;
    line-height: 1em;
    padding: 0.26em 0.6em 0.24em;
}

.language-section .language-specs {
    margin-top: -0.1em;
    color: #000;
}

.language-section .language-specs .texts {
    position: relative;
    height: 1.2em;
    overflow: hidden;
    text-align: left;
}

.language-section .language-specs .texts .animate-texts {
    position: relative;
}

@media (max-width: 17.1875em) {
    .language-section .language-specs .texts {
        text-align: center;
    }

    .language-section .language-specs .texts .animate-texts {
        display: none;
    }
}


.language-section .language-specs .texts p {
    display: block;
    margin: 0;
    line-height: 1.2em;
}

.language-section .language-specs .langs {
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.language-section .language-specs .langs i {
    width: 0.3em;
    height: 0.3em;
    background-color: currentColor;
    border-radius: 100%;
    vertical-align: middle;
    display: inline-block;
    transform: translateY(-0.1em);
}

.footer {
    text-align: center;
    font-size: 0.8em;
    margin-top: 0.9375em;
    color: #707070;
}

.footer p {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer p>span {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.footer img,
.footer svg {
    height: 1.05em;
    width: auto;
    vertical-align: sub;
}

.footer svg path {
    fill: currentColor;
}

.footer a {
    text-decoration: underline;
    color: inherit;
}

.footer i {
    width: auto;
}

@media (prefers-reduced-motion: reduce) {
    .animate-texts {
        transform: none !important;
    }
}