
body {
    overflow-x: hidden;
    font-family: 'DmSans-Variable';
}
body.user-space layout {
    padding-top: 150px;
    display: block;
}

div, p, li, h1,h2,h3,h4,h5,h6, b, a, span {
    font-family: 'DmSans-Variable';
    font-weight: 400;
}
h4,h5,h6 {
    font-weight: 550;
}

.portale-front h1,
.portale-front h2 {
    font-size: 2.8rem;
    font-weight: 450;
    line-height: 1.12;
}


h1 strong, h2 strong, h3 strong {
    color: #FD175B;
    font-family: 'PlayFair-variable';
    font-style: italic;
    font-weight: 500;
}

.home .hero-section h1 {
    width: 52%;
}

p {
    color: #999;
    line-height: 1.16;
}

hr {
    border-color: #a7c3da;
}

i.icona {
    color: #567c9c;
    font-size: 30px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.digi-rosa {
    color: #FD175B;
}

.section-heading {
    border-bottom: 1px solid #ececec14;
    padding: 30px 5%;
    position: relative;
}
.portale-front .section-heading p {
    font-size: 18px;
}
.portale-front .section-heading h2 {
    font-size: 13rem;
    position: absolute;
    text-align: right;
    width: 95%;
    top: -10px;
    z-index: -1;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 700;
}
.portale-front .section-heading.scrivici {
    padding: 20px 2%;
    height: 100px;
    border: none;
}
.portale-front .section-heading.scrivici h2 {
    text-align: left;
}

.home input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.home select, .home textarea {
    background-color: unset;
    border: none;
    color: #fff;
    border-bottom: 2px solid #ddd;
    padding: 12px 6px;
    font-size: 16px;
}
form #error-messages {
  margin-bottom: 1em;
  font-size: 0.9em;
}
form #error-messages div {
    display: block;
  margin-bottom: 5px;
  color: #a30808;
  font-size: 18px;
}
form #error-messages div.success {
    color: #3d9415;
    font-size: 20px;
}
.home form fieldset.acceptance {
    flex-direction: row;
    gap: 5px;
    margin-top: 15px;
}
.home form fieldset {
    margin: 0;
}
.home form p,
.home form span {
    font-size: 1.12rem;
    margin: 0;
}
.home form input[type="submit"] {
    width: fit-content;
    padding: 18px 5%;
    border-radius: 50px;
    background: unset;
    border: 1px solid #ddd;
    color: #ddd;
    text-transform: unset;
}
.home form input[type="submit"]:hover {
    background: #fff;
    color: #141414;
}
.home form input[type="submit"][disabled] {
    opacity: 0.8;
    cursor: not-allowed;
}
.home input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: unset;
    border: 1px solid #ddd;
    width: 15px;
    height: 15px;
    margin: 0;
}
.home input[type="checkbox"]:checked {
    background-color: #fff;
}
nav.menu-principale {
    position: absolute;
    width: 100vw;
    top: 0px;
    left: 0px;
    z-index: 1;
    padding: 20px 5%;
}
nav.menu-principale .brand img {
    max-width: 300px;
    opacity: 1;
    transition: opacity 0.68s ease;
}

.scrolled-over nav.menu-principale .brand img.part-2 {
    opacity: 0;
}

.portale-front {
    background-color: #141414;
}
.portale-front.anteprima_necrologio, 
.portale-front.invito_cerimonia {
    background-color: #fff;
}
.portale-front.anteprima_necrologio nav.menu-principale .brand img,
.portale-front.invito_cerimonia nav.menu-principale .brand img {
    max-width: 100px;
}
.portale-front nav.menu-principale {
    background-color: #141414;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    border-bottom: 1px solid #ececec14;
    position: fixed;
    top: 0px;
    z-index: 3;
}
.portale-front.scrolled-over .menu-principale {
    border: none;
}

.digitalia-magic-logo {
    display: flex;
    align-items: center;
    max-width: 223px;
    gap: 5px;
}
.digitalia-magic-logo .part-1 {
    width: 20%;
}
.digitalia-magic-logo .part-2 {
    width: 80%;
    position: relative;
    top: 5px;
}

.button.accesso-riservato {
    position: fixed;
    top: 0px;
    right: 20px;
    border-radius: 0px 0px 10px 10px;
}

