@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #0c121f;
  --muted: #4d5562;
  --blue: #10566a;
  --blue-dark: #174155;
  --navy: #14394a;
  --paper: #f6f8fc;
  --tint: #eaf0f5;
  --line: #d1dce6;
  --white: #fff;
  --wrap: 1240px;
  --gutter: clamp(20px, 5.2vw, 82px);
  --sans: "Inter", "Instrument Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.055em; text-wrap: pretty; }
h1 { font-size: clamp(2.8rem, 5.5vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.95rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -.035em; }
p { color: var(--muted); text-wrap: pretty; }
p + p { margin-top: .85rem; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: #10566a29; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #14776f; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.narrow { max-width: 840px; }
.section { padding-block: clamp(52px, 7.3vw, 104px); }
.section[id], .carousel-section[id] { scroll-margin-top: 92px; }
.pale { background: var(--tint); }
.deep { background: var(--navy); color: var(--white); }
.deep p, .deep .eyebrow { color: #dce9f1; }
.center { margin-top: 28px; text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; }
.eyebrow { margin: 0 0 16px; color: var(--blue-dark); font-size: .74rem; font-weight: 750; letter-spacing: .125em; line-height: 1.5; text-transform: uppercase; }
span.eyebrow { display: block; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 24px; align-items: end; margin-bottom: clamp(23px, 4vw, 45px); }
.section-head p { padding-bottom: .2em; }
.text-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5em; color: var(--blue-dark); font-weight: 750; text-underline-offset: 4px; }
.text-link:hover { color: var(--blue); }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 20; padding: 10px 15px; transform: translateY(-160%); color: var(--white); background: var(--navy); }
.skip-link:focus { transform: translateY(0); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 29px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 47px; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; font-size: .91rem; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center; }
.btn span { font-size: 1.15em; }
.primary { color: var(--white); background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.outline { border-color: #aabcca; color: var(--ink); background: transparent; }
.outline:hover { background: #e5edf4; border-color: #748e9c; }
.light { color: var(--navy); background: var(--white); }
.light:hover { background: #e9f2f6; }
.site-header { position: sticky; top: 0; z-index: 7; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 78px; }
.brand { display: block; }
.brand img { width: clamp(123px, 12vw, 164px); height: auto; }
#nav { display: flex; align-items: stretch; justify-content: center; gap: clamp(16px, 2.4vw, 37px); align-self: stretch; }
#nav a { position: relative; display: flex; align-items: center; color: var(--ink); font-size: .9rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
#nav a[aria-current], #nav a:hover { color: var(--blue); }
#nav a[aria-current]::after { position: absolute; content: ""; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue); }
.nav-cta { color: var(--white); background: var(--navy); min-height: 42px; }
.nav-cta:hover { background: var(--blue-dark); }
.menu-toggle { display: none; }

.carousel-section { background: var(--tint); padding-block: clamp(36px, 4.2vw, 59px) clamp(46px, 6vw, 75px); }
.carousel-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.carousel-title p { margin-top: 11px; }
.slide-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.slide-controls button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #a4b7c4; border-radius: 50%; background: transparent; color: var(--blue-dark); font-size: 1.25rem; }
.slide-controls button:hover:not(:disabled) { color: var(--white); border-color: var(--blue); background: var(--blue); }
.slide-controls button:disabled { cursor: default; opacity: .46; }
.slide-window { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slide-window::-webkit-scrollbar { display: none; }
.slide-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; }
.slide-track .course-card { scroll-snap-align: start; }
.slide-track .course-card:focus-visible { outline-offset: -4px; }
.scroll-progress { margin-top: 18px; height: 3px; overflow: hidden; border-radius: 4px; background: #c9d9e4; }
.scroll-progress span { display: block; height: 100%; width: 60%; border-radius: inherit; background: var(--blue); }
.catalog-link { margin-top: 18px; }
.course-grid, .three, .news-grid, .stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.two, .gol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 27px); }
.course-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid #d4dfe8; border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.course-card:hover { border-color: #9db3c2; box-shadow: 0 8px 25px #18384b14; }
.course-image { position: relative; overflow: hidden; height: clamp(144px, 16vw, 222px); background: #d4dfe8; }
.course-image img { width: 100%; height: 100%; object-fit: cover; }
.course-category { position: absolute; inset: auto auto 12px 12px; max-width: calc(100% - 24px); padding: 5px 10px; border-radius: 5px; color: var(--blue-dark); background: var(--white); font-size: .68rem; font-weight: 750; letter-spacing: .08em; }
.course-body { display: flex; flex-direction: column; gap: 11px; flex: 1; padding: clamp(15px, 2vw, 24px); }
.course-body p { font-size: .91rem; }
.course-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }
.course-meta span:last-child { color: var(--blue-dark); }
.course-grid + p { margin-top: 23px; }

.services-section .three { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.service-box { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, .86fr) minmax(130px, .52fr) 48px; align-items: center; gap: 18px; padding: 24px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-box h3 { font-size: clamp(1.35rem, 2.7vw, 2.6rem); }
.service-box strong, .path-box b { color: var(--blue-dark); font-size: .87rem; }
.row-arrow { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #a9bbc8; border-radius: 50%; color: var(--blue-dark); }
.service-box:hover .row-arrow { background: var(--blue); color: var(--white); border-color: var(--blue); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(26px, 6vw, 86px); }
.split h2 + p, .lead-layout h1 + p, .split h3 + ul { margin-top: 17px; }
.split p + h3 { margin-top: 19px; }
.split .btn { margin-top: 13px; }
.method-section { background: #eaf0f5; }
.steps { margin-block: 21px; padding-left: 21px; color: var(--muted); }
.steps li { padding: 7px 0 7px 5px; border-bottom: 1px solid #ccdbe5; }
.steps li::marker { color: var(--blue-dark); font-weight: 800; }
.steps strong { color: var(--ink); }
.path-box, .panel { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-decoration: none; }
.path-box:hover { border-color: var(--blue); }
.path-box b, .panel > .btn { margin-top: auto; }
.path-box b { padding-top: 9px; }
.panel a.btn { min-height: 42px; }
.stat-grid > div { display: flex; flex-direction: column; gap: 8px; padding: 21px 0; border-top: 1px solid #72909d; }
.stat-grid b { color: #bfdae2; font-size: clamp(2.5rem, 5.9vw, 5.4rem); line-height: 1; letter-spacing: -.07em; }
.stat-grid span { color: #ecf2f8; }
.news-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; }
.news-card:hover { border-color: var(--blue); }
.news-card > img { width: 100%; height: clamp(140px, 15vw, 220px); object-fit: cover; }
.news-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 21px; }
.news-body p { font-size: .93rem; }
.news-body b { margin-top: auto; padding-top: 10px; color: var(--blue-dark); font-size: .89rem; }
.faq-section .section-head { display: block; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { padding: 17px 42px 17px 0; position: relative; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 12px; right: 8px; color: var(--blue-dark); font-size: 1.25rem; }
details[open] summary::after { content: "−"; }
details p { margin-bottom: 17px; }
.cta { padding-block: clamp(34px, 5vw, 68px); background: var(--blue-dark); color: var(--white); }
.cta > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { max-width: 790px; font-size: clamp(1.9rem, 3.8vw, 3.6rem); }
.cta .eyebrow { color: #dfedf4; }
.cta .btn { flex: 0 0 auto; }

.page-lead { padding-block: clamp(37px, 5.4vw, 76px); background: var(--tint); }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(22px, 6vw, 79px); }
.lead-layout h1 { font-size: clamp(2.65rem, 5vw, 5rem); }
.lead-layout p { max-width: 530px; font-size: 1.06rem; }
.lead-img { align-self: stretch; min-width: 0; }
.lead-img img { height: clamp(230px, 30vw, 390px); width: 100%; object-fit: cover; border-radius: 15px clamp(54px, 6.5vw, 98px) 15px 15px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.notice { margin-block: 18px; padding: 18px 22px; border: 1px solid #cadbe5; border-left: 4px solid var(--blue); border-radius: 9px; background: #f6fafc; color: var(--ink); }
.notice > p, .notice > .btn { margin-top: 8px; }
.gol-card { display: grid; grid-template-columns: minmax(100px, .46fr) minmax(0, 1fr); overflow: hidden; min-height: 140px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.gol-card img { width: 100%; height: 100%; object-fit: cover; }
.gol-card > div { padding: 16px; }
.gol-card p { margin-top: 7px; font-size: .9rem; }
.gol-card small { display: block; margin-top: 7px; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(22px, 6vw, 83px); align-items: start; }
.contact-facts h2 { margin-bottom: 20px; }
.contact-facts p { margin-block: 14px; overflow-wrap: anywhere; }
.contact-facts strong { color: var(--ink); }
.form { min-width: 0; padding: clamp(17px, 3vw, 36px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.form h3 { margin-bottom: 20px; }
.form label { display: flex; flex-direction: column; min-width: 0; gap: 5px; margin-bottom: 12px; font-weight: 650; font-size: .9rem; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form input:not([type="checkbox"]), .form textarea, .form select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #a4b9c7; border-radius: 7px; color: var(--ink); background: #fff; }
.form input:not([type="checkbox"]), .form select { min-height: 44px; }
.form textarea { resize: vertical; min-height: 95px; }
.form .check { display: flex; flex-direction: row; align-items: start; gap: 9px; margin-block: 15px; font-weight: 500; }
.form input[type="checkbox"] { margin-top: 5px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--blue); }
.form .check a { color: var(--blue-dark); }
.form .tiny { margin-top: 12px; }
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 20px 0; }
.partners > div { display: grid; min-height: 138px; align-content: center; justify-items: center; gap: 4px; padding: 14px; text-align: center; border-radius: 11px; border: 1px solid var(--line); background: var(--white); }
.partner-logo { width: 132px; height: 72px; object-fit: contain; }
.partners small { color: var(--muted); }
.course-main { padding-block: clamp(30px, 6vw, 78px); }
.course-crumb { margin-bottom: 22px; }
.course-detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: clamp(25px, 5vw, 70px); }
.course-detail-grid h1 { font-size: clamp(2.5rem, 4.6vw, 4.8rem); }
.course-detail-grid p { margin-top: 18px; }
.detail-photo { width: 100%; max-height: 430px; object-fit: cover; aspect-ratio: 4 / 3; border-radius: 15px 65px 15px 15px; background: var(--tint); }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 27px 0; }
.detail-facts div { border-top: 1px solid #b3c7d3; padding-block: 10px; }
.detail-facts dt { font-size: .8rem; color: var(--muted); }
.detail-facts dd { margin: 0; font-weight: 700; }
.course-documents { margin-top: 31px; }
.course-documents img { max-height: 560px; width: auto; border: 1px solid var(--line); border-radius: 9px; }
.page-article .page-lead .wrap { max-width: 840px; }
.article, .article-body, .prose { max-width: 820px; }
.page-article main h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.page-article main .section h2, .page-article main .section h3 { margin-block: 24px 12px; }
.page-article main .section p, .page-article main .section ul { margin-block: 12px; }
.footer { padding-block: 46px 22px; color: #f3f7fb; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .7fr)); gap: 28px; }
.footer-grid p { color: #dce9f1; }
.footer-grid a, .footer-grid strong { display: block; margin-bottom: 5px; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand { display: inline-block; background: var(--paper); padding: 10px 13px; margin-bottom: 11px; border-radius: 7px; }
.footer-brand img { width: 140px; height: auto; }
.bottom { display: flex; flex-wrap: wrap; gap: 8px 25px; margin-top: 27px; padding-top: 16px; border-top: 1px solid #577887; color: #dce9f1; font-size: .78rem; }
.bottom span:last-child { margin-left: auto; }

@media (max-width: 1000px) {
  .header-row { gap: 14px; }
  #nav { gap: 16px; }
  #nav a { font-size: .84rem; }
  .nav-cta { padding-inline: 11px; font-size: .81rem; }
  .slide-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .course-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .header-row { min-height: 64px; display: flex; justify-content: space-between; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 13px; border-radius: 8px; border: 1px solid #abbecb; color: var(--navy); background: transparent; font-weight: 700; }
  .menu-icon { width: 15px; height: 12px; border-block: 2px solid currentColor; position: relative; }
  .menu-icon::after { content: ""; position: absolute; width: 100%; height: 2px; top: 3px; background: currentColor; }
  #nav { position: absolute; display: none; inset: 100% 0 auto; max-height: calc(100dvh - 65px); overflow: auto; padding: 10px var(--gutter) 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 13px 20px #18384b16; }
  #nav.open { display: grid; }
  #nav a { min-height: 46px; font-size: .93rem; white-space: normal; border-bottom: 1px solid var(--line); }
  #nav a[aria-current]::after { display: none; }
  .lead-layout { gap: 25px; }
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
  .service-box { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) 38px; gap: 9px 12px; }
  .service-box h3 { grid-column: 1; grid-row: 1; }
  .service-box p { grid-column: 1 / 3; grid-row: 2; }
  .service-box strong { grid-column: 2; grid-row: 1; justify-self: end; }
  .row-arrow { grid-column: 3; grid-row: 1 / 3; width: 36px; height: 36px; }
  .split { gap: 27px; }
  .gol-card { grid-template-columns: minmax(85px, .43fr) minmax(0, 1fr); }
  .cta > .wrap { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .lead-layout, .split, .section-head, .contact-layout, .course-detail-grid { grid-template-columns: 1fr; }
  .btn-row { margin-top: 23px; }
  .lead-img img { height: clamp(185px, 54vw, 285px); }
  .section-head { gap: 9px; }
  .section-head .eyebrow { margin-bottom: 9px; }
  .carousel-title { align-items: start; }
  .slide-controls button { width: 42px; height: 42px; }
  .slide-controls { gap: 5px; }
  .slide-track { grid-auto-columns: 87%; gap: 13px; }
  .course-grid, .news-grid, .three, .two, .gol-grid, .stat-grid { grid-template-columns: 1fr; }
  .course-image { height: clamp(177px, 49vw, 250px); }
  .news-card > img { height: clamp(168px, 48vw, 250px); }
  .carousel-title p { font-size: .9rem; }
  .partners { gap: 8px; }
  .partners > div { min-height: 108px; padding-inline: 6px; }
  .partners small { font-size: .73rem; }
  .partner-logo { width: 90%; height: 46px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .bottom span:last-child { margin-left: 0; }
}
@media (max-width: 360px) {
  .carousel-title { flex-wrap: wrap; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .partners { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.article-top { padding-block: clamp(32px, 6vw, 75px) 0; }
.article-top .back { display: inline-block; margin-bottom: 20px; color: var(--blue-dark); font-weight: 700; text-underline-offset: 4px; }
.article-top h1 { font-size: clamp(2.6rem, 5.8vw, 5.5rem); }
.article-intro { margin-top: 19px; font-size: 1.08rem; }
.article-cover { width: 100%; height: clamp(195px, 36vw, 420px); margin-top: 28px; border-radius: 14px clamp(46px, 8vw, 92px) 14px 14px; object-fit: cover; background: var(--tint); }
.page-article .article-content { padding-block: 0; }
.article-content figure { margin-block: 24px; }
.article-content img { border-radius: 11px; }
.article-content a { color: var(--blue-dark); }
.article-content p, .article-content ul { max-width: 75ch; }
.notice-flyer { display: grid; justify-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.notice-flyer img { width: min(100%, 385px); max-height: 500px; aspect-ratio: auto; object-fit: contain; }

/* Home Panta Rei: la palette riprende il fondo chiaro, il blu notte e il petrolio del riferimento. */
:root {
  --petrol: #10566a;
  --paper-blue: #f2f5fa;
  --ink-blue: #0b2957;
  --teal: #116e69;
  --soft-line: #b9cbd7;
}
.page-index { --gutter: clamp(22px, 5.5vw, 86px); }
.page-index .site-header { background: var(--paper); border-bottom-color: var(--line); }
.page-index .header-row { min-height: 76px; }
.page-index .brand img { width: clamp(130px, 13vw, 178px); }
.page-index #nav a[aria-current]::after { height: 2px; }
.page-index .nav-cta { background: transparent; color: var(--blue-dark); border-color: var(--soft-line); border-radius: 100px; }
.page-index .nav-cta:hover { color: var(--white); border-color: var(--petrol); background: var(--petrol); }
.page-index .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #173749;
  color: var(--white);
}
.page-index .home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #101d2bf7 0%, #122333ec 25%, #142b3bb5 42%, #13273c38 63%, #08182712 100%);
}
.opening-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; }
.opening-wrap { display: flex; align-items: center; min-height: clamp(480px, 39vw, 590px); }
.opening-copy { width: min(100%, 570px); padding-block: 54px 93px; }
.opening-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #e0eff1; letter-spacing: .13em; }
.opening-label::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #a8d5d5; box-shadow: 0 0 0 4px #a8d5d530; }
.opening-copy h1 { margin-left: -.04em; font-family: var(--sans); font-size: clamp(3.4rem, 5.6vw, 5.4rem); font-weight: 750; line-height: .99; letter-spacing: -.06em; }
.opening-intro { max-width: 432px; margin-top: 17px; color: #f1f5f7; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.55; }
.opening-search { display: flex; width: min(100%, 465px); margin-top: 26px; overflow: hidden; border: 1px solid #fff; border-radius: 7px; background: var(--white); }
.opening-search:focus-within { outline: 3px solid #a8d5d5; outline-offset: 3px; }
.opening-search input { flex: 1 1 0; min-width: 0; min-height: 51px; padding: 10px 14px; border: 0; color: var(--ink); background: transparent; }
.opening-search input:focus-visible { outline: none; }
.opening-search input::placeholder { color: #4d5562; opacity: 1; }
.opening-search button { display: grid; place-items: center; flex: none; width: 51px; min-height: 51px; border: 0; color: var(--blue-dark); background: #ecf3f6; }
.opening-search button:hover { background: #dcebf0; }
.opening-search button:focus-visible { outline-offset: -4px; }
.search-icon { position: relative; display: block; width: 16px; height: 16px; margin: -3px 3px 0 0; border: 1.6px solid; border-radius: 50%; }
.search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 7px; height: 1.6px; content: ""; background: currentColor; transform: rotate(45deg); }
.opening-course-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: #f3f9fb; font-size: .88rem; font-weight: 650; text-underline-offset: 4px; }
.opening-course-link:hover { color: #b9dfe5; }
.opening-course-link:focus-visible { outline-color: #b9dfe5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.opening-shortcuts { position: relative; margin-top: -52px; }
.shortcut-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 7px; border: 1px solid #dbe5eb; border-radius: 9px; background: var(--white); box-shadow: 0 16px 35px #15344612; }
.shortcut { display: grid; grid-template-columns: 41px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-width: 0; min-height: 95px; padding: 13px clamp(9px, 1.5vw, 21px); color: var(--ink); text-decoration: none; }
.shortcut + .shortcut { border-left: 1px solid var(--line); }
.shortcut:hover { color: var(--petrol); background: #f1f6f9; }
.shortcut strong, .shortcut small { display: block; }
.shortcut strong { font-size: clamp(.96rem, 1.3vw, 1.14rem); line-height: 1.22; }
.shortcut small { margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.shortcut-arrow { color: var(--petrol); font-size: 1.16rem; }
.shortcut-icon { position: relative; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; color: var(--petrol); background: #e7f0f3; }
.shortcut-icon::before, .shortcut-icon::after { grid-area: 1 / 1; content: ""; }
.icon-book::before { width: 22px; height: 17px; border: 1.5px solid; border-radius: 4px 4px 2px 2px; }
.icon-book::after { width: 1.5px; height: 17px; background: currentColor; }
.icon-compass::before { width: 23px; height: 23px; border: 1.5px solid; border-radius: 50%; }
.icon-compass::after { width: 7px; height: 12px; background: currentColor; clip-path: polygon(100% 0, 79% 79%, 0 100%, 21% 21%); }
.icon-case::before { width: 22px; height: 15px; margin-top: 4px; border: 1.5px solid; border-radius: 3px; }
.icon-case::after { width: 9px; height: 5px; align-self: start; margin-top: 9px; border: 1.5px solid; border-bottom: 0; border-radius: 2px 2px 0 0; }
.opening-accreditation { margin: 14px auto 0; text-align: center; font-size: .78rem; }

.catalog-search { margin: 0 0 23px; }
.catalog-search form { max-width: 475px; }
.catalog-search label { display: block; margin: 0 0 5px; font-weight: 650; }
.catalog-search-fields { display: flex; gap: 7px; }
.catalog-search-fields input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--soft-line); border-radius: 8px; color: var(--ink); background: var(--white); }
.catalog-results { margin-top: 12px; }
.catalog-results .text-link { margin-top: 3px; }

.page-index h2 { font-family: var(--sans); font-size: clamp(2.25rem, 4.25vw, 4.45rem); font-weight: 680; letter-spacing: -.06em; line-height: 1.03; }
.page-index .carousel-section { background: var(--paper); padding-block: clamp(40px, 4.25vw, 65px) clamp(49px, 6.4vw, 96px); }
.page-index .carousel-title { gap: 14px; margin-bottom: 25px; }
.page-index .carousel-title h2 em { color: var(--blue-dark); font-style: normal; }
.page-index .carousel-title p { margin-top: 14px; }
.page-index .slide-controls button { border-color: #849cae; }
.page-index .slide-controls button:disabled { opacity: .48; }
.page-index .course-card { border: 0; border-bottom: 1px solid #a1b5c5; border-radius: 0; background: transparent; }
.page-index .course-card:hover { box-shadow: none; border-bottom-color: var(--blue); }
.page-index .course-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.page-index .course-image { height: clamp(158px, 16.2vw, 232px); border-radius: 3px 24px 3px 3px; }
.page-index .course-body { padding: 14px 4px 12px 0; gap: 10px; }
.page-index .course-category { position: static; align-self: flex-start; padding: 0; border-radius: 0; background: none; }
.page-index .course-meta { border: 0; padding: 8px 0 0; }
.page-index .scroll-progress { height: 2px; }
.page-index .catalog-link { margin-top: 19px; }

.page-index .services-section { background: #edf3f6; }
.service-layout { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr); gap: clamp(24px, 5vw, 74px); align-items: stretch; }
.service-photo { position: relative; min-height: 340px; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; border-radius: 3px 60px 3px 3px; }
.service-photo figcaption { position: absolute; bottom: 13px; left: 12px; padding: 5px 10px; border-radius: 3px; color: var(--paper); font-size: .78rem; font-weight: 650; background: var(--navy); }
.page-index .service-box { grid-template-columns: minmax(0, 1fr) 45px; column-gap: 15px; row-gap: 6px; padding: 12px 0; }
.page-index .service-box h3 { grid-area: 1 / 1; font-size: clamp(1.3rem, 2.7vw, 2.25rem); }
.page-index .service-box p { grid-area: 2 / 1; }
.page-index .service-box strong { grid-area: 3 / 1; justify-self: start; }
.page-index .service-box .row-arrow { grid-area: 1 / 2 / span 3; align-self: center; }

.page-index .method-section { background: #e1edf0; color: var(--ink); }
.method-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .87fr); grid-template-areas: "words photo"; }
.method-layout > div { grid-area: words; }
.method-picture { grid-area: photo; }
.method-picture img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 90px 3px 3px; }
.method-picture figcaption { margin-top: 9px; color: var(--muted); font-size: .77rem; }
.method-layout h2 { color: var(--blue-dark); }
.method-layout .steps li { border-color: var(--soft-line); }

.page-index .goals-section { background: var(--paper); }
.page-index .path-box { border: 0; border-top: 2px solid var(--blue-dark); border-radius: 0; background: transparent; padding: 18px 4px 12px 0; }
.page-index .path-box:hover { background: #edf3f6; }
.page-index .impact-section { background: #e3edf2; color: var(--ink); }
.page-index .impact-section .eyebrow, .page-index .impact-section .section-head p, .page-index .stat-grid span, .impact-note { color: var(--muted); }
.page-index .stat-grid > div { border-color: var(--soft-line); }
.page-index .stat-grid b { color: var(--petrol); font-family: var(--sans); font-weight: 400; }
.impact-note { font-size: .8rem; margin-top: 16px; }
.page-index .journal-section { background: #eef2f8; }
.page-index .news-card { border-radius: 3px 24px 3px 3px; }
.page-index .cta { background: #ddeaf0; color: var(--ink); }
.page-index .cta .eyebrow { color: var(--blue-dark); }
.page-index .cta h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.page-index .cta .btn { background: var(--petrol); color: var(--white); }
.page-index .cta .btn:hover { background: var(--blue-dark); }

@media (max-width: 800px) {
  .page-index .header-row { min-height: 65px; }
  .opening-wrap { min-height: 452px; }
  .opening-photo { object-position: 61% 44%; }
  .opening-copy h1 { font-size: clamp(3.3rem, 8.3vw, 4.9rem); }
  .shortcut { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .shortcut-icon { width: 36px; height: 36px; }
  .shortcut-arrow { display: none; }
  .service-layout { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .service-photo { min-height: 300px; }
  .method-picture img { border-top-left-radius: 60px; }
}
@media (max-width: 620px) {
  .page-index .home-hero::after { background: linear-gradient(90deg, #101d2bf0 0%, #122333c9 54%, #142b3b66 100%); }
  .opening-photo { object-position: 55% 45%; }
  .opening-wrap { min-height: 392px; }
  .opening-copy { padding-block: 40px 68px; }
  .opening-copy h1 { font-size: clamp(2.8rem, 11vw, 4.2rem); }
  .opening-label { margin-bottom: 14px; font-size: .65rem; letter-spacing: .09em; }
  .opening-intro { max-width: 300px; }
  .opening-search { margin-top: 19px; }
  .opening-search input { padding-inline: 11px; }
  .opening-shortcuts { margin-top: -28px; }
  .shortcut-strip { grid-template-columns: 1fr; }
  .shortcut { min-height: 65px; padding: 9px 10px; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .shortcut + .shortcut { border-top: 1px solid var(--line); border-left: 0; }
  .shortcut-arrow { display: block; }
  .opening-accreditation { text-align: left; margin-top: 10px; }
  .page-index .carousel-title { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
  .page-index .carousel-title h2 { font-size: clamp(2.05rem, 7.6vw, 3.35rem); }
  .page-index .carousel-title p { margin-top: 9px; }
  .page-index .carousel-title .slide-controls { align-self: end; }
  .page-index .course-image { height: clamp(170px, 53vw, 260px); }
  .service-layout { grid-template-columns: 1fr; }
  .service-photo { min-height: 0; }
  .service-photo img { height: clamp(185px, 65vw, 285px); border-top-right-radius: 42px; }
  .method-layout { grid-template-areas: "words" "photo"; grid-template-columns: 1fr; }
  .page-index .service-box { padding-block: 16px; }
}
.footer-grid a { overflow-wrap: anywhere; }
.menu-icon::after { inset-inline-start: 0; }

@media (max-width: 365px) {
  .opening-copy h1 { font-size: clamp(2.15rem, 12.2vw, 2.65rem); }
}

.studio-credit { margin-left: auto; text-decoration: none; }
.studio-credit:hover { text-decoration: underline; }
.footer-cookie { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }

.floating-tools { position: fixed; z-index: 12; right: max(13px, env(safe-area-inset-right)); bottom: max(15px, env(safe-area-inset-bottom)); left: max(13px, env(safe-area-inset-left)); display: flex; justify-content: space-between; align-items: end; pointer-events: none; }
.quick-launch, .page-top { min-height: 44px; border: 1px solid #254e62; border-radius: 999px; color: var(--white); background: var(--blue-dark); box-shadow: 0 6px 18px #17374927; pointer-events: auto; }
.quick-launch { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; font-size: .82rem; font-weight: 650; }
.quick-launch span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #a4c1cd; border-radius: 50%; font-weight: 700; }
.page-top { display: grid; place-items: center; width: 44px; font-size: 1.25rem; text-decoration: none; }
.quick-launch:hover, .page-top:hover { background: var(--blue); }

.site-dialog { max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); padding: clamp(17px, 3vw, 27px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--white); }
.site-dialog::backdrop { background: #0c121f47; }
.site-dialog h2 { padding-right: 30px; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.12; }
.quick-dialog { inset: auto auto max(13px, env(safe-area-inset-bottom)) max(13px, env(safe-area-inset-left)); width: min(390px, calc(100% - 26px)); max-width: none; margin: 0; }
.quick-dialog h2 { margin-bottom: 13px; }
.quick-dialog details summary { padding-block: 9px; font-size: .9rem; }
.quick-dialog details summary::after { top: 5px; }
.quick-dialog details p { margin-bottom: 10px; font-size: .84rem; }
.dialog-close, .cookie-dismiss { position: absolute; top: 10px; right: 10px; }
.dialog-close button, .cookie-dismiss { display: grid; place-items: center; width: 33px; height: 33px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--blue-dark); background: var(--paper); font-size: 1.35rem; line-height: 1; }
.quick-callback { display: grid; gap: 7px; margin-top: 16px; font-size: .85rem; }
.quick-callback > label { font-weight: 650; }
.quick-callback > input { min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid #a4b9c7; border-radius: 8px; color: var(--ink); background: var(--white); }
.callback-privacy { display: flex; align-items: start; gap: 6px; }
.callback-privacy input { flex: none; margin: 4px 0 0; accent-color: var(--blue); }
.quick-callback .btn { justify-self: start; margin-top: 3px; }
.quick-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; color: var(--blue-dark); font-size: .83rem; }

.cookie-banner { position: fixed; z-index: 15; inset: auto max(13px, env(safe-area-inset-right)) max(73px, calc(env(safe-area-inset-bottom) + 65px)) max(13px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 15px; max-width: 900px; margin-inline: auto; padding: 16px 48px 16px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 16px 38px #15344625; }
.cookie-banner h2 { margin-bottom: 4px; padding-right: 25px; font-size: 1.15rem; letter-spacing: -.03em; }
.cookie-banner p, .cookie-dialog p { font-size: .84rem; line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cookie-banner .cookie-actions { flex: 0 0 auto; }
.cookie-actions .btn { min-height: 39px; padding: 6px 10px; font-size: .8rem; }
.cookie-dialog { position: fixed; width: min(520px, calc(100% - 26px)); max-width: none; }
.cookie-dialog h2, .cookie-dialog .cookie-actions { margin-bottom: 12px; }
.cookie-option { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.cookie-option strong, .cookie-option span { display: block; }
.cookie-option span { color: var(--muted); }
.cookie-option strong { color: var(--ink); }
.cookie-optional { display: grid; grid-template-columns: auto 1fr; gap: 9px; }
.cookie-optional input { margin: 5px 0 0; accent-color: var(--blue); }
.cookie-dialog .cookie-actions { margin-top: 12px; }

.reviews-section { padding-block: clamp(40px, 6vw, 88px); }
.reviews-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px 24px; padding: clamp(17px, 3.25vw, 45px); border: 1px solid var(--line); border-radius: 14px; background: #eaf1f5; }
.reviews-card h2 { margin-bottom: 8px; }
.review-embed:empty { display: none; }
.review-embed:has(iframe), .review-embed:has(button:not([hidden])) { margin-top: 12px; }
.review-embed iframe, #contact-map-embed iframe { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.review-embed iframe { height: 460px; }
.contact-map { padding-top: 20px; }
.contact-map h2 { margin-bottom: 8px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#contact-map-embed iframe { height: clamp(240px, 39vw, 380px); margin-top: 14px; }
@media (max-width: 760px) {
  .cookie-banner { align-items: flex-start; flex-direction: column; gap: 11px; padding: 13px; }
  .cookie-banner > div:first-child { padding-right: 24px; }
  .footer .bottom { gap: 7px 15px; }
}
@media (max-width: 480px) {
  .studio-credit { margin-left: 0; }
  .reviews-card .btn { width: 100%; }
}

/* Shared course hours and authentic Matera office gallery — December 2026. */
.course-hours { padding-block: 10px 4px; font-size: .82rem; line-height: 1.5; }
.course-hours strong, .course-hours span { display: block; }
.course-hours strong { margin-bottom: 4px; color: var(--blue-dark); font-size: .72rem; letter-spacing: .035em; text-transform: uppercase; }
.course-hours span { color: var(--muted); }
.detail-facts .detail-hours { grid-column: 1 / -1; }
.sede-section { background: #e8eef1; }
.sede-intro { max-width: 480px; }
.sede-intro .sede-address { margin-block: 12px 8px; color: var(--blue-dark); font-weight: 650; }
.sede-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.sede-photo { position: relative; overflow: hidden; border-radius: 12px; background: var(--navy); }
.sede-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.sede-photo:hover img { transform: scale(1.025); }
.sede-photo > span { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--navy); background: white; font-size: 1.3rem; }
.sede-photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.sede-dialog { width: min(1050px,calc(100% - 24px)); max-width: none; padding: 48px 18px 18px; text-align: center; }
.sede-dialog > img { width: 100%; height: min(66vh,700px); object-fit: contain; background: #f0f3f5; }
.sede-dialog > p { margin-top: 12px; font-size: .9rem; }
.sede-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 12px; }
.sede-controls button { border: 1px solid var(--line); border-radius: 50%; width: 42px; height: 42px; color: var(--navy); background: var(--white); font-size: 1.25rem; cursor: pointer; }
@media (max-width:900px) { .sede-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .sede-gallery { gap: 12px; } .sede-photo:first-child { grid-column: 1 / -1; } .sede-photo img { aspect-ratio: 1; } .sede-photo:first-child img { aspect-ratio: 4 / 3; } .sede-intro { margin-top: 18px; } }
@media (prefers-reduced-motion:reduce) { .sede-photo img { transition: none; } }

/* Recensioni reali da Google Maps — rilevazione 26 novembre 2026 */
.reviews-section { background: #f2f5fa; }
.reviews-heading { margin-bottom: 30px; }
.google-rating-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding: 24px 28px; background: #fff; border: 1px solid #dadce0; border-radius: 12px; }
.google-rating-brand { display: flex; align-items: center; gap: 12px; color: #202124; font-size: 1.125rem; font-weight: 650; }
.google-rating-brand img { width: 36px; height: 36px; }
.google-rating-score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.google-rating-score > strong { color: #202124; font-size: 2.25rem; font-weight: 700; line-height: 1; }
.google-rating-score > a { color: #5f6368; font-size: .9375rem; text-underline-offset: 4px; }
.google-stars { position: relative; display: inline-block; overflow: hidden; flex: none; width: max-content; color: #dadce0; font: 1.375rem/1.3 Arial, sans-serif; letter-spacing: 2px; white-space: nowrap; vertical-align: middle; }
.google-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; color: #f9ab00; white-space: nowrap; }
.google-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.google-review-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; border: 1px solid #dadce0; border-radius: 12px; background: #fff; color: #202124; box-shadow: 0 2px 5px #20212405; }
.google-review-author { display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; align-items: center; gap: 11px; width: 100%; margin-bottom: 18px; }
.review-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e8edf7; color: #344771; font-size: .875rem; font-weight: 700; }
.google-review-card:nth-child(2) .review-avatar { background: #e8f2ed; color: #24644e; }
.google-review-card:nth-child(3) .review-avatar { background: #f1e9f7; color: #71428b; }
.google-review-author h3 { margin: 0; color: #202124; font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.review-source { display: block; margin-top: 4px; color: #5f6368; font-size: .875rem; line-height: 1.4; }
.google-review-author > img { width: 24px; height: 24px; }
.google-review-card blockquote { margin: 15px 0 24px; padding: 0; border: 0; }
.google-review-card blockquote p { margin: 0; font-size: 1.125rem; line-height: 1.6; }
.review-original { margin-top: auto; color: #1a73e8; font-size: .9375rem; font-weight: 600; text-decoration: none; text-underline-offset: 4px; }
.review-original:hover { text-decoration: underline; }
.reviews-date { margin-top: 20px; color: #5f6368; font-size: .875rem; line-height: 1.6; }
.review-embed iframe { height: 700px; }
@media (max-width: 900px) {
  .google-rating-panel { justify-content: flex-start; }
  .google-rating-panel > .btn { margin-left: auto; }
}
@media (max-width: 760px) {
  .google-review-grid { grid-template-columns: 1fr; }
  .google-rating-panel { align-items: flex-start; flex-direction: column; padding: 22px; }
  .google-rating-panel > .btn { width: 100%; margin-left: 0; }
  .google-review-card { padding: 22px; }
}

.whatsapp-contact { overflow-wrap: anywhere; }
.quick-contact .whatsapp-contact { color: #176b44; }
.page-share { padding-block: 28px 36px; border-top: 1px solid var(--line); margin-top: 30px; }
.page-share > strong { display: block; margin-bottom: 12px; color: var(--blue-dark); font-size: .9rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.share-actions a, .share-actions button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--blue-dark); font: inherit; font-size: .88rem; font-weight: 650; text-decoration: none; cursor: pointer; }
.share-actions a:hover, .share-actions button:hover { background: var(--tint); }
.share-status { display: block; margin-top: 9px; font-size: .85rem; overflow-wrap: anywhere; }
