@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {

    /* colors */
    --prymary-text-color: #333333;
    --primary-background: #ffffff;
    --secondary-text-color: #005a8d; /* titoli e testo da evidenziare */
    --cta : #00a676;
    --cta-hover: #008060;
    --enfatic-elements: #f28c28; /* per badge, icone, sezioni secondarie */
    --footer: #002b36;

    /* Font */
        --font-primary: 'Montserrat', sans-serif;
        --font-size-base: 16px;
        --font-size-title: 28px;
        --font-size-subtitle: 22px;
        --line-height-base: 1.6;
}


body{
    font-family: var(--font-primary);
    color: var(--prymary-text-color);
}

#header{
    height: 100vh;
    background: -webkit-linear-gradient(45deg, #ffffff, #f28c28, #ffcad4);
    background-size: 400% 400%;
    animation: animate 4s infinite alternate;
}

.brand{
    font-size: 30px;
    color: var(--secondary-text-color);
    font-weight: bold;
    font-weight: 500;    
}

.nav-link{
    color: var(--secondary-text-color);
    font-size: medium;
}

.nav-link {
    position: relative;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: var(--secondary-text-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--secondary-text-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.btn{
    background-color: var(--cta);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn:hover{
    background-color: var(--cta-hover);
    transition: background-color 0.3s ease;
    color: #fff;
}

h1{
    font-size: 3.5rem;
    color: var(--secondary-text-color);
}

h3{
    font-size: 1.5rem;
    color: var(--secondary-text-color);
}

header p,
.service-p{
    font-size: 1.6rem;
    line-height: var(--line-height-base);
    color: var(--prymary-text-color);
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-background);
    color: var(--prymary-text-color);
    border-color: var(--enfatic-elements);
    box-shadow: 8px 8px 10px -3px var(--enfatic-elements);
    min-height: 420px;
    height: 100%;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info{
    min-height: 75vh;
}

.bi{
    color: var(--secondary-text-color);
    font-size: 4rem;
}

.formular{
    padding: 4em;
    background-color: var(--enfatic-elements);
    color: var(--primary-background);
}

.formular input[type="text"],
.formular input[type="email"],
.formular input[type="tel"] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: none;
    border-radius: 4px;
    outline: none;
    font-size: var(--font-size-base);
}

footer{
    background-color: var(--footer);
    padding: 40px 0;
    color: var(--primary-background);
}

.cursor-box {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cursor-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: -100%;
    left: -100%;
    transition: all 0.5s ease;
}

.cursor-box:hover::before {
    top: 100%;
    left: 100%;
}

.zoom-in:hover {
    transform: scale(1.05);
}


@keyframes animate{
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .brand {
        font-size: 1rem;
    }
    
    .container p {
        font-size: 16px;
    }
    
    #header .container {
        padding: 0;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-background);
        z-index: 1000;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
        padding: 10px 0;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .navbar-nav {
        text-align: center;
    }

    .card i {
        font-size: 2rem;
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    .card {
        margin: 0 auto;
        width: 90%;
        flex: 1 1 calc(50% - 20px);
        margin-bottom: 30px;
    }

    .card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 50px;
    }
    
    #about {
        border-bottom: 1px solid #333;
    }
    
    .service-p {
        font-size: 16px;
    }
    
    .services{
        margin-top: 15px;
    }
    
    .social-media {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
    }
    
    .social-media a {
        text-align: left;
        color: #fff;
    }
}