*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

#hcont {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

#hcc {
    flex: 0 0 auto;
}

#logo {
    max-height: 180px;
}

#nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#hcs a,
#hcd a,
#hcontact a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    padding: 5px 10px;
}

#hcs a:hover,
#hcd a:hover,
#hcontact a:hover {
    color: #007BFF;
    background-color: #f0f0f0;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 20px;
}

footer {
    width: 100%;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    background-color: black;
    display: flex;
    flex-direction: column;
}

#fcont {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

#fr1 a,
#fr2 span {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

#fr2 {
    width: 100%;
    text-align: right;
}

#servizi {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
}

#servizi h1 {
    text-align: center;
    color: #003c6c;
    font-size: 40px;
    margin: 20px 0;
    text-transform: uppercase;
}

#servizi h3 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin: 30px 0 10px;
    text-transform: uppercase;
}

.sr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.card-container {
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: #fff;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
    transition-timing-function: linear;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 50%;
    height: 180px;
}

.card-content {
    padding: 15px;
    text-align: center;
    position: relative;
}

.card-content > a {
    text-decoration: none;
}

.card-title {
    font-size: 1.5em;
    margin: 0;
    color: #333;
}

.card-details {
    display: none;
    font-size: 0.9em;
    margin-top: 10px;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

.card-container:hover .card-details {
    display: block;
}

#hm_r2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #d4d4d48a;
}

#hm_r2 > h1 {
    text-align: center;
    color: #003c6c;
    margin: 0;
    font-size: 40px;
    transition: font-size 0.5s;
    transition-timing-function: linear;
    margin-top: 50px;
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: uppercase;
}

#hm_r2 > h1:hover {
    font-size: 60px;
}

#hm_r2 > h2 {
    color: #32cd32;
    text-align: center;
    margin: 0;
    font-size: 25px;
    font-weight: normal;
}

#hm_r2 > p {
    text-align: center;
    font-size: 20px;
    font-family: Montserrat;
    font-weight: normal;
}

#hm_cont1 {
    display: flex;
    align-items: center;
}

#hm_col1 {
    width: 40%;
    margin: 0 auto;
    text-align: left;
    height: 100%;
    background-color: white;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 50px;
    margin-top: 50px;
}

#hm_col1 > h2 {
    text-align: center;
}

#hm_col1 > ul {
    margin: 0;
    padding-left: 0;
}

#hm_col1 > ul > li {
    margin-bottom: 10px;
    padding-left: 10px;
}

#hm_col1 > .a_but {
    text-align: center;
}

#hm_col1 > h2 {
    color: #003c6c;
}

#hm_col1 > ul > li > strong {
    color: black;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0px;
    margin-bottom: 20px;
    font-size: 18px;
}

.hm_serv {
    margin-bottom: 20px;
    border: none;
    font-weight: bold;
    font-style: italic;
    font-size: 20px;
    background-color: #003c6c;
    border-radius: 5px;
    color: #E0F7FA;
    transition: color 0.3s, background-color 0.3s;
    transition-timing-function: linear;
}

.hm_serv:hover {
    color: #1473BD;
    background-color: #E0F7FA;
    cursor: pointer;
}

#hm_col2 {
    width: 50%;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 50px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-content: center;
}

.futgone {
    margin-top: 70px;
    width: 30%;
    height: 50%;
    margin-right: 70px;
    border-radius: 10px;
    border: solid white 5px;
}

.futgone2 {
    width: 30%;
    border-radius: 10px;
    border: solid white 5px;
}

#tends {
    width: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

#tendcont {
    width: 70%;
    background-color: #d4d4d48a;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

#tendtext {
    width: 50%;
}

#imgd {
    width: 50%;
    display: flex;
    justify-content: center;
}

.tenda {
    width: 50%;
    border-radius: 15px;
}

#cc {
    display: flex;
    justify-content: center;
    align-content: center;
}

#contatti {
    width: 100%;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

#contact-section {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact-section h1 {
    text-align: center;
    color: #003c6c;
    font-size: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#contact-section p {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

#contact-section label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

#contact-section input[type="text"],
#contact-section input[type="email"],
#contact-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#contact-section input[type="text"]:focus,
#contact-section input[type="email"]:focus,
#contact-section textarea:focus {
    border-color: #007BFF;
    outline: none;
}

#contact-section textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-section input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #003c6c;
    border: none;
    border-radius: 5px;
    color: #E0F7FA;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#contact-section input[type="submit"]:hover {
    background-color: #E0F7FA;
    color: #1473BD;
}

#contactMessage {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
}

@media (max-width: 768px) {
    body {
        max-width: 100%;
    }
    
    #hcont {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    #nav-right {
        align-items: center;
        margin-top: 10px;
    }
    
    #logo {
        max-height: 120px;
    }
    
    #hcs a, 
    #hcd a,
    #hcontact a {
        font-size: 18px;
    }
    
    #hm_cont1 {
        flex-direction: column;
        align-items: center;
    }
    
    #hm_col1, 
    #hm_col2 {
        width: 90%;
        margin: 10px 0;
    }
    
    .futgone, 
    .futgone2 {
        width: 50%;
        margin: 10px 0;
    }
    
    #tendcont {
        width: 90%;
        flex-direction: column;
    }
    
    #tendtext, 
    #imgd {
        width: 90%;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        align-content: center;
        font-size: 15px;
    }
    
    .tenda {
        width: 100%;
        height: 30%;
        margin-top: 120px;
    }
    
    #fcont {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #fr2 {
        text-align: left;
        margin-top: 10px;
    }
    
    #contact-section {
        padding: 20px;
    }
    
    #contact-section h1 {
        font-size: 30px;
    }
    
    #servizi {
        padding: 10px;
    }
    
    .sr {
        gap: 10px;
    }
    
    .card-container {
        width: 45%;
    }
    
    .card-image {
        width: 70%;
        height: 150px;
    }
    
    .card-title {
        font-size: 1.3em;
    }
    
    .card-details {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .card-container {
        width: 100%;
    }
}