﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --seed: #2E7D32;
      --seed-light: rgba(46,125,50,0.05);
      --seed-10: rgba(46,125,50,0.10);
      --scaffold-bg: #F7F8F6;
      --text-primary: #152417;
      --text-secondary: #555;
      --border-color: #d0d0d0;
      --white: #fff;
      --radius: 14px;
      --radius-lg: 18px;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: linear-gradient(
        to bottom,
        var(--seed-light),
        var(--scaffold-bg)
      );
      background-color: var(--scaffold-bg);
      color: var(--text-primary);
      min-height: 100vh;
      opacity: 0;
      transition: opacity .25s ease;
    }
    body.ready { opacity: 1; }

    /* ---- AppBar ---- */
    .appbar {
      display: flex;
      align-items: center;
      padding: 12px 20px;
      background: transparent;
    }
    .appbar-title {
      font-size: 20px;
      font-weight: 600;
      flex: 1;
    }
    .appbar-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border: none;
      background: none;
      cursor: pointer;
      color: var(--text-primary);
      border-radius: 50%;
      transition: background .15s;
    }
    .appbar-action:hover {
      background: var(--seed-10);
    }

    /* ---- Layout ---- */
    .page-center {
      display: flex;
      justify-content: center;
      padding: 24px 16px;
    }
    @media (min-width: 900px) {
      .page-center { padding: 24px 24px; }
    }
    .page-content {
      width: 100%;
      max-width: 880px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    /* ---- Logo ---- */
    .logo {
      height: 96px;
      border-radius: var(--radius-lg);
      object-fit: contain;
    }
    @media (min-width: 900px) {
      .logo { height: 132px; }
    }

    /* ---- Carousel placeholder ---- */
    .carousel-placeholder {
      width: 100%;
      max-width: 820px;
      padding: 40px 20px;
      background: #F4F6F3;
      border-radius: 16px;
      border: 1px solid var(--border-color);
      text-align: center;
      color: var(--text-secondary);
      margin-top: 18px;
    }

    /* ---- Carousel (immagini caricate da JS) ---- */
    .carousel-wrapper {
      width: 100%;
      max-width: 820px;
      margin-top: 18px;
      border-radius: var(--radius-lg);
      position: relative;
      display: none;
    }
    .carousel-viewport {
      overflow: hidden;
      width: 100%;
      touch-action: pan-y;
      cursor: grab;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .carousel-viewport.is-dragging {
      cursor: grabbing;
    }
    .carousel-track {
      display: flex;
      /* cubic-bezier easing used by the carousel */
      transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }
    .carousel-slide {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      /* same curve + 700ms = autoPlayAnimationDuration */
      transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
      transform-origin: center center;
    }
    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      cursor: pointer;
      display: block;
      user-select: none;
      -webkit-user-drag: none;
    }

    /* ---- Instagram ---- */
    .instagram-btn {
      margin-top: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border: none;
      background: none;
      cursor: pointer;
      border-radius: 50%;
      transition: background .15s;
    }
    .instagram-btn:hover { background: var(--seed-10); }
    .instagram-btn svg { width: 32px; height: 32px; }

    /* ---- Buttons ---- */
    .btn-filled {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 22px 24px;
      background: var(--seed);
      color: var(--white);
      border: none;
      border-radius: var(--radius);
      font-size: 20px;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      transition: filter .15s;
    }
    .btn-filled:hover { filter: brightness(1.08); }

    .btn-outlined {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 18px 24px;
      background: transparent;
      color: var(--seed);
      border: 2px solid var(--seed);
      border-radius: var(--radius);
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      transition: background .15s;
    }
    .btn-outlined:hover { background: var(--seed-10); }

    .gap-18 { margin-top: 18px; }

    .admin-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 32px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      text-decoration: none;
      transition: color .15s;
    }
    .admin-link:hover { color: var(--seed); }

