body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f7f9fc;
    color: #333;
}

a {
    color: #3ABEFF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

header {
	display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white; /* Importante per evitare trasparenze */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	padding: 20px 20px; /* Aumentato rispetto al default */
}

header img.logo {
    height: 50px;
}
header nav a {
    margin-left: 20px;
    font-weight: 500;
    color: #333;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #FF3C7E, #3ABEFF);
    color: white;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}
.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}
.btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: white;
    color: #FF3C7E;
    font-weight: 600;
    border-radius: 30px;
    transition: background 0.3s;
}
.btn-primary:hover {
    background: #f0f0f0;
}
.intro {
    text-align: center;
    padding: 60px 20px;
}
.intro h2 {
    margin-bottom: 40px;
    font-size: 28px;
}
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.card {
    background: white;
    border: none;
    padding: 25px;
    width: 300px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
}
.card h3 {
    margin-top: 0;
    color: #FF3C7E;
}
.card p {
    font-size: 15px;
    color: #555;
}
.card a {
    display: inline-block;
    margin-top: 10px;
    color: #3ABEFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-container {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.swiper {
    width: 100%;
}
.swiper-slide {
    text-align: center;
    font-size: 16px;
    padding: 10px 20px;
}
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
	 width: 100%;
}
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}
nav {
    display: flex;
    gap: 20px;
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        padding: 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    nav a {
        margin: 10px 0;
    }
    nav.open {
        display: flex;
    }
}

footer {
    background: #333;
    color: #fff;
    padding: 30px 20px;
    font-size: 14px;
    text-align: center;
}
footer a {
    color: #3ABEFF;
}
footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .grid {
        flex-direction: column;
        align-items: center;
    }
    .hero h1 {
        font-size: 32px;
    }
	.grid .card {
        width: 80%;
        max-width: 400px;
        margin: 0 auto;
    }
}

body {
    padding-top: 90px; /* o più, se serve */
    padding-bottom: 100px;
}

.hero-carousel {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #FF3C7E, #3ABEFF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
	margin-top: 20px; /* o 30px se preferisci più spazio */
}
.hero-carousel .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    width: 100%;   /* << AGGIUNGI QUESTO */
    box-sizing: border-box; /* << E QUESTO */
}
.hero-carousel h1 {
    font-size: 36px;
    margin: 0 0 10px;
}
.hero-carousel p {
    font-size: 18px;
    margin: 0 0 20px;
}
.hero-carousel .btn-primary {
    background: white;
    color: #FF3C7E;
}
.hero-carousel .btn-primary:hover {
    background: #f0f0f0;
}
@media (max-width: 768px) {
    .hero-carousel {
        height: auto;
        padding: 40px 0;
    }
    .hero-carousel h1 {
        font-size: 24px;
    }
    .hero-carousel p {
        font-size: 16px;
    }
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: 14px;
}
.cookie-banner p {
    margin: 0;
    flex: 1 1 auto;
}
.cookie-banner a {
    color: #3ABEFF;
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.btn-cookie {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
}
.btn-cookie.accept {
    background: #3ABEFF;
    color: #fff;
}
.btn-cookie.reject {
    background: #6c757d;
    color: #fff;
}
@media (min-width: 600px) {
    .cookie-buttons {
        margin-top: 0;
    }
}

.btn-manage-cookies-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #3ABEFF;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 9999;
}
.btn-manage-cookies-fixed:hover {
    background: #349bd1;
}


.btn-manage-cookies {
    background: none;
    border: none;
    color: #3ABEFF;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
}

.cookie-banner-advanced {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    margin: auto;
    background: white;
    color: #333;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
}
.cookie-banner-advanced h3 {
    margin-top: 0;
}
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}
.cookie-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.btn-cookie {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
.btn-cookie.accept {
    background: #3ABEFF;
    color: white;
}
.btn-cookie.reject {
    background: #6c757d;
    color: white;
}

.btn-manage-cookies {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3ABEFF;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: background 0.3s, transform 0.2s;
}
.btn-manage-cookies:hover {
  background: #349bd1;
  transform: translateY(-2px);
}
.btn-manage-cookies:focus {
  outline: 2px solid #005a8f;
}


.cookie-section {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 4px;
}

.cookie-section h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
}

.cookie-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.cookie-section th,
.cookie-section td {
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 14px;
}

.cookie-section th {
  background: #f0f0f0;
  text-align: left;
}

.cookie-section tr:nth-child(even) {
  background: #fafafa;
}


.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.utility-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.utility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}