nav.menu-principale .elements > li > a {
    color: #fff;
    font-weight: 600;
}

.home .accordion {
    border-radius: 0;
    border: none;
    margin-bottom: 25px;
}

.home .accordion .accordion-header {
    background: unset;
    border: 1px solid #ddd;
    border-radius: 15px;
    color: #ddd;
    padding: 30px 25px;
    font-size: 18px;
    transition: background 0.68s ease, border 0.68s ease;
}
.home .accordion  .accordion-header:hover {
    background-color: #4d1526;
    border-color: #4d1526;
}
.home .accordion[aria-open="true"] .accordion-header  {
    background-color: #FD175B;
    border-color: #FD175B;
    color: #fff;
}
.home .accordion-header::after {
    right: 20px;
}
footer {
    position: relative;
}

footer .social-icon {
    display: flex;
        gap: 20px;
}

footer img.digi-logo {
    margin-bottom: 40px;
}

footer .footerball-01 {
    width: 400px;
    height: 400px;
    position: absolute;
    opacity: 0.32;
    user-select: none;
    pointer-events: none;
    animation: moveball01 5s ease-in-out infinite;
    animation-direction: alternate;
}
footer .footerball-02 {
    width: 400px;
    height: 400px;
    position: absolute;
    opacity: 0.32;
    user-select: none;
    pointer-events: none;
    animation: moveball02 8s ease-in-out infinite;
    animation-direction: alternate;
}

footer .row .col.partner {
    display: flex;
    align-items: center;
    gap: 15px;
}

footer .row .col.partner img {
    width: 18%;
}
.page.home {
    padding-top: 70px;
    color: #e0e0e0;
}

