/* Stili generali */
img {
    transition: transform 0.3s ease-in-out;
}

.btn-primary {
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.fade-in {
    animation: fadeIn 1s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.rifilo-section {
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 0;
}

.rifilo-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 48%;
    margin: 10px;
    min-width: 300px;
    padding: 20px;
}

 h2 {
    border-bottom: 2px solid #ddd;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-align: center;
}

 h3 {
    border-bottom: 2px solid #ddd;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.rifilo-content li {
    align-items: center;
    display: flex;
    margin-bottom: 10px;
}

.rifilo-content li .material-icons {
    font-size: 24px;
    margin-right: 10px;
}

.rifilo-content p,
.rifilo-content ul {
    margin-bottom: 15px;
}

.rifilo-content ul {
    list-style: none;
    padding-left: 0;
}

.manuale .material-icons {
    color: #e74c3c;
}

.automatico .material-icons {
    color: #2ecc71;
}

.content p,
.content ul {
    margin-bottom: 15px;
}

.content ul {
    list-style: none;
    padding-left: 0;
}


.image-analysis,
.defect-analysis,
.param-config,
.laser,
.pallet,
.section-bordata{
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    min-width: 300px;
    overflow: hidden;
    padding: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Rapporto di aspetto 16:9 */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.stampe {
    padding: 20px 0;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.stampe h2 {
    text-align: center;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.grid-item {
    overflow: hidden;
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-item-max {
    grid-column: span 4;
    grid-row: span 4;
}

footer h3 {
    border-bottom: none;
}