.utility-card-header h2 {
    font-size: 1.1em;
    margin: 0 0 8px;
    color: #222;
}

.utility-card-body p {
    font-size: 0.95em;
    color: #555;
    flex-grow: 1;
}

.utility-card-footer {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.utility-card p {
    color: #555;
    font-size: 0.95em;
}


.utility-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    color: #fff;
}

.badge-uses {
    background: #3182ce;
}

.badge-popular {
    background: #d53f8c;
}

.badge-new {
    background: #38a169;
}

.btn-utility {
    display: inline-block;
    background: #3182ce;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-utility:hover {
    background: #2b6cb0;
}

.utility-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.utility-filters select,
.utility-filters button {
    padding: 8px;
    font-size: 1em;
}

.badge-uses {
    background: #007bff;
}

.badge-popular {
    background: #e83e8c;
}

.badge-new {
    background: #28a745;
}

.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 4px;
    padding: 6px 12px;
    background: #edf2f7;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
}

.pagination a.active {
    background: #3182ce;
    color: #fff;
}

.pagination a:hover {
    background: #e2e8f0;
}


.utility-card {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 600px) {
    .utility-grid {
        grid-template-columns: 1fr;
    }

    .utility-card {
        padding: 16px;
    }

    .utility-card-header h2 {
        font-size: 1.2em;
    }

    .btn-utility {
        width: 92%;
    }
}


.utility-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.utility-detail h1 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #2d3748;
}

.utility-description {
    color: #555;
    margin-bottom: 20px;
    font-size: 1em;
}

.utility-app-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.utility-fallback-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.utility-fallback-img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.utility-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8em;
    color: #fff;
}

.badge-category {
    background: #4a5568;
}

.badge-version {
    background: #805ad5;
}

.badge-uses {
    background: #38a169;
}

.badge-date {
    background: #2b6cb0;
}

.btn-back {
    display: inline-block;
    background: #3182ce;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-back:hover {
    background: #2b6cb0;
}


.contact-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.contact-page h1 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #2d3748;
}

.contact-intro {
    color: #555;
    margin-bottom: 20px;
}

.contact-form-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.contact-form-container label {
    display: block;
    margin-bottom: 6px;
    color: #4a5568;
    font-weight: 500;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 95%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1em;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: #3182ce;
    outline: none;
}

.btn-contact {
    background: #3182ce;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-contact:hover {
    background: #2b6cb0;
}

.contact-info {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.contact-info h2 {
    margin-top: 0;
    font-size: 1.2em;
}

.contact-info p {
    margin: 6px 0;
}
.contact-success {
    background: #c6f6d5;
    border: 1px solid #48bb78;
    color: #22543d;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}


.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.article-card h2 {
    font-size: 1.2em;
    margin: 0 0 8px;
    color: #2d3748;
}

.article-card p {
    flex-grow: 1;
    color: #555;
    font-size: 0.95em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.badge {
    display: inline-block;
    background: #4a5568;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75em;
}

.badge-category {
    background: #805ad5;
}

.badge-date {
    background: #718096;
}

.btn-article {
    display: inline-block;
    background: #3182ce;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

.btn-article:hover {
    background: #2b6cb0;
}

.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.article-detail h1 {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.article-detail .article-meta {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.article-cover {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.article-content {
    color: #333;
    line-height: 1.6;
}

.btn-back {
    display: inline-block;
    background: #3182ce;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
}

.btn-back:hover {
    background: #2b6cb0;
}


.article-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.article-filters select,
.article-filters button {
    padding: 6px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95em;
}


.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.article-detail h1 {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: #2d3748;
}

.article-meta {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.article-cover {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.article-content {
    color: #333;
    line-height: 1.6;
    font-size: 1em;
}

.article-content p {
    margin-bottom: 1em;
}

.btn-back {
    display: inline-block;
    background: #3182ce;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
}

.btn-back:hover {
    background: #2b6cb0;
}


.article-content h2 {
    font-size: 1.3em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    color: #2d3748;
}

.article-content ul {
    margin-left: 20px;
    margin-bottom: 1em;
    list-style: disc;
}

.article-content ol {
    margin-left: 20px;
    margin-bottom: 1em;
    list-style: decimal;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
}

.utility-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.utility-card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.utility-card-body {
    flex-grow: 1;
}

.utility-card-footer {
    margin-top: 15px;
}

.utility-card h2 {
    font-size: 1.2em;
    margin: 0 0 10px;
}

.utility-card p {
    font-size: 0.95em;
    color: #555;
}


.grid .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Fai sì che il bottone resti in basso */
.grid .card p {
    flex-grow: 1;
}