.home a {
    color: #959595;
}
.home .lista-sezioni {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.home .lista-sezioni a {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.home .lista-sezioni p {
    font-size: 20px;
    margin: 0;
    color: #959595;
}
.home .lista-sezioni a img {
    opacity: 0.48;
}

.home .section-uno {
    padding: 30px 0px;
}

section .row {
    width: 90%;
    margin: 0 auto;
}

.home .section-uno .row {
    gap: 5%;
    width: 90%;
    margin: 0 auto;
}
.home .section-uno .row .col:first-child {
    width: 70%;
    height: 600px;
    border-radius: 25px;
    overflow: hidden;
}
.home .section-uno .row .col:last-child {
    width: 25%;
}

.home .section-uno .row picture {
    width: 100%;
    height: 100%;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    box-shadow: 0px 0px 2px 0px;
    display: block;
    margin: 0 auto;
    opacity: 0.8;
}

.home .servizi {
    padding: 20px 5%;
}
.home .servizi > .row {
    gap: 20px;
    align-items: center;
}
.home .servizi > .row .col:first-child {
    width: fit-content;
}
.home .servizi > .row .col h1 {
    min-width: max-content;
}
.home .servizi > .row hr {
    border-bottom-width: 2px;
    margin: 0;
}
.home .servizi .griglia {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin: 40px 0px;
}
.home .servizi .griglia i.icona {
    font-size: 70px;
    width: auto;
    height: auto;
    margin-bottom: 10px;
}
.home .servizi .griglia .post-card h4 {
    font-weight: 450;
    font-size: 1.56rem;
}

.home .servizi .griglia .post-card content p:first-of-type {
    margin-bottom: 0px;
}

.home .section-uno h1 {
    margin-top: 40px;
    margin-bottom: 60px;
    text-align: center;
    font-size: 2.8em;
}
.home .section-uno h2 {
    text-align: center;
    font-size: 2.2em;
}


.home .section-uno h3 {
    margin-bottom: 20px;
}

.sezione-recensioni {
    background-size: auto 100%;
    padding: 60px 15%;
    text-align: center;
    background-position: center;
}
.sezione-recensioni .recensioni {
    margin: 20px 0px;
}

.home p strong {
    color: #ddd;
    font-weight: 500;
}

main > footer {
    padding: 40px 60px;
    text-align: center;
    border-top: 1px solid #ececec14;
}
.accordion .accordion-content {
    padding: 30px 20px;
    padding-bottom: 10px;
    font-size: 1.23em;
    line-height: 1.4;
    transition: height 1s ease;
}

.row.riga-descrittiva .col:first-child {
    width: 70%;
    font-size: 1.4rem;
}
.row.riga-descrittiva .col:last-child {
    width: 30%;
}
section.form-di-contatto {
    background-color: rgba(37, 44, 44, 0.4);
    border-radius: 40px 40px 0px 0px;
    padding: 70px 5%;
    backdrop-filter: blur(10px);
}
.portale-front section.form-di-contatto  h2 {
    margin-bottom: 60px;
}
section.form-di-contatto form {
    padding: 0;
}
section.hero-section {
    padding: 90px 5%;
    margin-top: 80px;
    padding-top: clamp(2rem, 6vw, 4rem);
    padding-bottom: clamp(2rem, 6vw, 2rem);
}
section.fasi-di-lavoro {
    padding: 60px 5%;
}
.fasi-di-lavoro .row {
    width: 100%;
    justify-content: space-between;
}
.fasi-di-lavoro .row .col:first-child {
    width: 45%;
}
.fasi-di-lavoro .row .col:last-child {
    width: 40%;
}
.fasi-di-lavoro .lista li {
    display: flex;
    gap: 5px;
    align-items: end;
    font-size: 21px;
    margin-bottom: 15px;
}
.fasi-di-lavoro .lista li p {
    color: #959595
}
.fasi-di-lavoro .testo {
    font-size: 2.9rem;
    line-height: 1.1;
}
.fasi-di-lavoro .testo strong {
    color: #FD175B;
    font-family: 'FairPlay-Variable';
    font-style: italic;
}
.fasi-di-lavoro .lista li span {
    color: #FD175B;
}
.servizi .post-card {
    border-radius: 20px;
    background: rgba(37, 44, 44, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    min-height: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    padding: 50px;
}

.servizi .post-card content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 0;
}
.servizi .post-card content p {
    font-size: 1.16rem;
}
section.cta {
    padding: 100px 5%;
    background-color: #FD175B;
    text-align: center;
    font-weight: 500;
}
section.cta .button.white-button {
    border: 1px solid #efefef;
    background-color: #efefef;
    color: #FD175B;
    text-transform: unset;
    font-size: 1.2rem;
}
.cta-content p,
.cta-content h3 {
    font-size: 18px;
    color: #efefef;
    margin-bottom: 40px;
}
.cta-content h3 {
    line-height: 1.18;
    font-size: 1.9rem;
    font-weight: 500;
}
.cta-content h3 strong {
    color: #e0e0e0;
}
section.faq-section {
    padding: 30px 5%;
}
section.faq-section .row {
    width: 100%;
    gap: 5%;
}
section.faq-section .row .col:first-child {
    width: 35%;
}
section.faq-section .row .col:last-child {
    width: 60%;
}
.faq-section h2 {
    margin-bottom: 60px;
}
.faq-section .testo p {
    color: #999;
    font-size: 1.42rem;
    line-height: 1.3;
}
.faq-section .testo strong {
    color: #ddd;
    font-weight: 500;
}
.portale-front footer {
    background-color: rgba(37, 44, 44, 0.4);
    text-align: left;
    color: #e0e0e0;
    padding: 80px 5%;
}
.portale-front nav.menu-principale .elements {
    gap: 5px;
}
.portale-front nav.menu-principale .elements > li > a,
.portale-front  a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: 1px solid #fff;
    padding: 18px 45px;
    color: #fff;
    font-weight: 400;
    font-size: 1.1rem;
    transition: 0.3s;
    background-color: unset;
}
.portale-front nav.menu-principale .elements > li > a {
    text-transform: unset;
    font-size: 1.2rem;
}

.portale-front nav.menu-principale .elements > li > a:hover,
.portale-front  a.button:hover {
    background-color: #FD175B;
    border-color: #FD175B;
}
.portale-front nav.menu-principale .elements > li > a.button-alt {
    background-color: #ffffff;
    display: flex;
    border-radius: 50%;
    height: 53px;
    width: 53px;
    align-items: center;
    justify-content: center;
    margin-left: 7px;
    padding: 15px;
    animation: pulsazione 3s infinite;
}

.portale-front footer a {
    color: #bbb;
    font-weight: 550;
}

.portale-front footer p {
    color: #e0e0e0;
    font-size: 16px;
}
.portale-front footer h4 {
    margin-bottom: 30px;
}
.portale-front footer h4.gdpr {
    margin: 40px 0px;
    font-size: 1.6em;
}
.portale-front footer .col:nth-child(2) p {
    font-style: italic;
}
.portale-front footer .footer-copyright p {
    font-style: italic;
}
main > footer > .row {
    gap: 0px;
    margin-bottom: 30px;
}
main > footer > .footer-action {
    padding: 20px 20%;
}
main > footer > .footer-action  h2 {
    color: #8B8B8B;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
}
main > footer > .row .col i.icona {
    border: 3px solid #567c9c;
    width: 40px;
    height: 40px;
    padding: 20px;
}

main > footer > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    margin-top: 10px;
}

