
/*
Theme Name: 3Esse Academy
Theme URI: https://3esseacademy.it
Author: 3Esse Academy
Author URI: https://3esseacademy.it
Description: Tema personalizzato, elegante e minimal, per 3Esse Academy. Include layout a sezioni, palette teal/azure/beige/rose e font Montserrat.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: threeesse
*/

:root{
  --teal:#2ba89a;         /* verde acqua */
  --teal-600:#238f86;
  --azure:#5db7ff;        /* azzurro */
  --beige:#f3eee7;        /* beige chiaro */
  --rose:#ffe8f0;         /* rosa chiarissimo */
  --ink:#1b2b2d;          /* grigio-nero elegante */
  --muted:#6b7a7c;
  --white:#ffffff;
  --shadow:0 10px 30px rgba(0,0,0,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink); background:var(--white); line-height:1.6; font-size:16px;
  margin:0;
}

/* Layout */
.container{max-width:1100px; margin:0 auto; padding:0 20px}
.section{padding:72px 0}
.section--alt{background:var(--beige)}
.section--hero{
  background:linear-gradient(135deg, var(--teal) 0%, var(--azure) 100%);
  color:var(--white); padding:96px 0 72px; text-align:center;
}
h1,h2,h3{line-height:1.2; margin:0 0 18px}
h1{font-size:42px; font-weight:800}
h2{font-size:32px; font-weight:700}
h3{font-size:26px; font-weight:700; color:var(--teal-600)}
.lead{font-size:18px; color:#f7fffe; opacity:.95; max-width:800px; margin:0 auto 28px}

/* Badge */
.badge{
  display:inline-block; padding:6px 12px; border-radius:999px;
  background:rgba(255,255,255,.2); color:#fff; font-weight:600; font-size:13px; letter-spacing:.3px;
}

/* Grid + cards */
.grid{display:grid; gap:20px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.grid--3{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.grid--3,.grid--2{grid-template-columns:1fr}}

.card{
  background:#fff; border-radius:18px; box-shadow:var(--shadow); padding:24px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.card:hover{transform:translateY(-3px); box-shadow:0 18px 42px rgba(0,0,0,.08)}
.card h4{margin:0 0 8px; font-size:18px; color:var(--teal-600)}
.card p{margin:0; color:var(--muted)}

/* Buttons */
.btn{
  display:inline-block; padding:12px 18px; border-radius:999px; font-weight:700; text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary{background:#fff; color:var(--teal-600); box-shadow:var(--shadow)}
.btn--primary:hover{transform:translateY(-2px)}
.btn--ghost{border:2px solid #fff; color:#fff}
.btn--ghost:hover{background:#fff; color:var(--teal-600)}
.btn--teal{background:var(--teal); color:#fff}
.btn--teal:hover{filter:brightness(1.05)}
.tag{display:inline-block; padding:6px 10px; background:var(--beige); border-radius:12px; font-size:13px; color:var(--muted)}

/* Header / Nav */
.site-header{position:sticky; top:0; z-index:50; background:#fff; box-shadow:0 4px 20px rgba(0,0,0,.06)}
.site-header__inner{display:flex; align-items:center; justify-content:space-between; padding:10px 20px}
.site-branding{display:flex; align-items:center; gap:12px}
.site-branding img{height:48px; width:auto}
.site-title{font-weight:800; color:var(--ink); text-decoration:none}
.primary-nav{display:flex; gap:16px; align-items:center}
.primary-nav a{color:var(--ink); text-decoration:none; font-weight:600}
.primary-nav a:hover{color:var(--teal-600)}
@media (max-width:780px){
  .primary-nav{flex-wrap:wrap; gap:10px}
}

/* Top logo in hero */
.top-logo{display:flex; justify-content:center; margin-bottom:22px}
.top-logo img{height:68px; width:auto}

/* Instagram embeds */
.ig-grid{display:grid; gap:16px; grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.ig-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.ig-grid{grid-template-columns:1fr}}
.ig-embed{background:#fff; border-radius:16px; overflow:hidden; box-shadow:var(--shadow); min-height:420px}

/* Footer */
.site-footer{background:var(--teal-600); color:#fff; text-align:center; padding:28px 20px; font-size:14px}
.site-footer a{color:#fff; text-decoration:underline}

/* Back to top */
#backToTop{
  position:fixed; right:18px; bottom:18px; width:46px; height:46px; border-radius:50%;
  background:var(--teal); color:#fff; display:flex; justify-content:center; align-items:center;
  font-weight:900; box-shadow:var(--shadow); cursor:pointer; opacity:0; visibility:hidden; transition:all .25s ease;
}
#backToTop.show{opacity:1; visibility:visible}

/* Reveal on scroll */
.reveal{opacity:0; transform:translateY(10px); transition:opacity .6s ease, transform .6s ease}
.reveal.is-visible{opacity:1; transform:none}
