/* ===================================
    Crafto - Lawyer
====================================== */
/* font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');
/* variable */
:root {
    --base-color: #1C2736;
    --dark-gray: #02020A;
    --medium-gray: #1C2736;
    --black: #02020A;
    --very-light-gray: #f3f5f7;
    --alt-font: 'Playfair Display', serif;
    --primary-font: 'DM Sans', sans-serif;
}
body {
    font-size: 16px;
    line-height: 26px;
}
/* custom cursor */
.custom-cursor .circle-cursor-inner {
    background-color: var(--base-color);
    width: 10px;
    height: 10px;
}
.custom-cursor .circle-cursor-inner.cursor-link-hover {
    background-color: var(--base-color);
}
.custom-cursor .circle-cursor-outer {
    border: 1px solid transparent;
}
/* header */
header .navbar-brand img {
    max-height: 36px;
}
header .left-nav .navbar-nav:before {
    background-color: var(--white);
    opacity: 0.2; 
    transform: translate(-28px, 0px);
    -webkit-transform: translate(-28px, 0px);
    transition: 0s;
}
header.sticky .left-nav .navbar-nav:before {
    transform: translate(-28px, 0px);
    -webkit-transform: translate(-28px, 0px);
}
.navbar .navbar-nav .nav-link { 
    font-size: 18px;
    font-weight: 400; 
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
    border-bottom: 1px solid var(--very-light-gray);
    padding: 16px 20px;
    font-weight: 500;
    font-size: 16px;
    color: var(--dark-gray);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li:hover img {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(502%) contrast(502%);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a:hover,
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li.active:hover > a{
    background-color: var(--base-color);
    color: var(--white);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li.active > a {
    color: var(--medium-gray);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu {
    width: 330px;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a {
    color: var(--dark-gray);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a p {
    line-height: 22px;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a img {
    width: 65px;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li.active > a,
.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a:hover {
    color: var(--medium-gray);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a img {
    width: 40px;
    margin-right: 10px;
}
/* pagination */
.pagination-style-01 .page-item.active .page-link,
.pagination-style-01 .page-item .page-link:hover {
    background: var(--dark-gray);
    color: var(--white);
}
.pagination-style-01 .page-item:first-child .page-link,
.pagination-style-01 .page-item:last-child .page-link {
    background: transparent;
    box-shadow: none !important;
}
.pagination-style-01 .page-item:first-child .page-link:hover,
.pagination-style-01 .page-item:last-child .page-link:hover {
    color: var(--dark-gray);
}
/* input */
.input-small, .textarea-small {
    font-size: 14px;
}
/* bg color */
.bg-blue-whale {
    background-color: #05204A;
}
.bg-blue-licorice {
    background-color: #27436e;
}
/* testata delle pagine interne (about, aree di pratica, risultati, contatti, ecc.):
   .bg-dark-gray risolve nel nero del tema, ma la testata deve essere blu */
.bg-dark-gray.top-space-margin {
    background-color: #05204A;
}
/* bg gradient transparent */
.bg-gradient-dark-transparent {
    background: rgba(2, 2, 10, 0.55);
}
/* testo grigio su sfondo blu: il grigio base non ha contrasto sufficiente (WCAG AA),
   variante più chiara solo dove appare su bg-blue-whale/bg-blue-licorice */
.bg-blue-whale .text-base-color,
.bg-blue-whale .text-medium-gray,
.bg-blue-licorice .text-base-color,
.bg-blue-licorice .text-medium-gray {
    color: #AEC0D5;
}
/* eyebrow: lo span prima di un titolo (h1/h2/h3) è azzurro invece che grigio.
   :not(.alt-font) esclude i badge numerati ("01", "02"...) che precedono i titoli
   nelle card ma non sono eyebrow. */
span.text-base-color:not(.alt-font):has(+ h1, + h2, + h3) {
    color: #2f6fb0;
}
/* su sfondo scuro/blu serve una variante più chiara per il contrasto */
.bg-dark-gray span.text-base-color:has(+ h1, + h2, + h3),
.bg-blue-whale span.text-base-color:has(+ h1, + h2, + h3),
.bg-blue-licorice span.text-base-color:has(+ h1, + h2, + h3) {
    color: #AEC0D5;
}
/* btn */
.btn.btn-blue-whale {
    background-color:#05204a;
    color: var(--white);
}
.btn.btn-blue-whale:hover {
    background-color: transparent;
    border-color: #05204a;
    color: #05204a;
}
.btn {
    font-family: var(--primary-font);
    font-weight:500;
    text-transform: inherit;
    letter-spacing: 0px;
}
.btn.btn-link {
    padding: 0 0 2px; 
}
.btn.btn-rounded.btn-extra-large {
    padding: 18px 66px 18px 40px;
    font-size: 17px;
}
.btn.btn-rounded.btn-large {
    padding: 16px 55px 16px 38px;
    font-size: 16px;
}
.btn.btn-large {
    font-size: 15px;
}
/* number pagination style 01 */
.swiper-number-pagination-style-01 .swiper-number .swiper-pagination-bullet {
    font-size: 14px;
}
.process-step-style-02:hover .process-step-icon .number {
    color: var(--white);
}
/* page title */
.page-title-large h1 {
    font-size: 4rem;
    line-height: 3.9rem;
}
/* process step style 03 */
.process-step-style-03:hover .process-step-icon-box .progress-image {
    -webkit-transform: scale(1.3); 
    transform: scale(1.3);
}
/* social icon style 02 */
.social-icon-style-02 .small-icon li {
    margin: 0;
}
/* opacity */
.opacity-05 {
    opacity: 0.05;
}
/* top right bottom left */
.top-minus-35px {
    top: -35px;
}
.left-minus-35px {
    left: -35px;
}
.bottom-minus-35px {
    bottom: -35px;
}
/* footer */
footer .footer-logo img {
    max-height: 36px;
}
.footer-dark {
    color: var(--white);
}
.footer-dark p, .footer-dark a {
    color: var(--white);
}
.footer-dark a:hover,
.footer-navbar li a:hover {
    color: #7392b7;
}
/* i link della nav footer (About, Aree di diritto, ecc.) ereditano --medium-gray
   da style.css: su bg-blue-whale non hanno contrasto sufficiente */
footer .nav-link {
    color: var(--white);
}
.is-touchable .cursor-page-inner {
    display: none !important;
}
/* media query responsive */
@media (max-width: 1400px) {
    .xl-min-h-270px {
        min-height: 270px !important;
    }
}
@media (max-width: 1300px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (max-width: 1199px) {
    header .left-nav .navbar-nav:before {
        transform: translate(-10px, 0px);
        -webkit-transform: translate(-10px, 0px);
    }
    header.sticky .left-nav .navbar-nav:before {
        transform: translate(-10px, 0px);
        -webkit-transform: translate(-10px, 0px);
    }
    .elements-social .large-icon li {
        margin: 0 5px;
    }
    footer .nav-link {
        padding-left: .6rem;
        padding-right: .6rem;
    }
    .navbar .navbar-nav .nav-link {
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 1024px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 8px;
        padding-right: 8px;
    }
}
@media (max-width: 991px) {
    header .widget-text {
        color: var(--dark-gray);
    }
    header .widget-text i {
        color: var(--white);
    }
    .md-bottom-minus-15px {
        bottom: -15px;
    }
    .elements-social.social-icon-style-04 .large-icon a {
        font-size: 21px;
        width: 50px;
        height: 50px;
    }
    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
        padding-left: 0;
        padding-right: 0;
    }
    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a:hover,
    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li:hover img{
        background-color: transparent;
        color: var(--dark-gray);
        filter: inherit;
    }
    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a:hover,
    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li.active:hover > a {
        background-color: transparent;
        color: var(--medium-gray);        
    }
}
@media (max-width: 767px) {
    .sm-top-minus-25px {
        top: -25px;
    }
    .process-step-style-02 .progress-step-separator,
    .process-step-style-03 .progress-step-separator,
    .process-step-style-04 .progress-step-separator {
        display: block;
    }
}
@media (max-width: 575px) {
    .process-step-style-02 .progress-step-separator,
    .process-step-style-03 .progress-step-separator,
    .process-step-style-04 .progress-step-separator {
        display: none;
    }
}
/* wordmark logo (nessun file logo, solo testo) */
.navbar-brand.studio-wordmark {
    padding: 20px 0;
    line-height: 1.15;
}
/* style.css imposta header.sticky .navbar-brand a 20px (più alto): qui invertiamo,
   la navbar deve restringersi dopo lo scroll, non allargarsi */
header.sticky .navbar-brand.studio-wordmark {
    padding: 12px 0;
}
.navbar-brand .studio-wordmark-text {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.3s, color 0.3s;
}
.studio-wordmark-eyebrow {
    display: block;
    font-family: var(--primary-font);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.75;
}
.studio-wordmark-name {
    display: block;
    font-family: var(--alt-font);
    font-style: italic;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.3px;
}
.studio-wordmark-text {
    color: #fff;
}
.studio-wordmark-text-dark {
    color: var(--dark-gray);
}
.studio-wordmark-text-dark .studio-wordmark-eyebrow {
    color: var(--base-color);
    opacity: 1;
}
/* default-logo/alt-logo contengono lo stesso identico wordmark: lo swap che
   style.css fa in sticky-active crea solo uno sparire/riapparire senza motivo */
header.sticky.sticky-active .navbar-brand .alt-logo {
    visibility: hidden;
    opacity: 0;
    width: 0;
}
header.sticky.sticky-active .navbar-brand .default-logo {
    visibility: visible;
    opacity: 1;
    width: auto;
}
/* Typography */
h1, .h1 {
    font-size: 55px;
    line-height: 60px;
}
h2, .h2 {
    font-size: 38px;
    line-height: 44px;
}
h3, .h3 {
    font-size: 32px;
    line-height: 38px;
}
h4, .h4 {
    font-size: 28px;
    line-height: 34px;
}
h5, .h5 {
    font-size: 22px;
    line-height: 28px;
}
h6, .h6 {
    font-size: 20px;
    line-height: 26px;
}
/* titoli responsive: su lawyer.css le dimensioni desktop restavano invariate
   fino a mobile, senza nessuno step intermedio */
@media (max-width: 991px) {
    h1, .h1 { font-size: 46px; line-height: 52px; }
    h2, .h2 { font-size: 34px; line-height: 40px; }
    h3, .h3 { font-size: 28px; line-height: 34px; }
    h4, .h4 { font-size: 25px; line-height: 31px; }
    h5, .h5 { font-size: 21px; line-height: 27px; }
    h6, .h6 { font-size: 19px; line-height: 25px; }
}
@media (max-width: 767px) {
    h1, .h1 { font-size: 38px; line-height: 44px; }
    h2, .h2 { font-size: 30px; line-height: 36px; }
    h3, .h3 { font-size: 25px; line-height: 31px; }
    h4, .h4 { font-size: 22px; line-height: 28px; }
    h5, .h5 { font-size: 20px; line-height: 26px; }
    h6, .h6 { font-size: 18px; line-height: 24px; }
    .page-title-large h1 {
        font-size: 32px;
        line-height: 38px;
    }
}
@media (max-width: 575px) {
    h1, .h1 { font-size: 32px; line-height: 38px; }
    h2, .h2 { font-size: 26px; line-height: 32px; }
    h3, .h3 { font-size: 22px; line-height: 28px; }
    h4, .h4 { font-size: 20px; line-height: 26px; }
    h5, .h5 { font-size: 19px; line-height: 25px; }
    h6, .h6 { font-size: 17px; line-height: 23px; }
}
/* titoli: sempre nel nero del tema, non nel blu primario di .text-dark-gray */
h1.text-dark-gray, h2.text-dark-gray, h3.text-dark-gray, h4.text-dark-gray, h5.text-dark-gray, h6.text-dark-gray,
.h1.text-dark-gray, .h2.text-dark-gray, .h3.text-dark-gray, .h4.text-dark-gray, .h5.text-dark-gray, .h6.text-dark-gray,
h1 a.text-dark-gray, h2 a.text-dark-gray, h3 a.text-dark-gray, h4 a.text-dark-gray, h5 a.text-dark-gray, h6 a.text-dark-gray {
    color: var(--black);
}
@media (max-width: 767px) {
    .studio-wordmark-name {
        font-size: 21px;
    }
}

/* form fix: style.css applies width:100%/padding/border to every <input>,
   which also deforms checkboxes/radios (e.g. the GDPR consent field) into
   a wide box. Restore the native checkbox/radio appearance. */
input[type="checkbox"],
input[type="radio"] {
    width: 1em;
    height: 1em;
    padding: 0;
}

/* accessibilità: style.css rimuove l'outline di default su :focus-visible senza
   fornire un'alternativa (fallisce WCAG 2.4.7 Focus Visible) */
:focus-visible {
    outline: 2px solid #05204a !important;
    outline-offset: 2px;
}

/* skip link: nascosto finché non riceve il focus da tastiera */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 2000;
    padding: 10px 20px;
    background: #05204a;
    color: var(--white);
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* WhatsApp floating button */
.btn-whatsapp {
    position: fixed;
    right: 28px;
    bottom: 28px;
    background: #25d366;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.btn-whatsapp::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    animation: whatsapp-pulse 2s ease-out infinite;
    z-index: -1;
}
.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, .65);
    color: #fff;
}
/* form di contatto: link interni nel blu del template (#05204a, stesso di header/footer/pulsanti) */
.form-link-blue {
    color: #05204a;
}
.form-link-blue:hover {
    opacity: 0.75;
}
/* icone pagina contatti: stesso blu #05204a invece del grigio di var(--base-color) */
.icon-accent-blue {
    color: #05204a;
}
/* recapiti pagina contatti: l'hover di default (a:hover, riga 136 di style.css) usa
   var(--base-color) che qui è grigio; nei contatti deve restare blu */
.contacts-info a:hover {
    color: #05204a;
}
@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: .6
    }
    70% {
        transform: scale(1.5);
        opacity: 0
    }
    100% {
        transform: scale(1.5);
        opacity: 0
    }
}