main > footer h3 {
    border-bottom: 1px solid #a7c3da;
    padding-bottom: 10px;
    font-weight: 400;
    font-size: 30px;
    font-family: 'Montserrat';
    margin-bottom: 20px;
}

main > footer .footer-copyright {
    font-size: 10px;
}


footer > .row > .col {
    text-align: center;
}
.portale-front footer > .row > .col {
    text-align: left;
}

.portale-header {
    width: 100%;
    height: 540px;
    background-color: red;
    display: block;
    overflow: hidden;
}

.portale-header.header-slider > div {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.page .parallax {
    width: 100%;
    height: 400px;
    background-size: 130% auto;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.page .parallax::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.46);
}

.page .parallax hr {
    z-index: 1;
    width: 2px;
    border-bottom: 100px solid silver;
    margin: 0;
}
.page .parallax h1 {
    z-index: 1;
    color: #fff;
    font-weight: 400;
    font-size: 50px;
}

img.user-necrologio-picture {
    max-width: 600px;
    margin: 0 auto 60px;
    display: block;
    border: 10px solid #fff;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.user-necrologio-title {
    color: #000;
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.anteprima-necrologio  {
    margin-top: 80px;
}
.anteprima-necrologio h2.nome {
    text-align: center;
    margin-bottom: 30px;
}
.anteprima-necrologio .necro-descrizione {
    text-align: center;
}

/* animazioni */
.fade-in-up {
    animation: fadeInUp 0.86s cubic-bezier(0.53, 0.03, 0.01, 0.46) forwards;
}
@keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
@keyframes pulsazione {
	0% {
		transform: scale(1); /* Inizio normale */
		opacity: 1;          /* Opacità iniziale */
	}
	50% {
		transform: scale(1.1); /* Ingrandisce il pulsante */
		opacity: 0.85;         /* Cambia l'opacità a 0.7 */
	}
	100% {
		transform: scale(1); /* Torna alle dimensioni normali */
		opacity: 1;          /* Torna all'opacità normale */
	}
}
@keyframes moveball01 {
    0% {
      top: 5%;
      left: 5%;
    }
    100% {
      top: 15%;
      left: 10%;
    }
}

@keyframes moveball02 {
    0% {
        bottom: 0;
        right: 5%;
    }
    100% {
        bottom: 5%;
        right: 10%;
    }
}

@font-face {
	font-family: 'DmSans-Variable';
	src: url('../webfonts/dmsans-variable.ttf');
}

@font-face {
	font-family: 'PlayFair-Variable';
	src: url('../webfonts/playfair-variable.ttf');
}
@font-face {
	font-family: 'Bodoni-Book';
	src: url('../webfonts/bodoni-book.ttf');
}

@font-face {
	font-family:'Montserrat';
	src: url('../webfonts/montserrat.ttf');
}

#mappa-funebre canvas.mapboxgl-canvas {
    position: relative;
}

@media screen and (max-width: 1024px) {
    .row {
        flex-direction: column;
    }
    .row .col,
    .fasi-di-lavoro .row .col:first-child,
    .fasi-di-lavoro .row .col:last-child,
    section.faq-section .row .col:first-child,
    section.faq-section .row .col:last-child,
    section.faq-section .row .col:last-child,
    .home .section-uno .row .col:first-child,
    .home .section-uno .row .col:last-child {
        width: 100%;
    }
    .home .section-uno .row .col:last-child {
        padding-top: 40px;
    }
    .home .servizi .griglia {
        display: flex;
        flex-direction: column;
    }
    .portale-front footer > .row > .col {
        margin-bottom: 30px;
    }
    footer .row .col.partner img {
        max-width: 80px;
    }
    .portale-front nav.menu-principale .elements > li:first-child > a.button {
        display: none;
    }
    
}