/* Schede CPT (service, project), archivio di una classe e sezione progetti: misure dal sito vero (kidsa + Elementor). */
.smg-scheda { padding: 120px 0 0; }
.smg-scheda__content > :first-child { margin-top: 0; }
.smg-scheda__content ul { margin: 0 0 20px; padding-left: 20px; list-style: disc; }
.smg-scheda__content p { margin: 0 0 20px; }
@media (min-width: 1400px) { .smg-scheda .smg-cont, .smg-classe .smg-cont { max-width: 1320px; } }

/* Archivio classe: elenco a una colonna (2 su tablet), card bianca con foto quadrata e testo */
.smg-classe { padding: 120px 0; }
.smg-classe__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 90px; }
.smg-pcard { display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: center; column-gap: 30px; padding: 20px; border: 1px solid #f0f0f0; border-radius: 10px; background: #fff; box-shadow: 0 4px 25px rgba(0, 0, 0, .03); }
.smg-pcard__img img { display: block; border-radius: 6px; }
.smg-pcard__title { margin: 0 0 8px; font: 500 16px/1.5 var(--smg-f-head); color: var(--smg-orange); text-transform: uppercase; }
.smg-pcard__date { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; line-height: 20px; }
.smg-pcard__date .smg-ico { font-size: 11px; }
.smg-pcard__content { font-size: 13px; line-height: 22px; }
.smg-pcard__content img { width: auto; max-width: 160px; height: auto; }
.smg-pcard__content p { margin: 0 0 10px; }
.smg-pcard .theme-btn { margin-top: 10px; }
@media (max-width: 1024px) { .smg-classe__list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
@media (max-width: 767px) { .smg-classe { padding: 80px 0; } .smg-classe__list { grid-template-columns: minmax(0, 1fr); } }

/* Sezione "I progetti delle nostre classi" (copia delle regole della home) */
.smg-projects { padding: 121px 0 121px; background: var(--smg-sky) var(--bg, none) center top / auto no-repeat; text-align: center; }
.smg-projects__inner { position: relative; z-index: 2; }
.smg-projects .smg-actions { margin-top: 29px; }
.smg-projects__d0 { top: 100px; left: 100px; width: 100px; }
.smg-projects__d1 { top: 282px; left: 100px; width: 90px; }
.smg-projects__d2 { top: 269px; right: 100px; width: 114px; }
.smg-projects__d3 { top: 78px; right: 70px; width: 178px; }
@media (max-width: 1024px) { .smg-projects { padding: 61px 0 60px; } .smg-projects .smg-actions { margin-top: 20px; } }

/* Scheda progetto: altre proposte didattiche (carosello di program-box-items) */
.smg-altri { position: relative; padding: 120px 0; background: var(--smg-sky) var(--top, none) center top / auto no-repeat; text-align: center; }
.smg-altri__inner { position: relative; z-index: 2; }
.smg-altri__text { max-width: 900px; margin: 20px auto 0; }
.smg-altri__slider { position: relative; margin-top: 30px; padding: 0 40px 40px; }
.smg-altri__swiper { padding-bottom: 40px; }
.smg-altri__arrow { position: absolute; top: 40%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; color: var(--smg-blue); font-size: 22px; cursor: pointer; }
.smg-altri__prev { left: 0; } .smg-altri__next { right: 0; }
.smg-altri__dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 6px; }
.smg-altri__dots .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 !important; background: #000; opacity: .2; }
.smg-altri__dots .swiper-pagination-bullet-active { opacity: 1; }
.smg-altri__d0 { top: 100px; left: 100px; width: 100px; } .smg-altri__d1 { bottom: 60px; left: 100px; width: 90px; }
.smg-altri__d2 { bottom: 60px; right: 100px; width: 106px; } .smg-altri__d3 { top: 96px; right: 60px; width: 165px; }
.program-box-items { padding: 20px 30px 36px; position: relative; z-index: 9; text-align: center; margin: 30px auto; }
.program-box-items .program-bg { position: absolute; top: 0; left: 0; background-color: #70a6b1; transition: all 500ms ease; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 371 458"><path d="M180.499 1.01957C228.479 0.655383 276.69 -1.7067 311.981 40.3475C348.649 84.0424 368.9 145.98 370.375 210.447C371.895 276.909 355.756 343.16 319.998 390.92C283.71 439.389 232.608 453.808 180.499 456.752C125.658 459.85 64.9802 460.19 28.2615 407.4C-7.46789 356.033 -0.110132 279.336 4.09606 210.447C7.86177 148.773 16.5925 85.8896 50.5519 42.3318C84.3879 -1.06785 132.853 1.38123 180.499 1.01957Z" /></svg>') center / cover no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 371 458"><path d="M180.499 1.01957C228.479 0.655383 276.69 -1.7067 311.981 40.3475C348.649 84.0424 368.9 145.98 370.375 210.447C371.895 276.909 355.756 343.16 319.998 390.92C283.71 439.389 232.608 453.808 180.499 456.752C125.658 459.85 64.9802 460.19 28.2615 407.4C-7.46789 356.033 -0.110132 279.336 4.09606 210.447C7.86177 148.773 16.5925 85.8896 50.5519 42.3318C84.3879 -1.06785 132.853 1.38123 180.499 1.01957Z" /></svg>') center / cover no-repeat; width: 100%; height: 100%; z-index: -1; }
.program-box-items .program-image { -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 308 237"><path fill-rule="evenodd" clip-rule="evenodd" d="M149.968 0.07171C188.87 -0.110783 227.96 -1.29441 256.574 19.7787C286.305 41.674 302.725 72.7107 303.921 105.015C305.153 138.318 292.067 171.516 263.075 195.448C233.652 219.736 192.218 226.961 149.968 228.436C105.502 229.989 56.3034 230.159 26.5315 203.707C-2.43828 177.967 3.52747 139.534 6.93789 105.015C9.99117 74.11 17.0702 42.5996 44.6048 20.773C72.0394 -0.974285 111.335 0.252935 149.968 0.07171Z" /></svg>') center / cover no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 308 237"><path fill-rule="evenodd" clip-rule="evenodd" d="M149.968 0.07171C188.87 -0.110783 227.96 -1.29441 256.574 19.7787C286.305 41.674 302.725 72.7107 303.921 105.015C305.153 138.318 292.067 171.516 263.075 195.448C233.652 219.736 192.218 226.961 149.968 228.436C105.502 229.989 56.3034 230.159 26.5315 203.707C-2.43828 177.967 3.52747 139.534 6.93789 105.015C9.99117 74.11 17.0702 42.5996 44.6048 20.773C72.0394 -0.974285 111.335 0.252935 149.968 0.07171Z" /></svg>') center / cover no-repeat; }
.program-box-items .program-image img { width: 100%; height: 100%; }
.program-box-items .program-content { padding: 30px 20px 0; }
.program-box-items .program-content { padding: 20px 20px 0; }
.program-box-items .program-content h4 { margin-bottom: 5px; }
.program-box-items .program-content h4 a { color: #fff; }
.program-box-items .program-content span { color: #fff; font-weight: 600; font-family: "Quicksand", sans-serif; }
.program-box-items .program-content p { color: #fff; margin-top: 10px; margin-bottom: 30px; }
.program-box-items .program-content p { margin-bottom: 15px; }
.program-box-items .program-content .arrow-icon { width: 60px; height: 55px; line-height: 55px; border-radius: 22px; background-color: #f39f5f; display: inline-block; color: #fff; transition: all 0.4s ease-in-out; position: absolute; bottom: -50px; left: 50%; transform: translate(-50%, -50%); }
.program-box-items .program-content.style-2 h4 a { color: #385469; }
.program-box-items .program-content.style-2 span { color: #f39f5f; }
.program-box-items .program-content.style-2 p { color: var(--text); }
.program-box-items { display: n; }
.smg-altri .swiper-slide:nth-child(3n+1) .program-bg { background-color: #70a6b1; }
.smg-altri .swiper-slide:nth-child(3n+2) .program-bg { background-color: #f39f5f; }
.smg-altri .swiper-slide:nth-child(3n+3) .program-bg { background-color: #5866eb; }
.program-box-items .program-image img { display: block; }
.program-box-items .program-content h4 { font-size: 20px; line-height: 26px; }
.program-box-items .arrow-icon { display: inline-flex !important; align-items: center; justify-content: center; }
.program-box-items .arrow-icon:hover { background-color: #385469; }
.program-box-items .arrow-icon i::before { content: ""; display: block; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M439 279c13-13 13-33 0-46L279 73a32 32 0 0 0-46 46l106 105H32a32 32 0 1 0 0 64h307L233 393a32 32 0 0 0 46 46z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M439 279c13-13 13-33 0-46L279 73a32 32 0 0 0-46 46l106 105H32a32 32 0 1 0 0 64h307L233 393a32 32 0 0 0 46 46z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 767px) { .smg-altri { padding: 60px 0; } }
/* Giro 2 (affiancati 1366): elenco classe largo 880 come il boxed Elementor, foto 200 in proporzione */
.smg-classe__list { max-width: 880px; gap: 25px; }
.smg-pcard { grid-template-columns: 200px minmax(0, 1fr); padding: 24px; }
.smg-pcard__img img { width: 200px; height: auto; object-fit: contain; }
.smg-pcard .theme-btn.bg-white { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 22px; background: #fff; color: var(--smg-blue); font: 700 12px/1 var(--smg-f-body); text-transform: uppercase; box-shadow: none; }
.smg-projects .smg-deco, .smg-altri .smg-deco { position: absolute; z-index: 1; pointer-events: none; }
.smg-scheda { padding-bottom: 90px; }
@media (max-width: 1024px) { .smg-pcard { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); column-gap: 20px; padding: 15px; } .smg-pcard__img img { width: 100%; } }
@media (max-width: 767px) { .smg-pcard { grid-template-columns: 120px minmax(0, 1fr); } }
/* Pulsante 'Scarica file progetto': solo il link bianco, senza il contenitore arancio */
.smg-pcard .smg-btn { padding: 0; background: none; box-shadow: none; }
.smg-pcard .smg-btn::before, .smg-pcard .smg-btn::after { display: none; }
/* Giro 3 (affiancato 1366): card a tutta larghezza del contenitore, foto 250, testi piu' grandi; su mobile foto sopra */
.smg-classe__list { max-width: none; gap: 30px; }
.smg-pcard { grid-template-columns: 250px minmax(0, 1fr); column-gap: 30px; padding: 28px; }
.smg-pcard__img img { width: 250px; }
.smg-pcard__title { font-size: 18px; line-height: 27px; }
.smg-pcard__date { font-size: 14px; }
.smg-pcard__content { font-size: 14px; line-height: 24px; }
.smg-pcard__content img { max-width: 200px; }
@media (max-width: 1024px) { .smg-pcard { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); padding: 15px; } .smg-pcard__img img { width: 100%; } }
@media (max-width: 767px) { .smg-pcard { grid-template-columns: minmax(0, 1fr); row-gap: 20px; padding: 20px; } }/* Mobile: foto della card larga 250 come l'originale (non a tutta larghezza) */
@media (max-width: 767px) { .smg-pcard__img img { width: 250px; max-width: 100%; } }
